modm API documentation
modm::UartDevice< Uart, NestingLevels > Class Template Reference

#include <modm/architecture/interface/uart_device.hpp>

Inheritance diagram for modm::UartDevice< Uart, NestingLevels >:
modm::NestedResumable< NestingLevels+1 >

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)
 
int8_t getResumableDepth () const
 
bool isResumableRunning () const
 
void stopResumable ()
 

Detailed Description

template<class Uart, uint8_t NestingLevels = 10>
class modm::UartDevice< Uart, NestingLevels >

Base class of an UART Device.

This class provides generic transaction-like semantics

Author
Rasmus Kleist Hørlyck Sørensen

The documentation for this class was generated from the following file: