Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
|
|
3.5.0 |
#include <fsl_pint.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | nxp_pint_cb_t) (uint8_t pin, void *user) |
Enumerations | |
enum | nxp_pint_trigger { NXP_PINT_NONE = kPINT_PinIntEnableNone , NXP_PINT_RISING = kPINT_PinIntEnableRiseEdge , NXP_PINT_FALLING = kPINT_PinIntEnableFallEdge , NXP_PINT_BOTH = kPINT_PinIntEnableBothEdges , NXP_PINT_LOW = kPINT_PinIntEnableLowLevel , NXP_PINT_HIGH = kPINT_PinIntEnableHighLevel } |
Driver for Pin interrupt and pattern match engine in NXP MCUs. More... | |
Functions | |
int | nxp_pint_pin_enable (uint8_t pin, enum nxp_pint_trigger trigger) |
Enable PINT interrupt source. | |
void | nxp_pint_pin_disable (uint8_t pin) |
disable PINT interrupt source. | |
int | nxp_pint_pin_set_callback (uint8_t pin, nxp_pint_cb_t cb, void *data) |
Install PINT callback. | |
void | nxp_pint_pin_unset_callback (uint8_t pin) |
Remove PINT callback. | |
typedef void(* nxp_pint_cb_t) (uint8_t pin, void *user) |
enum 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 |
void nxp_pint_pin_disable | ( | uint8_t | pin | ) |
disable PINT interrupt source.
pin | pin interrupt source to disable |
int nxp_pint_pin_enable | ( | uint8_t | pin, |
enum nxp_pint_trigger | trigger | ||
) |
Enable PINT interrupt source.
pin | pin to use as interrupt source 0-64, corresponding to GPIO0 pin 1 - GPIO1 pin 31) |
trigger | one of nxp_pint_trigger flags |
int nxp_pint_pin_set_callback | ( | uint8_t | pin, |
nxp_pint_cb_t | cb, | ||
void * | data | ||
) |
Install PINT callback.
pin | interrupt source to install callback for |
cb | callback to install |
data | user data to include in callback |
void nxp_pint_pin_unset_callback | ( | uint8_t | pin | ) |
Remove PINT callback.
pin | interrupt source to remove callback for |