|
enum | pint_pin_enable_t {
kPINT_PinIntEnableNone = 0U,
kPINT_PinIntEnableRiseEdge = PINT_PIN_RISE_EDGE,
kPINT_PinIntEnableFallEdge = PINT_PIN_FALL_EDGE,
kPINT_PinIntEnableBothEdges = PINT_PIN_BOTH_EDGE,
kPINT_PinIntEnableLowLevel = PINT_PIN_LOW_LEVEL,
kPINT_PinIntEnableHighLevel = PINT_PIN_HIGH_LEVEL
} |
| PINT Pin Interrupt enable type. More...
|
|
enum | pint_pin_int_t {
kPINT_PinInt0 = 0U,
kPINT_PinInt1 = 1U,
kPINT_PinInt2 = 2U,
kPINT_PinInt3 = 3U,
kPINT_PinInt4 = 4U,
kPINT_PinInt5 = 5U,
kPINT_PinInt6 = 6U,
kPINT_PinInt7 = 7U
} |
| PINT Pin Interrupt type. More...
|
|
enum | pint_pmatch_input_src_t {
kPINT_PatternMatchInp0Src = 0U,
kPINT_PatternMatchInp1Src = 1U,
kPINT_PatternMatchInp2Src = 2U,
kPINT_PatternMatchInp3Src = 3U,
kPINT_PatternMatchInp4Src = 4U,
kPINT_PatternMatchInp5Src = 5U,
kPINT_PatternMatchInp6Src = 6U,
kPINT_PatternMatchInp7Src = 7U
} |
| PINT Pattern Match bit slice input source type. More...
|
|
enum | pint_pmatch_bslice_t {
kPINT_PatternMatchBSlice0 = 0U,
kPINT_PatternMatchBSlice1 = 1U,
kPINT_PatternMatchBSlice2 = 2U,
kPINT_PatternMatchBSlice3 = 3U,
kPINT_PatternMatchBSlice4 = 4U,
kPINT_PatternMatchBSlice5 = 5U,
kPINT_PatternMatchBSlice6 = 6U,
kPINT_PatternMatchBSlice7 = 7U
} |
| PINT Pattern Match bit slice type. More...
|
|
enum | pint_pmatch_bslice_cfg_t {
kPINT_PatternMatchAlways = 0U,
kPINT_PatternMatchStickyRise = 1U,
kPINT_PatternMatchStickyFall = 2U,
kPINT_PatternMatchStickyBothEdges = 3U,
kPINT_PatternMatchHigh = 4U,
kPINT_PatternMatchLow = 5U,
kPINT_PatternMatchNever = 6U,
kPINT_PatternMatchBothEdges = 7U
} |
| PINT Pattern Match configuration type. More...
|
|
|
void | PINT_Init (PINT_Type *base) |
| Initialize PINT peripheral. More...
|
|
void | PINT_PinInterruptConfig (PINT_Type *base, pint_pin_int_t intr, pint_pin_enable_t enable, pint_cb_t callback) |
| Configure PINT peripheral pin interrupt. More...
|
|
void | PINT_PinInterruptGetConfig (PINT_Type *base, pint_pin_int_t pintr, pint_pin_enable_t *enable, pint_cb_t *callback) |
| Get PINT peripheral pin interrupt configuration. More...
|
|
void | PINT_PinInterruptClrStatus (PINT_Type *base, pint_pin_int_t pintr) |
| Clear Selected pin interrupt status only when the pin was triggered by edge-sensitive. More...
|
|
static uint32_t | PINT_PinInterruptGetStatus (PINT_Type *base, pint_pin_int_t pintr) |
| Get Selected pin interrupt status. More...
|
|
void | PINT_PinInterruptClrStatusAll (PINT_Type *base) |
| Clear all pin interrupts status only when pins were triggered by edge-sensitive. More...
|
|
static uint32_t | PINT_PinInterruptGetStatusAll (PINT_Type *base) |
| Get all pin interrupts status. More...
|
|
static void | PINT_PinInterruptClrFallFlag (PINT_Type *base, pint_pin_int_t pintr) |
| Clear Selected pin interrupt fall flag. More...
|
|
static uint32_t | PINT_PinInterruptGetFallFlag (PINT_Type *base, pint_pin_int_t pintr) |
| Get selected pin interrupt fall flag. More...
|
|
static void | PINT_PinInterruptClrFallFlagAll (PINT_Type *base) |
| Clear all pin interrupt fall flags. More...
|
|
static uint32_t | PINT_PinInterruptGetFallFlagAll (PINT_Type *base) |
| Get all pin interrupt fall flags. More...
|
|
static void | PINT_PinInterruptClrRiseFlag (PINT_Type *base, pint_pin_int_t pintr) |
| Clear Selected pin interrupt rise flag. More...
|
|
static uint32_t | PINT_PinInterruptGetRiseFlag (PINT_Type *base, pint_pin_int_t pintr) |
| Get selected pin interrupt rise flag. More...
|
|
static void | PINT_PinInterruptClrRiseFlagAll (PINT_Type *base) |
| Clear all pin interrupt rise flags. More...
|
|
static uint32_t | PINT_PinInterruptGetRiseFlagAll (PINT_Type *base) |
| Get all pin interrupt rise flags. More...
|
|
void | PINT_PatternMatchConfig (PINT_Type *base, pint_pmatch_bslice_t bslice, pint_pmatch_cfg_t *cfg) |
| Configure PINT pattern match. More...
|
|
void | PINT_PatternMatchGetConfig (PINT_Type *base, pint_pmatch_bslice_t bslice, pint_pmatch_cfg_t *cfg) |
| Get PINT pattern match configuration. More...
|
|
static uint32_t | PINT_PatternMatchGetStatus (PINT_Type *base, pint_pmatch_bslice_t bslice) |
| Get pattern match bit slice status. More...
|
|
static uint32_t | PINT_PatternMatchGetStatusAll (PINT_Type *base) |
| Get status of all pattern match bit slices. More...
|
|
uint32_t | PINT_PatternMatchResetDetectLogic (PINT_Type *base) |
| Reset pattern match detection logic. More...
|
|
static void | PINT_PatternMatchEnable (PINT_Type *base) |
| Enable pattern match function. More...
|
|
static void | PINT_PatternMatchDisable (PINT_Type *base) |
| Disable pattern match function. More...
|
|
static void | PINT_PatternMatchEnableRXEV (PINT_Type *base) |
| Enable RXEV output. More...
|
|
static void | PINT_PatternMatchDisableRXEV (PINT_Type *base) |
| Disable RXEV output. More...
|
|
void | PINT_EnableCallback (PINT_Type *base) |
| Enable callback. More...
|
|
void | PINT_DisableCallback (PINT_Type *base) |
| Disable callback. More...
|
|
void | PINT_Deinit (PINT_Type *base) |
| Deinitialize PINT peripheral. More...
|
|
void | PINT_EnableCallbackByIndex (PINT_Type *base, pint_pin_int_t pintIdx) |
| enable callback by pin index. More...
|
|
void | PINT_DisableCallbackByIndex (PINT_Type *base, pint_pin_int_t pintIdx) |
| disable callback by pin index. More...
|
|
The MCUXpresso SDK provides a driver for the Pin Interrupt and Pattern match (PINT).
It can configure one or more pins to generate a pin interrupt when the pin or pattern match conditions are met. The pins do not have to be configured as gpio pins however they must be connected to PINT via INPUTMUX. Only the pin interrupt or pattern match function can be active for interrupt generation. If the pin interrupt function is enabled then the pattern match function can be used for wakeup via RXEV.
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/pint
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/pint