|
| 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. More...
|
| |
| | ~Rs485 () |
| | Rs485's destructor. More...
|
| |
| constexpr | SerialPort (UartLowLevel &uart, void *const readBuffer, const size_t readBufferSize, void *const writeBuffer, const size_t writeBufferSize) |
| | SerialPort's constructor. More...
|
| |
| | ~SerialPort () override |
| | SerialPort's destructor. More...
|
| |
| int | close () |
| | Closes SerialPort. More...
|
| |
| int | open (uint32_t baudRate, uint8_t characterLength, UartParity parity, bool _2StopBits) |
| | Opens SerialPort. More...
|
| |
| std::pair< int, size_t > | read (void *buffer, size_t size, size_t minSize=1, const TickClock::time_point *timePoint=nullptr) |
| | Reads data from SerialPort. More...
|
| |
| std::pair< int, size_t > | tryReadFor (const TickClock::duration duration, void *const buffer, const size_t size, const size_t minSize=1) |
| | Wrapper for read() with relative timeout. More...
|
| |
| template<typename Rep , typename Period > |
| std::pair< int, size_t > | tryReadFor (const std::chrono::duration< Rep, Period > duration, void *const buffer, const size_t size, const size_t minSize=1) |
| | Wrapper for read() with relative timeout. More...
|
| |
| std::pair< int, size_t > | tryReadUntil (const TickClock::time_point timePoint, void *const buffer, const size_t size, const size_t minSize=1) |
| | Wrapper for read() with absolute timeout. More...
|
| |
| template<typename Duration > |
| std::pair< int, size_t > | tryReadUntil (const std::chrono::time_point< TickClock, Duration > timePoint, void *const buffer, const size_t size, const size_t minSize=1) |
| | Wrapper for read() with absolute timeout. More...
|
| |
| std::pair< int, size_t > | tryWriteFor (const TickClock::duration duration, const void *const buffer, const size_t size, const size_t minSize=SIZE_MAX) |
| | Wrapper for write() with relative timeout. More...
|
| |
| template<typename Rep , typename Period > |
| std::pair< int, size_t > | tryWriteFor (const std::chrono::duration< Rep, Period > duration, const void *const buffer, const size_t size, const size_t minSize=SIZE_MAX) |
| | Wrapper for write() with relative timeout. More...
|
| |
| std::pair< int, size_t > | tryWriteUntil (const TickClock::time_point timePoint, const void *const buffer, const size_t size, const size_t minSize=SIZE_MAX) |
| | Wrapper for write() with absolute timeout. More...
|
| |
| template<typename Duration > |
| std::pair< int, size_t > | tryWriteUntil (const std::chrono::time_point< TickClock, Duration > timePoint, const void *const buffer, const size_t size, const size_t minSize=SIZE_MAX) |
| | Wrapper for write() with absolute timeout. More...
|
| |
| std::pair< int, size_t > | write (const void *buffer, size_t size, size_t minSize=SIZE_MAX, const TickClock::time_point *timePoint=nullptr) |
| | Writes data to SerialPort. More...
|
| |
Rs485 class is a RS-485 variant of serial port with an interface similar to standard files