12#ifdef HAL_UART_MODULE_ENABLED
23template <UART_HandleTypeDef *Handle, UartType TxType>
class UartTx;
24template <UART_HandleTypeDef *Handle, UartType RxType>
class UartRx;
66 Uart(
size_t rx_buf_size = 64) : rx_{rx_buf_size} {}
68 bool transmit(
const uint8_t *data,
size_t size, uint32_t timeout) {
69 return tx_.transmit(data, size, timeout);
72 bool receive(uint8_t *data,
size_t size, uint32_t timeout) {
73 return rx_.receive(data, size, timeout);
Definition uart_base.hpp:9
bool transmit(const uint8_t *data, size_t size, uint32_t timeout)
Definition uart.hpp:68
size_t available()
Definition uart.hpp:78
void flush()
Definition uart.hpp:76
Uart(size_t rx_buf_size=64)
Definition uart.hpp:66
bool receive(uint8_t *data, size_t size, uint32_t timeout)
Definition uart.hpp:72
UartType
Definition uart_type.hpp:6
@ IT
Definition uart_type.hpp:8