12 #ifndef INCLUDE_DISTORTOS_DEVICES_COMMUNICATION_RS485_HPP_ 13 #define INCLUDE_DISTORTOS_DEVICES_COMMUNICATION_RS485_HPP_ 49 constexpr
Rs485(
UartLowLevel& uart,
void*
const readBuffer,
const size_t readBufferSize,
void*
const writeBuffer,
50 const size_t writeBufferSize,
OutputPin& driverEnablePin,
const bool driverEnabledState) :
51 SerialPort{uart, readBuffer, readBufferSize, writeBuffer, writeBufferSize},
111 #endif // INCLUDE_DISTORTOS_DEVICES_COMMUNICATION_RS485_HPP_ void transmitStartEvent() override
"Transmit start" event
Definition: Rs485.cpp:41
~Rs485()
Rs485's destructor.
Definition: Rs485.cpp:26
Definition: OutputPin.hpp:29
void transmitCompleteEvent() override
"Transmit complete" event
Definition: Rs485.cpp:35
OutputPin & driverEnablePin_
reference to output pin used to control the state of RS-485 driver
Definition: Rs485.hpp:101
bool driverEnabledState_
state of driverEnablePin_ in which RS-485 driver is enabled
Definition: Rs485.hpp:104
void enableDriver(bool enable) const
Enables or disables RS-485 driver.
Definition: Rs485.cpp:51
Top-level namespace of distortos project.
Definition: buttons.hpp:33
Definition: SerialPort.hpp:36
constexpr Rs485(UartLowLevel &uart, void *const readBuffer, const size_t readBufferSize, void *const writeBuffer, const size_t writeBufferSize, OutputPin &driverEnablePin, const bool driverEnabledState)
Rs485's constructor.
Definition: Rs485.hpp:49
Definition: UartLowLevel.hpp:35