Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
intc_eirq_nxp_s32.h File Reference

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.
 

Enumerations

enum  eirq_nxp_s32_trigger { EIRQ_NXP_S32_RISING_EDGE , EIRQ_NXP_S32_FALLING_EDGE , EIRQ_NXP_S32_BOTH_EDGES }
 NXP SIUL2 EIRQ pin activation type. More...
 

Functions

void eirq_nxp_s32_unset_callback (const struct device *dev, uint8_t irq)
 Unset interrupt callback.
 
int eirq_nxp_s32_set_callback (const struct device *dev, uint8_t irq, uint8_t pin, eirq_nxp_s32_callback_t cb, void *arg)
 Set callback for an interrupt associated with a given pin.
 
void eirq_nxp_s32_enable_interrupt (const struct device *dev, uint8_t irq, enum eirq_nxp_s32_trigger trigger)
 Enable interrupt on a given trigger event.
 
void eirq_nxp_s32_disable_interrupt (const struct device *dev, uint8_t irq)
 Disable interrupt.
 
uint32_t eirq_nxp_s32_get_pending (const struct device *dev)
 Get pending interrupts.
 

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.

NXP SIUL2 EIRQ callback

Enumeration Type Documentation

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

Function Documentation

◆ eirq_nxp_s32_disable_interrupt()

void eirq_nxp_s32_disable_interrupt ( const struct device * dev,
uint8_t irq )

Disable interrupt.

Parameters
devSIUL2 EIRQ device
irqinterrupt number

◆ eirq_nxp_s32_enable_interrupt()

void eirq_nxp_s32_enable_interrupt ( const struct device * dev,
uint8_t irq,
enum eirq_nxp_s32_trigger trigger )

Enable interrupt on a given trigger event.

Parameters
devSIUL2 EIRQ device
irqinterrupt number
triggertrigger event

◆ eirq_nxp_s32_get_pending()

uint32_t eirq_nxp_s32_get_pending ( const struct device * dev)

Get pending interrupts.

Parameters
devSIUL2 EIRQ device
Returns
A bitmask containing pending pending interrupts

◆ eirq_nxp_s32_set_callback()

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

Set callback for an interrupt associated with a given pin.

Parameters
devSIUL2 EIRQ device
irqinterrupt number
pinGPIO pin associated with the interrupt
cbcallback to install
arguser data to include in callback
Return values
0on success
-EBUSYif 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
devSIUL2 EIRQ device
irqinterrupt number