mikroSDK Reference Manual
uart_t Struct Reference

UART driver context structure, consisted of the following fields : More...

Data Fields

handle_t handle
 
uart_config_t config
 
uint8_t * tx_ring_buffer
 
uint8_t * rx_ring_buffer
 
bool is_tx_irq_enabled
 
bool is_rx_irq_enabled
 
bool is_blocking
 

Detailed Description

UART driver context structure, used by every other function later on.

Example

// UART driver context structure.
static uart_t uart;

Field Documentation

◆ handle

handle_t uart_t::handle

UART handle.

◆ config

uart_config_t uart_t::config

UART configuration structure.

◆ tx_ring_buffer

uint8_t* uart_t::tx_ring_buffer

Pointer to Tx ring buffer.

◆ rx_ring_buffer

uint8_t* uart_t::rx_ring_buffer

Pointer to Rx ring buffer.

◆ is_tx_irq_enabled

bool uart_t::is_tx_irq_enabled

Tx interrupt enabled.

◆ is_rx_irq_enabled

bool uart_t::is_rx_irq_enabled

Rx interrupt enabled.

◆ is_blocking

bool uart_t::is_blocking

Is blocking.

uart_t
UART driver context structure, consisted of the following fields :
Definition: drv_uart.h:163