Synergy Software Package User's Manual
sci_uart_instance_ctrl_t Struct Reference

#include <r_sci_uart.h>

Data Fields

uint8_t channel
 Channel number.
 
uint8_t fifo_depth
 FIFO depth of the UART channel.
 
uint8_t rx_transfer_in_progress
 Set to 1 if a receive transfer is in progress, 0 otherwise.
 
uint8_t data_bytes:2
 1 byte for 7 or 8 bit data, 2 bytes for 9 bit data
 
uint8_t bitrate_modulation:1
 1 if bit rate modulation is enabled, 0 otherwise
 
uint32_t open
 Used to determine if the channel is configured.
 
transfer_instance_t const * p_transfer_rx
 
transfer_instance_t const * p_transfer_tx
 
uint8_t const * p_tx_src
 
uint32_t tx_src_bytes
 
IRQn_Type rxi_irq
 Receive IRQ number.
 
IRQn_Type txi_irq
 Transmit IRQ number.
 
IRQn_Type tei_irq
 Transmit end IRQ number.
 
IRQn_Type eri_irq
 Error IRQ number.
 
void(* p_callback )(uart_callback_args_t *p_args)
 Pointer to callback function.
 
void const * p_context
 Pointer to user interrupt context data.
 
void * p_reg
 Base register for this channel.
 
void(* p_extpin_ctrl )(uint32_t channel, uint32_t level)
 External pin control.
 
uint32_t baud_rate_error_x_1000
 Baud rate <Maximum percent error> x 1000. baud_rate_error must be greater than 0 and less than 15000.
 
uint8_t * p_rx_dst
 Destination buffer initialized by read() API.
 
uint32_t rx_dst_bytes
 Number of bytes expected by the read() API.
 
volatile uint32_t rx_bytes_count
 Number of bytes received since the last read()
 
uart_mode_t uart_comm_mode
 UART communication mode selection.
 
uart_rs485_type_t uart_rs485_mode
 UART RS485 communication channel type selection.
 
ioport_port_pin_t rs485_de_pin
 UART Driver Enable pin.
 

Detailed Description

UART instance control block.

Field Documentation

◆ p_transfer_rx

transfer_instance_t const* sci_uart_instance_ctrl_t::p_transfer_rx

Optional transfer instance used to send or receive multiple bytes without interrupts.

◆ p_transfer_tx

transfer_instance_t const* sci_uart_instance_ctrl_t::p_transfer_tx

Optional transfer instance used to send or receive multiple bytes without interrupts.

◆ p_tx_src

uint8_t const* sci_uart_instance_ctrl_t::p_tx_src

Source buffer pointer used to fill hardware FIFO from transmit ISR.

◆ tx_src_bytes

uint32_t sci_uart_instance_ctrl_t::tx_src_bytes

Size of source buffer pointer used to fill hardware FIFO from transmit ISR.


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