Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nxp_pint.h File Reference
#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, bool wake)
 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 Documentation

◆ nxp_pint_cb_t

typedef void(* nxp_pint_cb_t) (uint8_t pin, void *user)

Enumeration Type Documentation

◆ 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 

Function Documentation

◆ nxp_pint_pin_disable()

void nxp_pint_pin_disable ( uint8_t  pin)

disable PINT interrupt source.

Parameters
pinpin interrupt source to disable

◆ nxp_pint_pin_enable()

int nxp_pint_pin_enable ( uint8_t  pin,
enum nxp_pint_trigger  trigger,
bool  wake 
)

Enable PINT interrupt source.

Parameters
pinpin to use as interrupt source 0-64, corresponding to GPIO0 pin 1 - GPIO1 pin 31)
triggerone of nxp_pint_trigger flags
wakeindicates if the pin should wakeup the system

◆ nxp_pint_pin_set_callback()

int nxp_pint_pin_set_callback ( uint8_t  pin,
nxp_pint_cb_t  cb,
void *  data 
)

Install PINT callback.

Parameters
pininterrupt source to install callback for
cbcallback to install
datauser 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
pininterrupt source to remove callback for