MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
SPI 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(* SPI_CALLBACK) (SPI_CALLBACK_SRC module, SPI_CALLBACK_TYPE type)
 SPI_CALLBACK function declaration.
 

Enumerations

enum  SPI_CALLBACK_SRC { SPI0_CALLBACK, SPI1_CALLBACK }
 SPI_CALLBACK_SRC declaration. More...
 
enum  SPI_CALLBACK_TYPE { SPI_TX_CALLBACK, SPI_RX_CALLBACK, SPI_MATCH_CALLBACK, SPI_FAULT_CALLBACK, SPI_RXFNF_CALLBACK, SPI_TXFNE_CALLBACK }
 SPI_CALLBACK_TYPE declaration. More...
 

Enumeration Type Documentation

Enumerator
SPI0_CALLBACK 

SPI0 interrupt.

SPI1_CALLBACK 

SPI1 interrupt.

Enumerator
SPI_TX_CALLBACK 

Transmit Complete (SPTEF)

SPI_RX_CALLBACK 

Receive Data Register or FIFO Full (SPRF)

SPI_MATCH_CALLBACK 

Received value matches MH:ML registers (SPMF)

SPI_FAULT_CALLBACK 

Mode fault error (MODF), only if SS is disabled.

SPI_RXFNF_CALLBACK 

Receiver FIFO nearly full (RNFULLF), only if FIFO is enabled.

SPI_TXFNE_CALLBACK 

Transmit FIFO nearly empty (TNEAREF), only if FIFO is enabled.