#include <Wkpu_Ip.h>
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.
◆ wkpu_nxp_s32_disable_interrupt()
void wkpu_nxp_s32_disable_interrupt |
( |
const struct device * |
dev, |
|
|
uint8_t |
line |
|
) |
| |
Disable interrupt for WKPU line.
- Parameters
-
dev | WKPU device |
line | WKPU line |
◆ wkpu_nxp_s32_enable_interrupt()
void wkpu_nxp_s32_enable_interrupt |
( |
const struct device * |
dev, |
|
|
uint8_t |
line, |
|
|
Wkpu_Ip_EdgeType |
edge_type |
|
) |
| |
Set edge event and enable interrupt for WKPU line.
- Parameters
-
dev | WKPU device |
line | WKPU line |
edge_type | Type of edge event |
◆ wkpu_nxp_s32_get_pending()
Get pending interrupt for WKPU device.
- Parameters
-
- Returns
- A mask contains pending flags
◆ wkpu_nxp_s32_set_callback()
Set WKPU callback for line.
- Parameters
-
dev | WKPU device |
line | WKPU line |
cb | Callback |
pin | GPIO pin |
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 |
line |
|
) |
| |
Unset WKPU callback for line.
- Parameters
-
dev | WKPU device |
line | WKPU line |