Zephyr API 3.6.99
Loading...
Searching...
No Matches
intc_wkpu_nxp_s32.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* wkpu_nxp_s32_callback_t) (uint8_t pin, void *arg)
 Driver for Wake-up interrupt/event controller in NXP S32 MCUs.
 

Enumerations

enum  wkpu_nxp_s32_trigger { WKPU_NXP_S32_RISING_EDGE , WKPU_NXP_S32_FALLING_EDGE , WKPU_NXP_S32_BOTH_EDGES }
 NXP WKPU pin activation type. More...
 

Functions

void wkpu_nxp_s32_unset_callback (const struct device *dev, uint8_t irq)
 Unset WKPU callback for line.
 
int wkpu_nxp_s32_set_callback (const struct device *dev, uint8_t irq, uint8_t pin, wkpu_nxp_s32_callback_t cb, void *arg)
 Set WKPU callback for line.
 
void wkpu_nxp_s32_enable_interrupt (const struct device *dev, uint8_t irq, enum wkpu_nxp_s32_trigger trigger)
 Set edge event and enable interrupt for WKPU line.
 
void wkpu_nxp_s32_disable_interrupt (const struct device *dev, uint8_t irq)
 Disable interrupt for WKPU line.
 
uint64_t wkpu_nxp_s32_get_pending (const struct device *dev)
 Get pending interrupt for WKPU device.
 

Typedef Documentation

◆ 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

Enumeration Type Documentation

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

Function Documentation

◆ wkpu_nxp_s32_disable_interrupt()

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

Disable interrupt for WKPU line.

Parameters
devWKPU device
irqWKPU interrupt number

◆ wkpu_nxp_s32_enable_interrupt()

void wkpu_nxp_s32_enable_interrupt ( const struct device * dev,
uint8_t irq,
enum wkpu_nxp_s32_trigger trigger )

Set edge event and enable interrupt for WKPU line.

Parameters
devWKPU device
irqWKPU interrupt number
triggerpin activation trigger

◆ wkpu_nxp_s32_get_pending()

uint64_t wkpu_nxp_s32_get_pending ( const struct device * dev)

Get pending interrupt for WKPU device.

Parameters
devWKPU device
Returns
A bitmask containing pending interrupts

◆ wkpu_nxp_s32_set_callback()

int wkpu_nxp_s32_set_callback ( const struct device * dev,
uint8_t irq,
uint8_t pin,
wkpu_nxp_s32_callback_t cb,
void * arg )

Set WKPU callback for line.

Parameters
devWKPU device
irqWKPU interrupt number
pinGPIO pin
cbCallback
argCallback data
Return values
0on SUCCESS
-EBUSYif 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
devWKPU device
irqWKPU interrupt number