MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Overview

Typedefs

typedef void(* flexcomm_irq_handler_t )(void *base, void *handle)
 Typedef for interrupt handler. More...
 

Enumerations

enum  FLEXCOMM_PERIPH_T {
  FLEXCOMM_PERIPH_NONE,
  FLEXCOMM_PERIPH_USART,
  FLEXCOMM_PERIPH_SPI,
  FLEXCOMM_PERIPH_I2C,
  FLEXCOMM_PERIPH_I2S_TX,
  FLEXCOMM_PERIPH_I2S_RX
}
 FLEXCOMM peripheral modes. More...
 

Functions

uint32_t FLEXCOMM_GetInstance (void *base)
 Returns instance number for FLEXCOMM module with given base address. More...
 
status_t FLEXCOMM_Init (void *base, FLEXCOMM_PERIPH_T periph)
 Initializes FLEXCOMM and selects peripheral mode according to the second parameter. More...
 
void FLEXCOMM_SetIRQHandler (void *base, flexcomm_irq_handler_t handler, void *handle)
 Sets IRQ handler for given FLEXCOMM module. More...
 

Variables

IRQn_Type const kFlexcommIrqs []
 Array with IRQ number for each FLEXCOMM module. More...
 

Driver version

#define FSL_FLEXCOMM_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 FlexCOMM driver version 2.0.1. More...
 

Macro Definition Documentation

#define FSL_FLEXCOMM_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))

Typedef Documentation

typedef void(* flexcomm_irq_handler_t)(void *base, void *handle)

Enumeration Type Documentation

Enumerator
FLEXCOMM_PERIPH_NONE 

No peripheral.

FLEXCOMM_PERIPH_USART 

USART peripheral.

FLEXCOMM_PERIPH_SPI 

SPI Peripheral.

FLEXCOMM_PERIPH_I2C 

I2C Peripheral.

FLEXCOMM_PERIPH_I2S_TX 

I2S TX Peripheral.

FLEXCOMM_PERIPH_I2S_RX 

I2S RX Peripheral.

Function Documentation

uint32_t FLEXCOMM_GetInstance ( void *  base)
status_t FLEXCOMM_Init ( void *  base,
FLEXCOMM_PERIPH_T  periph 
)
void FLEXCOMM_SetIRQHandler ( void *  base,
flexcomm_irq_handler_t  handler,
void *  handle 
)

It is used by drivers register IRQ handler according to FLEXCOMM mode

Variable Documentation

IRQn_Type const kFlexcommIrqs[]