MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
UART Callback Function

Overview

This section describes callback function of the driver. The callback function is called by the driver to notify interrupt of the peripheral. All interrupt flags are cleared automatically by the driver.

Typedefs

typedef void(* UART_CALLBACK) (UART_CALLBACK_SRC module, UART_CALLBACK_TYPE type, int32 status)
 

Enumerations

enum  UART_CALLBACK_SRC { UART0_CALLBACK, UART1_CALLBACK, UART2_CALLBACK, UART3_CALLBACK }
 UART_CALLBACK source declaration. More...
 
enum  UART_CALLBACK_TYPE { UART_TX_CALLBACK, UART_RX_CALLBACK, UART_ER_CALLBACK, UART_EDG_CALLBACK }
 UART_CALLBACK type declaration. More...
 

Typedef Documentation

typedef void(* UART_CALLBACK) (UART_CALLBACK_SRC module, UART_CALLBACK_TYPE type, int32 status)

UART_CALLBACK function declaration

Enumeration Type Documentation

Enumerator
UART0_CALLBACK 

UART0 module.

UART1_CALLBACK 

UART1 module.

UART2_CALLBACK 

UART2 module.

UART3_CALLBACK 

UART3 module.

Enumerator
UART_TX_CALLBACK 

Transmit Data Register Empty Flag (TDRE), Transmit Complete (TC)

UART_RX_CALLBACK 

Receive Data Register Full (RDRF)

UART_ER_CALLBACK 

Receiver Overrun (OR), Framing Error (FE), Noise Flag (NF), Parity Error Flag (PF)

UART_EDG_CALLBACK 

RxD Input Active Edge Interrupt Flag (RXEDGIF)