theCore C++ embedded framework
|
STM32 USART bus. More...
#include </home/travis/build/forGGe/theCore/platform/stm32/export/aux/usart_bus.hpp>
Public Types | |
using | channel = ecl::bus_channel |
using | event = ecl::bus_event |
using | handler_fn = ecl::bus_handler |
Public Member Functions | |
usart_bus ()=delete | |
~usart_bus ()=delete | |
usart_bus & | operator= (usart_bus &)=delete |
usart_bus (usart_bus &)=delete | |
Static Public Member Functions | |
static ecl::err | init () |
Lazy initialization. More... | |
static void | set_rx (uint8_t *rx, size_t size) |
Sets rx buffer with given size. More... | |
static void | set_tx (size_t size, uint8_t fill_byte=0xff) |
Sets tx buffer made-up from sequence of similar bytes. More... | |
static void | set_tx (const uint8_t *tx, size_t size) |
Sets tx buffer with given size. More... | |
static void | set_handler (const handler_fn &handler) |
Sets event handler. More... | |
static void | reset_buffers () |
Reset xfer buffers. More... | |
static void | reset_handler () |
Resets previously set handler. More... | |
static ecl::err | do_xfer () |
Executes xfer, using buffers previously set. More... | |
static ecl::err | do_rx () |
Executes rx transfer, using rx buffer previously set. More... | |
static ecl::err | do_tx () |
Executes tx transfer, using tx buffer previously set. More... | |
static ecl::err | cancel_xfer () |
Cancels xfer. More... | |
static ecl::err | cancel_rx () |
Cancels xfer on rx. More... | |
static ecl::err | cancel_tx () |
Cancels xfer on tx. More... | |
static ecl::err | enable_listen_mode () |
Enables listen mode. More... | |
static ecl::err | disable_listen_mode () |
Disables listen mode. More... | |
Friends | |
struct | bypass_console |
STM32 USART bus.
using ecl::usart_bus< dev >::channel = ecl::bus_channel |
using ecl::usart_bus< dev >::event = ecl::bus_event |
using ecl::usart_bus< dev >::handler_fn = ecl::bus_handler |
|
delete |
|
delete |
|
delete |
|
delete |
|
friend |