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
29
enum
nxp_pint_trigger
{
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 */
45
typedef
void (*
nxp_pint_cb_t
) (
uint8_t
pin,
void
*user);
46
55
int
nxp_pint_pin_enable
(
uint8_t
pin,
enum
nxp_pint_trigger
trigger,
bool
wake);
56
57
63
void
nxp_pint_pin_disable
(
uint8_t
pin);
64
73
int
nxp_pint_pin_set_callback
(
uint8_t
pin,
nxp_pint_cb_t
cb,
void
*
data
);
74
80
void
nxp_pint_pin_unset_callback
(
uint8_t
pin);
81
82
83
#endif
/* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_NXP_PINT_H_ */
nxp_pint_pin_set_callback
int nxp_pint_pin_set_callback(uint8_t pin, nxp_pint_cb_t cb, void *data)
Install PINT callback.
nxp_pint_pin_disable
void nxp_pint_pin_disable(uint8_t pin)
disable PINT interrupt source.
nxp_pint_cb_t
void(* nxp_pint_cb_t)(uint8_t pin, void *user)
Definition
nxp_pint.h:45
nxp_pint_pin_enable
int nxp_pint_pin_enable(uint8_t pin, enum nxp_pint_trigger trigger, bool wake)
Enable PINT interrupt source.
nxp_pint_pin_unset_callback
void nxp_pint_pin_unset_callback(uint8_t pin)
Remove PINT callback.
nxp_pint_trigger
nxp_pint_trigger
Driver for Pin interrupt and pattern match engine in NXP MCUs.
Definition
nxp_pint.h:29
NXP_PINT_LOW
@ NXP_PINT_LOW
Definition
nxp_pint.h:39
NXP_PINT_RISING
@ NXP_PINT_RISING
Definition
nxp_pint.h:33
NXP_PINT_NONE
@ NXP_PINT_NONE
Definition
nxp_pint.h:31
NXP_PINT_BOTH
@ NXP_PINT_BOTH
Definition
nxp_pint.h:37
NXP_PINT_HIGH
@ NXP_PINT_HIGH
Definition
nxp_pint.h:41
NXP_PINT_FALLING
@ NXP_PINT_FALLING
Definition
nxp_pint.h:35
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
data
static fdata_t data[2]
Definition
test_fifo_contexts.c:15
include
zephyr
drivers
interrupt_controller
nxp_pint.h
Generated on Sun Sep 15 2024 17:01:30 for Zephyr Project API by
1.9.8