UART: UART_CONFIG Struct Reference

Modbus RTU XMC47

UART_CONFIG Struct Reference

Detailed Description

Structure for holding the configuration parameters of UART channel.

Definition at line 203 of file UART.h.

#include <UART.h>

Data Fields

const XMC_UART_CH_CONFIG_t *const channel_config
 
UART_init_handler fptr_uart_config
 
UART_cbhandler sync_error_cbhandler
 
UART_cbhandler rx_noise_error_cbhandler
 
UART_cbhandler format_error_bit0_cbhandler
 
UART_cbhandler format_error_bit1_cbhandler
 
UART_cbhandler collision_error_cbhandler
 
const UART_TX_CONFIG_ttx_pin_config
 
UART_MODE_t mode
 
UART_TRANSFER_MODE_t transmit_mode
 
UART_TRANSFER_MODE_t receive_mode
 
XMC_USIC_CH_FIFO_SIZE_t tx_fifo_size
 
XMC_USIC_CH_FIFO_SIZE_t rx_fifo_size
 
uint8_t tx_sr
 

Field Documentation

const XMC_UART_CH_CONFIG_t* const UART_CONFIG::channel_config
  Basic UART configuration from the GUI with baud,data bits,

frame length, stop bits and parity

Definition at line 205 of file UART.h.

UART_cbhandler UART_CONFIG::collision_error_cbhandler
            Function pointer to hold the callback function pointer,

called when collision error is detected

Definition at line 233 of file UART.h.

UART_cbhandler UART_CONFIG::format_error_bit0_cbhandler
          Function pointer to hold the callback function pointer,

called when format error with stop bit 0 is detected.

Definition at line 229 of file UART.h.

UART_cbhandler UART_CONFIG::format_error_bit1_cbhandler
          Function pointer to hold the callback function pointer,

called when format error with stop bit 1 is detected.

Definition at line 231 of file UART.h.

UART_init_handler UART_CONFIG::fptr_uart_config

Function pointer to configure the MUX values

Definition at line 216 of file UART.h.

Referenced by UART_Init().

UART_MODE_t UART_CONFIG::mode

UART operation mode

Definition at line 237 of file UART.h.

Referenced by UART_SetBaudrate().

UART_TRANSFER_MODE_t UART_CONFIG::receive_mode
                   Mode used for receiving data. Data can be received using

interrupt, DMA or direct(using polling or external APP connection.)

Definition at line 240 of file UART.h.

Referenced by UART_Receive().

XMC_USIC_CH_FIFO_SIZE_t UART_CONFIG::rx_fifo_size

Receive FIFO size configuration

Definition at line 243 of file UART.h.

Referenced by UART_SetRXFIFOTriggerLimit().

UART_cbhandler UART_CONFIG::rx_noise_error_cbhandler
             Function pointer to hold the callback function pointer,

called when receiver noise is detected

Definition at line 227 of file UART.h.

UART_cbhandler UART_CONFIG::sync_error_cbhandler
                 Function pointer to hold the callback function pointer,

called when synchronization break detected.

Definition at line 225 of file UART.h.

UART_TRANSFER_MODE_t UART_CONFIG::transmit_mode
                  Mode used for transmitting data. Data can be transmitted using

interrupt, DMA or direct(using polling or external APP connection.)

Definition at line 238 of file UART.h.

Referenced by UART_Transmit().

XMC_USIC_CH_FIFO_SIZE_t UART_CONFIG::tx_fifo_size

Transmit FIFO size configuration

Definition at line 242 of file UART.h.

Referenced by UART_SetTXFIFOTriggerLimit().

const UART_TX_CONFIG_t* UART_CONFIG::tx_pin_config
             Transmit pin configuration to be used during initialization

and while changing baudrate.

Definition at line 235 of file UART.h.

Referenced by UART_SetBaudrate().

uint8_t UART_CONFIG::tx_sr

Service request number assigned to transmit interrupt

Definition at line 244 of file UART.h.


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