![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
The MCUXpresso SDK provides a driver for the Port Control and Interrupts (PORT) module of MCUXpresso SDK devices.
Enumerations | |
enum | port_interrupt_t { kPORT_InterruptOrDMADisabled = 0x0U, kPORT_DMARisingEdge = 0x1U, kPORT_DMAFallingEdge = 0x2U, kPORT_DMAEitherEdge = 0x3U, kPORT_FlagRisingEdge = 0x05U, kPORT_FlagFallingEdge = 0x06U, kPORT_FlagEitherEdge = 0x07U, kPORT_InterruptLogicZero = 0x8U, kPORT_InterruptRisingEdge = 0x9U, kPORT_InterruptFallingEdge = 0xAU, kPORT_InterruptEitherEdge = 0xBU, kPORT_InterruptLogicOne = 0xCU, kPORT_ActiveHighTriggerOutputEnable = 0xDU, kPORT_ActiveLowTriggerOutputEnable = 0xEU } |
Configures the interrupt generation condition. More... | |
Driver version | |
#define | FSL_PORT_DRIVER_VERSION (MAKE_VERSION(2, 5, 0)) |
PORT driver version. More... | |
Interrupt | |
static void | PORT_SetPinInterruptConfig (PORT_Type *base, uint32_t pin, port_interrupt_t config) |
Configures the port pin interrupt/DMA request. More... | |
static uint32_t | PORT_GetPinsInterruptFlags (PORT_Type *base) |
Reads the whole port status flag. More... | |
static void | PORT_ClearPinsInterruptFlags (PORT_Type *base, uint32_t mask) |
Clears the multiple pin interrupt status flag. More... | |
#define FSL_PORT_DRIVER_VERSION (MAKE_VERSION(2, 5, 0)) |
enum port_interrupt_t |
|
inlinestatic |
base | PORT peripheral base pointer. |
pin | PORT pin number. |
config | PORT pin interrupt configuration.
|
|
inlinestatic |
If a pin is configured to generate the DMA request, the corresponding flag is cleared automatically at the completion of the requested DMA transfer. Otherwise, the flag remains set until a logic one is written to that flag. If configured for a level sensitive interrupt that remains asserted, the flag is set again immediately.
base | PORT peripheral base pointer. |
|
inlinestatic |
base | PORT peripheral base pointer. |
mask | PORT pin number macro. |