Go to the source code of this file.
◆ eirq_nxp_s32_callback_t
typedef void(* eirq_nxp_s32_callback_t) (uint8_t pin, void *arg) |
Driver for External interrupt/event controller in NXP S32 MCUs.
NXP SIUL2 EIRQ callback
◆ eirq_nxp_s32_trigger
NXP SIUL2 EIRQ pin activation type.
Enumerator |
---|
EIRQ_NXP_S32_RISING_EDGE | Interrupt triggered on rising edge.
|
EIRQ_NXP_S32_FALLING_EDGE | Interrupt triggered on falling edge.
|
EIRQ_NXP_S32_BOTH_EDGES | Interrupt triggered on either edge.
|
◆ eirq_nxp_s32_disable_interrupt()
void eirq_nxp_s32_disable_interrupt |
( |
const struct device * | dev, |
|
|
uint8_t | irq ) |
Disable interrupt.
- Parameters
-
dev | SIUL2 EIRQ device |
irq | interrupt number |
◆ eirq_nxp_s32_enable_interrupt()
Enable interrupt on a given trigger event.
- Parameters
-
dev | SIUL2 EIRQ device |
irq | interrupt number |
trigger | trigger event |
◆ eirq_nxp_s32_get_pending()
Get pending interrupts.
- Parameters
-
- Returns
- A bitmask containing pending pending interrupts
◆ eirq_nxp_s32_set_callback()
Set callback for an interrupt associated with a given pin.
- Parameters
-
dev | SIUL2 EIRQ device |
irq | interrupt number |
pin | GPIO pin associated with the interrupt |
cb | callback to install |
arg | user data to include in callback |
- Return values
-
0 | on success |
-EBUSY | if callback for the interrupt is already set |
◆ eirq_nxp_s32_unset_callback()
void eirq_nxp_s32_unset_callback |
( |
const struct device * | dev, |
|
|
uint8_t | irq ) |
Unset interrupt callback.
- Parameters
-
dev | SIUL2 EIRQ device |
irq | interrupt number |