theCore C++ embedded framework

UART driver. More...

#include </home/travis/build/forGGe/theCore/platform/tm4c/export/aux/uart.hpp>

Inheritance diagram for ecl::uart< ch >:

Public Member Functions

 uart (const uart &)=delete
 
uartoperator= (uart &)=delete
 

Static Public Member Functions

static 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 rx 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 bus_handler &handler)
 Sets event handler. More...
 
static void reset_buffers ()
 Reset xfer buffers. More...
 
static void reset_handler ()
 Resets previously set handler. More...
 
static err do_xfer ()
 Executes xfer, using buffers previously set. More...
 
static err cancel_xfer ()
 Cancels xfer. More...
 

Static Protected Member Functions

static void irq_bus_handler ()
 UART interrupt handler. More...
 

Friends

void bypass_console_init ()
 Bypass console routines, partially reuse UART driver code. More...
 
void bypass_putc ()
 

Detailed Description

template<uart_channel ch>
class ecl::uart< ch >

UART driver.

Template Parameters
chPeripheral channel to use with this driver

Constructor & Destructor Documentation

◆ uart()

template<uart_channel ch>
ecl::uart< ch >::uart ( const uart< ch > &  )
delete

Member Function Documentation

◆ operator=()

template<uart_channel ch>
uart& ecl::uart< ch >::operator= ( uart< ch > &  )
delete

Friends And Related Function Documentation

◆ bypass_console_init

template<uart_channel ch>
void bypass_console_init ( )
friend

Bypass console routines, partially reuse UART driver code.

◆ bypass_putc

template<uart_channel ch>
void bypass_putc ( )
friend

The documentation for this class was generated from the following file: