Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nxp_pint.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
19#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_NXP_PINT_H_
20#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_NXP_PINT_H_
21
22#include <fsl_pint.h>
23
30 /* Do not generate Pin Interrupt */
31 NXP_PINT_NONE = kPINT_PinIntEnableNone,
32 /* Generate Pin Interrupt on rising edge */
33 NXP_PINT_RISING = kPINT_PinIntEnableRiseEdge,
34 /* Generate Pin Interrupt on falling edge */
35 NXP_PINT_FALLING = kPINT_PinIntEnableFallEdge,
36 /* Generate Pin Interrupt on both edges */
37 NXP_PINT_BOTH = kPINT_PinIntEnableBothEdges,
38 /* Generate Pin Interrupt on low level */
39 NXP_PINT_LOW = kPINT_PinIntEnableLowLevel,
40 /* Generate Pin Interrupt on high level */
41 NXP_PINT_HIGH = kPINT_PinIntEnableHighLevel
42};
43
44/* Callback for NXP PINT interrupt */
45typedef void (*nxp_pint_cb_t) (uint8_t pin, void *user);
46
55int nxp_pint_pin_enable(uint8_t pin, enum nxp_pint_trigger trigger, bool wake);
56
57
64
74
81
82
83#endif /* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_NXP_PINT_H_ */
int nxp_pint_pin_set_callback(uint8_t pin, nxp_pint_cb_t cb, void *data)
Install PINT callback.
void nxp_pint_pin_disable(uint8_t pin)
disable PINT interrupt source.
void(* nxp_pint_cb_t)(uint8_t pin, void *user)
Definition nxp_pint.h:45
int nxp_pint_pin_enable(uint8_t pin, enum nxp_pint_trigger trigger, bool wake)
Enable PINT interrupt source.
void nxp_pint_pin_unset_callback(uint8_t pin)
Remove PINT callback.
nxp_pint_trigger
Driver for Pin interrupt and pattern match engine in NXP MCUs.
Definition nxp_pint.h:29
@ NXP_PINT_LOW
Definition nxp_pint.h:39
@ NXP_PINT_RISING
Definition nxp_pint.h:33
@ NXP_PINT_NONE
Definition nxp_pint.h:31
@ NXP_PINT_BOTH
Definition nxp_pint.h:37
@ NXP_PINT_HIGH
Definition nxp_pint.h:41
@ NXP_PINT_FALLING
Definition nxp_pint.h:35
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
static fdata_t data[2]
Definition test_fifo_contexts.c:15