modm API documentation
modm::amnb::Interface< MaxHeapAllocation > Class Template Reference
Inheritance diagram for modm::amnb::Interface< MaxHeapAllocation >:
modm::Resumable< 6 >

Public Member Functions

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

Protected Member Functions

modm::ResumableResult< bool > write_escaped (uint8_t data)
 
modm::ResumableResult< bool > read_escaped ()
 
modm::ResumableResult< bool > write ()
 
modm::ResumableResult< 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: