#include <Siul2_Icu_Ip.h>
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.
◆ eirq_nxp_s32_disable_interrupt()
void eirq_nxp_s32_disable_interrupt |
( |
const struct device * |
dev, |
|
|
uint8_t |
line |
|
) |
| |
Disable interrupt for EIRQ line.
- Parameters
-
dev | EIRQ device |
line | EIRQ line |
◆ eirq_nxp_s32_enable_interrupt()
void eirq_nxp_s32_enable_interrupt |
( |
const struct device * |
dev, |
|
|
uint8_t |
line, |
|
|
Siul2_Icu_Ip_EdgeType |
edge_type |
|
) |
| |
Set edge event and enable interrupt for EIRQ line.
- Parameters
-
dev | EIRQ device |
line | EIRQ line |
edge_type | Type of edge event |
◆ eirq_nxp_s32_get_pending()
Get pending interrupt for EIRQ device.
- Parameters
-
- Returns
- A mask contains pending flags
◆ eirq_nxp_s32_set_callback()
Set EIRQ callback for line.
- Parameters
-
dev | EIRQ device |
line | EIRQ line |
cb | Callback |
pin | GPIO pin |
arg | Callback data |
- Return values
-
0 | on SUCCESS |
-EBUSY | if callback for the line is already set |
◆ eirq_nxp_s32_unset_callback()
void eirq_nxp_s32_unset_callback |
( |
const struct device * |
dev, |
|
|
uint8_t |
line |
|
) |
| |
Unset EIRQ callback for line.
- Parameters
-
dev | EIRQ device |
line | EIRQ line |