The MCUXpresso SDK provides 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
__STATIC_INLINE void IOCON_PinMuxSet |
( |
IOCON_Type * |
base, |
|
|
uint8_t |
ionumber, |
|
|
uint32_t |
modefunc |
|
) |
| |
- Note
- See the User Manual for specific modes and functions supported by the various pins. Sets I/O Control pin mux
- Parameters
-
base | : The base of IOCON peripheral on the chip |
ionumber | : GPIO number 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