6#include <stm32cubemx_helper/device.hpp>
14template <UART_HandleTypeDef *Handle, UartType TxType>
class UartTx;
15template <UART_HandleTypeDef *Handle, UartType RxType>
class UartRx;
21 bool transmit(
const uint8_t *data,
size_t size, uint32_t timeout) {
22 return HAL_UART_Transmit(Handle, data, size, timeout) == HAL_OK;
34 bool receive(uint8_t *data,
size_t size, uint32_t timeout) {
35 return HAL_UART_Receive(Handle, data, size, timeout);
size_t available()
Definition uart_poll.hpp:40
bool receive(uint8_t *data, size_t size, uint32_t timeout)
Definition uart_poll.hpp:34
UartRx(size_t)
Definition uart_poll.hpp:32
void flush()
Definition uart_poll.hpp:38
bool transmit(const uint8_t *data, size_t size, uint32_t timeout)
Definition uart_poll.hpp:21
UartType
Definition uart_type.hpp:6
@ POLL
Definition uart_type.hpp:7