I/O Stream UART context.

Public Attributes#

uint8_t *

UART Rx Buffer.

size_t

UART Rx Buffer length.

uint8_t *

Address of the next byte to be read.

volatile bool

UART Rx Buffer data available to be read.

volatile bool

UART Rx Buffer full.

sl_status_t(*

Tx function pointer.

void(*

Pointer to a function handling the Tx Completed event.

void(*

Pointer to a function to enable detection of next byte on stream.

sl_status_t(*

DeInit function pointer.

bool

lf_to_crlf

bool

software flow control

uint8_t *

Pointer to where the last control character scan ended.

volatile bool

Transmitter enabled.

bool

Remote Transmitter enabled.

IRQn_Type

Receive IRQ Number.

IRQn_Type

Transmit IRQ Number.

volatile bool

tx_idle. Available only when Power Manager present.

bool

em_req_added. Available only when Power Manager present.

rx_em. Available only when Power Manager present.

tx_em. Available only when Power Manager present.

bool

block. Available only when kernel present.

osMutexId_t

read_lock. Available only when kernel present.

osSemaphoreId_t

read_signal. Available only when kernel present.

osMutexId_t

write_lock. Available only when kernel present.

Public Functions#

__ALIGNED(4) uint8_t read_lock_cb[osMutexCbSize]

read_lock control block. Available only when kernel present.

__ALIGNED(4) uint8_t read_signal_cb[osSemaphoreCbSize]

read_signal control block. Available only when kernel present.

__ALIGNED(4) uint8_t write_lock_cb[osMutexCbSize]

write_lock control block. Available only when kernel present.

Public Attribute Documentation#

dma#

sl_iostream_dma_context_t sl_iostream_uart_context_t::dma

DMA Context.


Definition at line 132 of file platform/service/iostream/inc/sl_iostream_uart.h

rx_buffer#

uint8_t* sl_iostream_uart_context_t::rx_buffer

UART Rx Buffer.


Definition at line 133 of file platform/service/iostream/inc/sl_iostream_uart.h

rx_buffer_len#

size_t sl_iostream_uart_context_t::rx_buffer_len

UART Rx Buffer length.


Definition at line 134 of file platform/service/iostream/inc/sl_iostream_uart.h

rx_read_ptr#

uint8_t* sl_iostream_uart_context_t::rx_read_ptr

Address of the next byte to be read.


Definition at line 135 of file platform/service/iostream/inc/sl_iostream_uart.h

rx_data_available#

volatile bool sl_iostream_uart_context_t::rx_data_available

UART Rx Buffer data available to be read.


Definition at line 136 of file platform/service/iostream/inc/sl_iostream_uart.h

rx_buffer_full#

volatile bool sl_iostream_uart_context_t::rx_buffer_full

UART Rx Buffer full.


Definition at line 137 of file platform/service/iostream/inc/sl_iostream_uart.h

tx#

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

Tx function pointer.


Definition at line 138 of file platform/service/iostream/inc/sl_iostream_uart.h

tx_completed#

void(* sl_iostream_uart_context_t::tx_completed) (void *context, bool enable)

Pointer to a function handling the Tx Completed event.


Definition at line 139 of file platform/service/iostream/inc/sl_iostream_uart.h

set_next_byte_detect#

void(* sl_iostream_uart_context_t::set_next_byte_detect) (void *context)

Pointer to a function to enable detection of next byte on stream.


Definition at line 140 of file platform/service/iostream/inc/sl_iostream_uart.h

deinit#

sl_status_t(* sl_iostream_uart_context_t::deinit) (void *context)

DeInit function pointer.


Definition at line 141 of file platform/service/iostream/inc/sl_iostream_uart.h

lf_to_crlf#

bool sl_iostream_uart_context_t::lf_to_crlf

lf_to_crlf


Definition at line 142 of file platform/service/iostream/inc/sl_iostream_uart.h

sw_flow_control#

bool sl_iostream_uart_context_t::sw_flow_control

software flow control


Definition at line 143 of file platform/service/iostream/inc/sl_iostream_uart.h

ctrl_char_scan_ptr#

uint8_t* sl_iostream_uart_context_t::ctrl_char_scan_ptr

Pointer to where the last control character scan ended.


Definition at line 144 of file platform/service/iostream/inc/sl_iostream_uart.h

xon#

volatile bool sl_iostream_uart_context_t::xon

Transmitter enabled.


Definition at line 145 of file platform/service/iostream/inc/sl_iostream_uart.h

remote_xon#

bool sl_iostream_uart_context_t::remote_xon

Remote Transmitter enabled.


Definition at line 146 of file platform/service/iostream/inc/sl_iostream_uart.h

rx_irq_number#

IRQn_Type sl_iostream_uart_context_t::rx_irq_number

Receive IRQ Number.


Definition at line 147 of file platform/service/iostream/inc/sl_iostream_uart.h

tx_irq_number#

IRQn_Type sl_iostream_uart_context_t::tx_irq_number

Transmit IRQ Number.


Definition at line 149 of file platform/service/iostream/inc/sl_iostream_uart.h

tx_idle#

volatile bool sl_iostream_uart_context_t::tx_idle

tx_idle. Available only when Power Manager present.


Definition at line 150 of file platform/service/iostream/inc/sl_iostream_uart.h

em_req_added#

bool sl_iostream_uart_context_t::em_req_added

em_req_added. Available only when Power Manager present.


Definition at line 151 of file platform/service/iostream/inc/sl_iostream_uart.h

rx_em#

sl_power_manager_em_t sl_iostream_uart_context_t::rx_em

rx_em. Available only when Power Manager present.


Definition at line 152 of file platform/service/iostream/inc/sl_iostream_uart.h

tx_em#

sl_power_manager_em_t sl_iostream_uart_context_t::tx_em

tx_em. Available only when Power Manager present.


Definition at line 153 of file platform/service/iostream/inc/sl_iostream_uart.h

block#

bool sl_iostream_uart_context_t::block

block. Available only when kernel present.


Definition at line 156 of file platform/service/iostream/inc/sl_iostream_uart.h

read_lock#

osMutexId_t sl_iostream_uart_context_t::read_lock

read_lock. Available only when kernel present.


Definition at line 157 of file platform/service/iostream/inc/sl_iostream_uart.h

read_signal#

osSemaphoreId_t sl_iostream_uart_context_t::read_signal

read_signal. Available only when kernel present.


Definition at line 159 of file platform/service/iostream/inc/sl_iostream_uart.h

write_lock#

osMutexId_t sl_iostream_uart_context_t::write_lock

write_lock. Available only when kernel present.


Definition at line 161 of file platform/service/iostream/inc/sl_iostream_uart.h

Public Function Documentation#

__ALIGNED#

sl_iostream_uart_context_t::__ALIGNED (4 )

read_lock control block. Available only when kernel present.

Parameters
N/A

Definition at line 158 of file platform/service/iostream/inc/sl_iostream_uart.h

__ALIGNED#

sl_iostream_uart_context_t::__ALIGNED (4 )

read_signal control block. Available only when kernel present.

Parameters
N/A

Definition at line 160 of file platform/service/iostream/inc/sl_iostream_uart.h

__ALIGNED#

sl_iostream_uart_context_t::__ALIGNED (4 )

write_lock control block. Available only when kernel present.

Parameters
N/A

Definition at line 162 of file platform/service/iostream/inc/sl_iostream_uart.h