56 void write(
const uint8_t *ch, uint8_t len)
override;
60 bool set_mode(uint32_t baud, uart_mode_t mode);
63 bool flush()
override;
void init_UART(uint32_t baudrate_, uart_mode_t mode=MODE_8N1)
bool tx_buffer_empty() override
void init(const uart_hardware_struct_t *conf, uint32_t baudrate_, uart_mode_t mode=MODE_8N1)
void register_rx_callback(void(*cb)(uint8_t data)) override
void DMA_Tx_IRQ_callback()
void put_byte(uint8_t ch) override
uint8_t rx_buffer_[RX_BUFFER_SIZE]
const uart_hardware_struct_t * c_
uint8_t read_byte() override
uint32_t tx_bytes_free() override
void USART_IRQ_callback()
uint8_t tx_buffer_[TX_BUFFER_SIZE]
uint32_t rx_bytes_waiting() override
bool set_mode(uint32_t baud, uart_mode_t mode)
void DMA_Rx_IRQ_callback()
void write(const uint8_t *ch, uint8_t len) override
void unregister_rx_callback() override