#include <fsl_pint.h>
Go to the source code of this file.
◆ nxp_pint_cb_t
typedef void(* nxp_pint_cb_t) (uint8_t pin, void *user) |
◆ nxp_pint_trigger
Driver for Pin interrupt and pattern match engine in NXP MCUs.
The Pin interrupt and pattern match engine (PINT) supports sourcing inputs from any pins on GPIO ports 0 and 1 of NXP MCUs featuring the module, and generating interrupts based on these inputs. Pin inputs can generate separate interrupts to the NVIC, or be combined using the PINT's boolean logic based pattern match engine. This driver currently only supports the pin interrupt feature of the PINT.
Pin interrupt sources
Pin interrupt sources available for use.
Enumerator |
---|
NXP_PINT_NONE | |
NXP_PINT_RISING | |
NXP_PINT_FALLING | |
NXP_PINT_BOTH | |
NXP_PINT_LOW | |
NXP_PINT_HIGH | |
◆ nxp_pint_pin_disable()
void nxp_pint_pin_disable |
( |
uint8_t |
pin | ) |
|
disable PINT interrupt source.
- Parameters
-
pin | pin interrupt source to disable |
◆ nxp_pint_pin_enable()
Enable PINT interrupt source.
- Parameters
-
pin | pin to use as interrupt source 0-64, corresponding to GPIO0 pin 1 - GPIO1 pin 31) |
trigger | one of nxp_pint_trigger flags |
wake | indicates if the pin should wakeup the system |
◆ nxp_pint_pin_set_callback()
Install PINT callback.
- Parameters
-
pin | interrupt source to install callback for |
cb | callback to install |
data | user data to include in callback |
- Returns
- 0 on success, or negative value on error
◆ nxp_pint_pin_unset_callback()
void nxp_pint_pin_unset_callback |
( |
uint8_t |
pin | ) |
|
Remove PINT callback.
- Parameters
-
pin | interrupt source to remove callback for |