Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
intc_nxp_gint.h
Go to the documentation of this file.
1/*
2 * Copyright 2026 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_NXP_GINT_H_
13#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_NXP_GINT_H_
14
15#include <zephyr/types.h>
16#include <zephyr/device.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
31
41
51
61
68typedef void (*nxp_gint_callback_t)(const struct device *dev, void *user_data);
69
77int nxp_gint_configure_group(const struct device *dev,
78 const struct nxp_gint_group_config *config);
79
89int nxp_gint_enable_pin(const struct device *dev, uint8_t port, uint8_t pin,
90 nxp_gint_polarity_type polarity);
91
100int nxp_gint_disable_pin(const struct device *dev, uint8_t port, uint8_t pin);
101
108bool nxp_gint_is_pending(const struct device *dev);
109
116int nxp_gint_clear_pending(const struct device *dev);
117
126int nxp_gint_register_callback(const struct device *dev,
127 nxp_gint_callback_t callback,
128 void *user_data);
129
130#ifdef __cplusplus
131}
132#endif
133
134
135#endif /* ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_NXP_GINT_H_ */
bool nxp_gint_is_pending(const struct device *dev)
Check if GINT interrupt is pending.
nxp_gint_trigger_type
GINT trigger types.
Definition intc_nxp_gint.h:25
@ NXP_GINT_TRIG_EDGE
Edge triggered.
Definition intc_nxp_gint.h:27
@ NXP_GINT_TRIG_LEVEL
Level triggered.
Definition intc_nxp_gint.h:29
int nxp_gint_enable_pin(const struct device *dev, uint8_t port, uint8_t pin, nxp_gint_polarity_type polarity)
Enable a pin for GINT.
int nxp_gint_clear_pending(const struct device *dev)
Clear GINT interrupt pending status.
int nxp_gint_configure_group(const struct device *dev, const struct nxp_gint_group_config *config)
Configure GINT settings.
int nxp_gint_disable_pin(const struct device *dev, uint8_t port, uint8_t pin)
Disable a pin for GINT.
int nxp_gint_register_callback(const struct device *dev, nxp_gint_callback_t callback, void *user_data)
Register GINT callback.
void(* nxp_gint_callback_t)(const struct device *dev, void *user_data)
GINT callback function type.
Definition intc_nxp_gint.h:68
nxp_gint_combination_type
GINT combination logic.
Definition intc_nxp_gint.h:35
@ NXP_GINT_COMB_OR
OR logic - any enabled pin triggers interrupt.
Definition intc_nxp_gint.h:37
@ NXP_GINT_COMB_AND
AND logic - all enabled pins must trigger interrupt.
Definition intc_nxp_gint.h:39
nxp_gint_polarity_type
GINT pin polarity.
Definition intc_nxp_gint.h:45
@ NXP_GINT_POL_HIGH
Active HIGH.
Definition intc_nxp_gint.h:49
@ NXP_GINT_POL_LOW
Active LOW.
Definition intc_nxp_gint.h:47
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:513
const void * config
Address of device instance config information.
Definition device.h:517
GINT group configuration.
Definition intc_nxp_gint.h:55
nxp_gint_trigger_type trigger
Trigger type (edge or level).
Definition intc_nxp_gint.h:57
nxp_gint_combination_type combination
Combination logic (OR or AND).
Definition intc_nxp_gint.h:59