FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uart_itf_data_s Struct Reference

Data Fields

struct pi_task * fifo_head [2]
 
struct pi_task * fifo_tail [2]
 
uint32_t nb_open
 
uint32_t device_id
 
uint32_t baudrate_bps
 
pi_freq_cb_t uart_freq_cb
 
uint8_t flow_ctrl_ena
 
pi_udma_fifo_t udma_chan [2]
 
uint8_t usart_mode
 
int8_t udma_chan_id_rx
 
int8_t udma_chan_id_tx
 
int8_t udma_timer_id_rx
 
int8_t udma_timer_id_tx
 

Description

pi_task : data[0] = l2_buf data[1] = size data[2] = channel data[3] = udma_cfg data[4] = device_id (used for delegation)

Field Documentation

uint32_t uart_itf_data_s::baudrate_bps

Current baudrate.

Referenced by __pi_uart_conf_set(), __pi_uart_freq_cb(), and __pi_uart_open().

struct pi_task* uart_itf_data_s::fifo_head[2]
struct pi_task* uart_itf_data_s::fifo_tail[2]
uint8_t uart_itf_data_s::flow_ctrl_ena

Flow control enable?

Flow control enable

Referenced by __pi_uart_conf_set(), __pi_uart_copy(), __pi_uart_flow_control_enable(), __pi_uart_handler(), and __pi_uart_open().

uint32_t uart_itf_data_s::nb_open

Number of times device has been opened.

Referenced by __pi_uart_close(), and __pi_uart_open().

pi_freq_cb_t uart_itf_data_s::uart_freq_cb

Callback associated to frequency changes.

Referenced by __pi_uart_close(), and __pi_uart_open().

int8_t uart_itf_data_s::udma_chan_id_rx
int8_t uart_itf_data_s::udma_chan_id_tx
int8_t uart_itf_data_s::udma_timer_id_rx
int8_t uart_itf_data_s::udma_timer_id_tx
uint8_t uart_itf_data_s::usart_mode

USART mode.

Referenced by __pi_uart_conf_set().