![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
The MCUXpresso SDK provides a peripheral driver for the I/O pin configuration (IOCON) module of MCUXpresso SDK devices.
The function IOCONPinMuxSet() set pinmux for single pin according to selected configuration.
The function IOCON_SetPinMuxing() set pinmux for group of pins according to selected configuration.
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 |
| 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. | |
| #define | IOCON_FUNC8 0x8 |
| Selects pin function 8. | |
| #define | IOCON_FUNC9 0x9 |
| Selects pin function 9. | |
| #define | IOCON_FUNC10 0xA |
| Selects pin function 10. | |
| #define | IOCON_FUNC11 0xB |
| Selects pin function 11. | |
| #define | IOCON_FUNC12 0xC |
| Selects pin function 12. | |
| #define | IOCON_FUNC13 0xD |
| Selects pin function 13. | |
| #define | IOCON_FUNC14 0xE |
| Selects pin function 14. | |
| #define | IOCON_FUNC15 0xF |
| Selects pin function 15. | |
Typedefs | |
| typedef struct _iocon_group | iocon_group_t |
| Array of IOCON pin definitions passed to IOCON_SetPinMuxing() must be in this format. | |
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, 2, 0)) |
| IOCON driver version. More... | |
| struct _iocon_group |
| #define FSL_IOCON_DRIVER_VERSION (MAKE_VERSION(2, 2, 0)) |
| #define IOCON_FUNC0 0x0 |
| __STATIC_INLINE void IOCON_PinMuxSet | ( | IOCON_Type * | base, |
| uint8_t | port, | ||
| uint8_t | pin, | ||
| uint32_t | modefunc | ||
| ) |
| 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_* |
| __STATIC_INLINE void IOCON_SetPinMuxing | ( | IOCON_Type * | base, |
| const iocon_group_t * | pinArray, | ||
| uint32_t | arrayLength | ||
| ) |
| base | : The base of IOCON peripheral on the chip |
| pinArray | : Pointer to array of pin mux selections |
| arrayLength | : Number of entries in pinArray |