MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
IOCON: I/O pin configuration

Overview

The MCUXpresso SDK provides a peripheral driver for the I/O pin configuration (IOCON) module of MCUXpresso SDK devices.

Function groups

Pin mux set

The function IOCONPinMuxSet() set pinmux for single pin according to selected configuration.

Pin mux set

The function IOCON_SetPinMuxing() set pinmux for group of pins according to selected configuration.

Typical use case

Example use of IOCON API to selection of GPIO mode. Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/iocon

Files

file  fsl_iocon.h
 

Data Structures

struct  iocon_group_t
 Array of IOCON pin definitions passed to IOCON_SetPinMuxing() must be in this format. More...
 

Macros

#define IOCON_FUNC0   0x0
 IOCON function and mode selection definitions. More...
 
#define IOCON_FUNC1   0x1
 Selects pin function 1.
 
#define IOCON_FUNC2   0x2
 Selects pin function 2.
 
#define IOCON_FUNC3   0x3
 Selects pin function 3.
 
#define IOCON_FUNC4   0x4
 Selects pin function 4.
 
#define IOCON_FUNC5   0x5
 Selects pin function 5.
 
#define IOCON_FUNC6   0x6
 Selects pin function 6.
 
#define IOCON_FUNC7   0x7
 Selects pin function 7.
 

Functions

__STATIC_INLINE void IOCON_PinMuxSet (IOCON_Type *base, uint8_t port, uint8_t pin, uint32_t modefunc)
 Sets I/O Control pin mux. More...
 
__STATIC_INLINE void IOCON_SetPinMuxing (IOCON_Type *base, const iocon_group_t *pinArray, uint32_t arrayLength)
 Set all I/O Control pin muxing. More...
 

Driver version

#define FSL_IOCON_DRIVER_VERSION   (MAKE_VERSION(2, 1, 1))
 IOCON driver version 2.1.1. More...
 

Data Structure Documentation

struct iocon_group_t

Macro Definition Documentation

#define FSL_IOCON_DRIVER_VERSION   (MAKE_VERSION(2, 1, 1))
#define IOCON_FUNC0   0x0
Note
See the User Manual for specific modes and functions supported by the various pins.Selects pin function 0

Function Documentation

__STATIC_INLINE void IOCON_PinMuxSet ( IOCON_Type *  base,
uint8_t  port,
uint8_t  pin,
uint32_t  modefunc 
)
Parameters
base: The base of IOCON peripheral on the chip
port: GPIO port to mux
pin: GPIO pin to mux
modefunc: OR'ed values of type IOCON_*
Returns
Nothing
__STATIC_INLINE void IOCON_SetPinMuxing ( IOCON_Type *  base,
const iocon_group_t pinArray,
uint32_t  arrayLength 
)
Parameters
base: The base of IOCON peripheral on the chip
pinArray: Pointer to array of pin mux selections
arrayLength: Number of entries in pinArray
Returns
Nothing