UART: Enumerations

Modbus RTU XMC47

UART
Enumerations
enum  UART_STATUS {
  UART_STATUS_SUCCESS, UART_STATUS_FAILURE, UART_STATUS_BUSY, UART_STATUS_BUFFER_INVALID,
  UART_STATUS_MODE_MISMATCH
}
 Enum to describe the possible status values, returned by UART APIs. More...
 
enum  UART_MODE { UART_MODE_FULLDUPLEX, UART_MODE_HALFDUPLEX, UART_MODE_LOOPBACK }
 Enum used to describe the UART Mode of operation. More...
 
enum  UART_EVENT {
  UART_EVENT_SYNC_BRK, UART_EVENT_RX_NOISE, UART_EVENT_FORMAT_ERR0, UART_EVENT_FORMAT_ERR1,
  UART_EVENT_COLLISION, UART_EVENT_MAX
}
 Enum used to identify UART protocol event callback function. More...
 
enum  UART_TRANSFER_MODE { UART_TRANSFER_MODE_INTERRUPT, UART_TRANSFER_MODE_DMA, UART_TRANSFER_MODE_DIRECT }
 Enum used to identify the transfer type used for either transmit or receive function. More...
 
typedef enum UART_STATUS UART_STATUS_t
 Enum to describe the possible status values, returned by UART APIs.
 
typedef enum UART_MODE UART_MODE_t
 Enum used to describe the UART Mode of operation.
 
typedef enum UART_EVENT UART_EVENT_t
 Enum used to identify UART protocol event callback function.
 
typedef enum UART_TRANSFER_MODE UART_TRANSFER_MODE_t
 Enum used to identify the transfer type used for either transmit or receive function.
 

Detailed Description

Enumeration Type Documentation

enum UART_EVENT

Enum used to identify UART protocol event callback function.

Enumerator
UART_EVENT_SYNC_BRK 

Synchronization break detected event

UART_EVENT_RX_NOISE 

Receiver noise detected event

UART_EVENT_FORMAT_ERR0 

Frame format error at stop bit 0 event

UART_EVENT_FORMAT_ERR1 

Frame format error at stop bit 1 event

UART_EVENT_COLLISION 

Data collision detected in half duplex mode event

UART_EVENT_MAX 

Indicates number of UART events supported

Definition at line 134 of file UART.h.

enum UART_MODE

Enum used to describe the UART Mode of operation.

Enumerator
UART_MODE_FULLDUPLEX 

Full Duplex mode selected

UART_MODE_HALFDUPLEX 

Half Duplex mode selected

UART_MODE_LOOPBACK 

LoopBack mode selected

Definition at line 124 of file UART.h.

Enum to describe the possible status values, returned by UART APIs.

Enumerator
UART_STATUS_SUCCESS 

Indicates App initialization state successful

UART_STATUS_FAILURE 

Unknown error

UART_STATUS_BUSY 

UART Busy

UART_STATUS_BUFFER_INVALID 

Buffer provided or the buffer size is invalid

UART_STATUS_MODE_MISMATCH 

API invoked by a handle configured with different mode. e.g, If UART_StartTransmitDMA is invoked for an instance which has transmit mode configured as "Interrupt", will return this status.

Definition at line 104 of file UART.h.

Enum used to identify the transfer type used for either transmit or receive function.

Enumerator
UART_TRANSFER_MODE_INTERRUPT 

Implement data transmit or receive using interrupts

UART_TRANSFER_MODE_DMA 

Implement data transmit or receive using DMA

UART_TRANSFER_MODE_DIRECT 

This configuration exposes signals for external APP connection

Definition at line 147 of file UART.h.