PAN1080 Peripheral API
Typedefs | Enumerations
Uart event mode

This is the data type used for specifying UART events. An event is the occurrence of an interrupt which must be handled appropriately. One of these events is passed at a time to the user listener function to be processed. The exception to this are the UART_EVENT_THR_EMPTY and UART_EVENT_TIMEOUT interrupts which are handled internally by the interrupt handler. More...

Collaboration diagram for Uart event mode:

Typedefs

typedef enum UART_Event UART_EventDef
 

Enumerations

enum  UART_Event {
  UART_EVENT_MODEM = 0x0 , UART_EVENT_NONE = 0x1 , UART_EVENT_THR_EMPTY = 0x2 , UART_EVENT_DATA = 0x4 ,
  UART_EVENT_LINE = 0x6 , UART_EVENT_TIMEOUT = 0xc
}
 

Detailed Description

This is the data type used for specifying UART events. An event is the occurrence of an interrupt which must be handled appropriately. One of these events is passed at a time to the user listener function to be processed. The exception to this are the UART_EVENT_THR_EMPTY and UART_EVENT_TIMEOUT interrupts which are handled internally by the interrupt handler.

Typedef Documentation

◆ UART_EventDef

typedef enum UART_Event UART_EventDef

Enumeration Type Documentation

◆ UART_Event

enum UART_Event
Enumerator
UART_EVENT_MODEM 

CTR, DSR, RI or DCD status changed.

UART_EVENT_NONE 

No event/interrupt pending.

UART_EVENT_THR_EMPTY 

Transmit holding register empty or TX FIFO at or below trigger threshold.

UART_EVENT_DATA 

Receive buffer register data available (non-FIFO mode) or RX FIFO trigger level reached.

UART_EVENT_LINE 

Overrun/parity/framing error or break interrupt occurred.

UART_EVENT_TIMEOUT 

No characters in or out of the receiver FIFO during the last four character times.