Go to the source code of this file.
◆ wkpu_nxp_s32_callback_t
typedef void(* wkpu_nxp_s32_callback_t) (uint8_t pin, void *arg) |
Driver for Wake-up interrupt/event controller in NXP S32 MCUs.
NXP WKPU callback
◆ wkpu_nxp_s32_trigger
NXP WKPU pin activation type.
Enumerator |
---|
WKPU_NXP_S32_RISING_EDGE | Interrupt triggered on rising edge.
|
WKPU_NXP_S32_FALLING_EDGE | Interrupt triggered on falling edge.
|
WKPU_NXP_S32_BOTH_EDGES | Interrupt triggered on either edge.
|
◆ wkpu_nxp_s32_disable_interrupt()
void wkpu_nxp_s32_disable_interrupt |
( |
const struct device * | dev, |
|
|
uint8_t | irq ) |
Disable interrupt for WKPU line.
- Parameters
-
dev | WKPU device |
irq | WKPU interrupt number |
◆ wkpu_nxp_s32_enable_interrupt()
Set edge event and enable interrupt for WKPU line.
- Parameters
-
dev | WKPU device |
irq | WKPU interrupt number |
trigger | pin activation trigger |
◆ wkpu_nxp_s32_get_pending()
Get pending interrupt for WKPU device.
- Parameters
-
- Returns
- A bitmask containing pending interrupts
◆ wkpu_nxp_s32_set_callback()
Set WKPU callback for line.
- Parameters
-
dev | WKPU device |
irq | WKPU interrupt number |
pin | GPIO pin |
cb | Callback |
arg | Callback data |
- Return values
-
0 | on SUCCESS |
-EBUSY | if callback for the line is already set |
◆ wkpu_nxp_s32_unset_callback()
void wkpu_nxp_s32_unset_callback |
( |
const struct device * | dev, |
|
|
uint8_t | irq ) |
Unset WKPU callback for line.
- Parameters
-
dev | WKPU device |
irq | WKPU interrupt number |