sl_iostream_uart_context_t Struct Reference

IO Stream UART context.

#include <sl_iostream_uart.h>

Data Fields

sl_status_t(* tx )(void *context, char c)
Tx function pointer.
void(* enable_rx )(void *context)
Pointer to a function determining whether rx is enabled.
uint32_t rx_read_index
Index in buffer to be read.
uint32_t rx_write_index
Index in buffer to be written to.
uint32_t rx_count
Keeps track of how much data which are stored in the buffer.
uint8_t * rx_buffer
buffer to store data
size_t rx_buffer_length
rx_buffer_length
bool lf_to_crlf
lf_to_crlf
bool tx_idle
tx_idle. Available only when Power Manager present.
bool em_req_added
em_req_added. Available only when Power Manager present.
sl_power_manager_em_t rx_em
rx_em. Available only when Power Manager present.
sl_power_manager_em_t tx_em
tx_em. Available only when Power Manager present.
bool block
block. Available only when kernel present.
OS_MUTEX read_lock
read_lock. Available only when kernel present.
OS_SEM read_signal
read_signal. Available only when kernel present.
OS_MUTEX write_lock
write_lock. Available only when kernel present.

IO Stream UART context.

Field Documentation

tx

sl_status_t(* sl_iostream_uart_context_t::tx) (void *context, char c)

Tx function pointer.

enable_rx

void(* sl_iostream_uart_context_t::enable_rx) (void *context)

Pointer to a function determining whether rx is enabled.

rx_read_index

uint32_t sl_iostream_uart_context_t::rx_read_index

Index in buffer to be read.

rx_write_index

uint32_t sl_iostream_uart_context_t::rx_write_index

Index in buffer to be written to.

rx_count

uint32_t sl_iostream_uart_context_t::rx_count

Keeps track of how much data which are stored in the buffer.

rx_buffer

uint8_t* sl_iostream_uart_context_t::rx_buffer

buffer to store data

rx_buffer_length

size_t sl_iostream_uart_context_t::rx_buffer_length

rx_buffer_length

lf_to_crlf

bool sl_iostream_uart_context_t::lf_to_crlf

lf_to_crlf

tx_idle

bool sl_iostream_uart_context_t::tx_idle

tx_idle. Available only when Power Manager present.

em_req_added

bool sl_iostream_uart_context_t::em_req_added

em_req_added. Available only when Power Manager present.

rx_em

sl_power_manager_em_t sl_iostream_uart_context_t::rx_em

rx_em. Available only when Power Manager present.

tx_em

sl_power_manager_em_t sl_iostream_uart_context_t::tx_em

tx_em. Available only when Power Manager present.

block

bool sl_iostream_uart_context_t::block

block. Available only when kernel present.

read_lock

OS_MUTEX sl_iostream_uart_context_t::read_lock

read_lock. Available only when kernel present.

read_signal

OS_SEM sl_iostream_uart_context_t::read_signal

read_signal. Available only when kernel present.

write_lock

OS_MUTEX sl_iostream_uart_context_t::write_lock

write_lock. Available only when kernel present.