Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
intc_wkpu_nxp_s32.h File Reference
#include <Wkpu_Ip.h>

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.
 

Functions

void wkpu_nxp_s32_unset_callback (const struct device *dev, uint8_t line)
 Unset WKPU callback for line.
 
int wkpu_nxp_s32_set_callback (const struct device *dev, uint8_t line, wkpu_nxp_s32_callback_t cb, uint8_t pin, void *arg)
 Set WKPU callback for line.
 
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.
 
void wkpu_nxp_s32_disable_interrupt (const struct device *dev, uint8_t line)
 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.

Function Documentation

◆ wkpu_nxp_s32_disable_interrupt()

void wkpu_nxp_s32_disable_interrupt ( const struct device dev,
uint8_t  line 
)

Disable interrupt for WKPU line.

Parameters
devWKPU device
lineWKPU 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
devWKPU device
lineWKPU line
edge_typeType of edge event

◆ 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 mask contains pending flags

◆ wkpu_nxp_s32_set_callback()

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

Set WKPU callback for line.

Parameters
devWKPU device
lineWKPU line
cbCallback
pinGPIO pin
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  line 
)

Unset WKPU callback for line.

Parameters
devWKPU device
lineWKPU line