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
- Note
- See the User Manual for specific modes and functions supported by the various pins.Selects pin function 0
__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