28#ifndef CMSIS_PLUS_DRIVER_USART_WRAPPER_H_
29#define CMSIS_PLUS_DRIVER_USART_WRAPPER_H_
35#pragma GCC diagnostic push
38#pragma clang diagnostic ignored "-Wc++98-compat"
58#pragma GCC diagnostic push
59#pragma GCC diagnostic ignored "-Wpadded"
93 virtual const serial::Capabilities&
100 do_send (const
void* data,
std::
size_t num) noexcept override;
106 do_transfer (const
void* data_out,
void* data_in,
std::
size_t num)
116 do_configure (serial::config_t ctrl, serial::config_arg_t arg)
120 do_control (serial::control_t ctrl) noexcept override;
122 virtual serial::Status&
128 virtual serial::Modem_status&
157#pragma GCC diagnostic pop
162#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)