modm API documentation
modm_test::SharedMedium Class Reference

Static Public Member Functions

static bool write (uint8_t data)
 
static bool read (uint8_t &byte)
 
static bool hasError ()
 
static void clearError ()
 
static void discardTransmitBuffer ()
 
static void discardReceiveBuffer ()
 
static size_t receiveBufferSize ()
 
static void reset ()
 
static void add_rx (std::initializer_list< uint8_t > data)
 
static void add_queued_rx (std::initializer_list< uint8_t > data, size_t index=0)
 

Static Public Attributes

static std::vector< uint8_t > raw_received
 
static std::vector< uint8_t > raw_transmitted
 
static std::vector< uint8_t > received
 
static std::vector< uint8_t > transmitted
 
static size_t tx_count {0}
 
static size_t rx_count {0}
 
static size_t fail_tx_index {size_t(-1)}
 
static size_t fail_rx_index {size_t(-1)}
 
static std::vector< uint8_t > rx_queue
 
static size_t rx_queue_index {size_t(-1)}
 

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