13#ifndef CMSIS_PLUS_DRIVER_USART_WRAPPER_H_
14#define CMSIS_PLUS_DRIVER_USART_WRAPPER_H_
20#pragma GCC diagnostic push
22#pragma clang diagnostic ignored "-Wc++98-compat"
42#pragma GCC diagnostic push
44#pragma clang diagnostic ignored "-Wpadded"
45#elif defined(__GNUC__)
46#pragma GCC diagnostic ignored "-Wpadded"
81 virtual const serial::Capabilities&
88 do_send (const
void* data,
std::
size_t num) noexcept override;
104 do_configure (serial::config_t ctrl, serial::config_arg_t arg)
108 do_control (serial::control_t ctrl) noexcept override;
110 virtual serial::Status&
116 virtual serial::Modem_status&
145#pragma GCC diagnostic pop
150#pragma GCC diagnostic pop
Serial device driver capabilities.
usart_wrapper(usart_wrapper &&)=delete
virtual std::size_t do_get_rx_count(void) noexcept override
usart_wrapper & operator=(const usart_wrapper &)=delete
serial::Capabilities capa_
virtual ~usart_wrapper() noexcept override
ARM_USART_SignalEvent_t c_cb_func_
virtual serial::Status & do_get_status(void) noexcept override
virtual const Version & do_get_version(void) noexcept override
virtual return_t do_receive(void *data, std::size_t num) noexcept override
virtual return_t do_transfer(const void *data_out, void *data_in, std::size_t num) noexcept override
ARM_DRIVER_USART * driver_
Pointer to CMSIS USART Keil driver.
virtual std::size_t do_get_tx_count(void) noexcept override
virtual const serial::Capabilities & do_get_capabilities(void) noexcept override
virtual serial::Modem_status & do_get_modem_status(void) noexcept override
virtual return_t do_control(serial::control_t ctrl) noexcept override
virtual return_t do_power(Power state) noexcept override
virtual return_t do_configure(serial::config_t ctrl, serial::config_arg_t arg) noexcept override
virtual return_t do_send(const void *data, std::size_t num) noexcept override
virtual return_t do_control_modem_line(serial::Modem_control ctrl) noexcept override
usart_wrapper(const usart_wrapper &)=delete
struct _ARM_DRIVER_USART const ARM_DRIVER_USART
void(* ARM_USART_SignalEvent_t)(uint32_t event)