modm API documentation
|
#include <modm/architecture/interface/uart_device.hpp>
Public Member Functions | |
bool | hasReceived () |
void | setTxTimeout (ShortPreciseDuration timeout) |
void | setRxTimeout (ShortPreciseDuration timeout) |
Protected Member Functions | |
modm::ResumableResult< bool > | write (uint8_t data) |
modm::ResumableResult< bool > | write (const uint8_t *data, std::size_t length) |
modm::ResumableResult< bool > | read (uint8_t &data) |
modm::ResumableResult< bool > | read (uint8_t *buffer, std::size_t length) |
modm::ResumableResult< ReturnType > resumable | function (...) |
int8_t | getResumableDepth () const |
bool | isResumableRunning () const |
void | stopResumable () |
Force all resumable functions to stop running at the current nesting level. | |
Base class of an UART Device.
This class provides generic transaction-like semantics
|
inherited |
Run the resumable function.
You need to implement this method in you subclass yourself.
NestingError
if still running, <=NestingError
if it has finished.
|
inheritedinline |
|
inheritedinline |
true
if a resumable function is running at the current nesting level, else false