Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
intc_eirq_nxp_s32.h
Go to the documentation of this file.
1/*
2 * Copyright 2022, 2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_EIRQ_NXP_S32_H_
13#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_EIRQ_NXP_S32_H_
14
16typedef void (*eirq_nxp_s32_callback_t)(uint8_t pin, void *arg);
17
29
36void eirq_nxp_s32_unset_callback(const struct device *dev, uint8_t irq);
37
50int eirq_nxp_s32_set_callback(const struct device *dev, uint8_t irq, uint8_t pin,
51 eirq_nxp_s32_callback_t cb, void *arg);
52
60void eirq_nxp_s32_enable_interrupt(const struct device *dev, uint8_t irq,
61 enum eirq_nxp_s32_trigger trigger);
62
69void eirq_nxp_s32_disable_interrupt(const struct device *dev, uint8_t irq);
70
78
79#endif /* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_EIRQ_NXP_S32_H_ */
eirq_nxp_s32_trigger
NXP SIUL2 EIRQ pin activation type.
Definition intc_eirq_nxp_s32.h:21
@ EIRQ_NXP_S32_RISING_EDGE
Interrupt triggered on rising edge.
Definition intc_eirq_nxp_s32.h:23
@ EIRQ_NXP_S32_FALLING_EDGE
Interrupt triggered on falling edge.
Definition intc_eirq_nxp_s32.h:25
@ EIRQ_NXP_S32_BOTH_EDGES
Interrupt triggered on either edge.
Definition intc_eirq_nxp_s32.h:27
int eirq_nxp_s32_set_callback(const struct device *dev, uint8_t irq, uint8_t pin, eirq_nxp_s32_callback_t cb, void *arg)
Set callback for an interrupt associated with a given pin.
void(* eirq_nxp_s32_callback_t)(uint8_t pin, void *arg)
Driver for External interrupt/event controller in NXP S32 MCUs.
Definition intc_eirq_nxp_s32.h:16
void eirq_nxp_s32_enable_interrupt(const struct device *dev, uint8_t irq, enum eirq_nxp_s32_trigger trigger)
Enable interrupt on a given trigger event.
void eirq_nxp_s32_unset_callback(const struct device *dev, uint8_t irq)
Unset interrupt callback.
void eirq_nxp_s32_disable_interrupt(const struct device *dev, uint8_t irq)
Disable interrupt.
uint32_t eirq_nxp_s32_get_pending(const struct device *dev)
Get pending interrupts.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:412