12 #define DEFAULT_TX_TIMEOUT 10000 // in uS - 10ms 35 void begin(uint32_t b, uint32_t mode);
36 inline void begin(uint32_t b, uint16_t rxS, uint16_t txS) {
begin(b); }
49 int16_t
read()
override;
51 size_t write(uint8_t c);
static uint32_t usart_txfifo_nbytes(const usart_dev *dev)
static uint8_t buffer[SRXL_FRAMELEN_MAX]
uint64_t receive_time_constraint_us(uint16_t nbytes) override
void begin(uint32_t b, uint16_t rxS, uint16_t txS)
void setCallback(Handler cb)
static void usart_set_callback(const usart_dev *dev, Handler cb)
uint32_t available() override
const struct usart_dev * _usart_device
static void usart_disable(const usart_dev *dev)
Turn off a serial port.
uint32_t txspace() override
void set_blocking_writes(bool blocking)
uint32_t _receive_timestamp[2]
static uint32_t usart_txfifo_freebytes(const usart_dev *dev)