modm API documentation
modm::amnb::Interface< MaxHeapAllocation > Class Template Reference

Public Member Functions

 Interface (Device &device)
 
bool isMediumBusy () const
 
InterfaceStatus transmit (const Message *message)
 
InterfaceStatus receiveHeader (Message *message)
 
InterfaceStatus receiveData (Message *message, bool allocate=true)
 

Protected Member Functions

bool write_escaped (uint8_t data)
 
bool read_escaped ()
 
bool write ()
 
bool read ()
 

Protected Attributes

Devicedevice
 
uint16_t tx_index
 
uint16_t rx_index
 
uint8_t tx_data
 
uint8_t rx_data
 
bool rx_allocated
 
bool isReceiving {false}
 
bool isTransmitting {false}
 

Static Protected Attributes

static constexpr uint8_t STX {0x7E}
 
static constexpr uint8_t DLE {0x7D}
 

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