Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
intc_eirq_nxp_s32.h File Reference
#include <Siul2_Icu_Ip.h>

Go to the source code of this file.

Typedefs

typedef void(* eirq_nxp_s32_callback_t) (uint8_t pin, void *arg)
 Driver for External interrupt/event controller in NXP S32 MCUs.
 

Functions

void eirq_nxp_s32_unset_callback (const struct device *dev, uint8_t line)
 Unset EIRQ callback for line.
 
int eirq_nxp_s32_set_callback (const struct device *dev, uint8_t line, eirq_nxp_s32_callback_t cb, uint8_t pin, void *arg)
 Set EIRQ callback for line.
 
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.
 
void eirq_nxp_s32_disable_interrupt (const struct device *dev, uint8_t line)
 Disable interrupt for EIRQ line.
 
uint32_t eirq_nxp_s32_get_pending (const struct device *dev)
 Get pending interrupt for EIRQ device.
 

Typedef Documentation

◆ 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.

Function Documentation

◆ eirq_nxp_s32_disable_interrupt()

void eirq_nxp_s32_disable_interrupt ( const struct device dev,
uint8_t  line 
)

Disable interrupt for EIRQ line.

Parameters
devEIRQ device
lineEIRQ 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
devEIRQ device
lineEIRQ line
edge_typeType of edge event

◆ eirq_nxp_s32_get_pending()

uint32_t eirq_nxp_s32_get_pending ( const struct device dev)

Get pending interrupt for EIRQ device.

Parameters
devEIRQ device
Returns
A mask contains pending flags

◆ eirq_nxp_s32_set_callback()

int eirq_nxp_s32_set_callback ( const struct device dev,
uint8_t  line,
eirq_nxp_s32_callback_t  cb,
uint8_t  pin,
void *  arg 
)

Set EIRQ callback for line.

Parameters
devEIRQ device
lineEIRQ line
cbCallback
pinGPIO pin
argCallback data
Return values
0on SUCCESS
-EBUSYif 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
devEIRQ device
lineEIRQ line