Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
intc_wkpu_nxp_s32.h
Go to the documentation of this file.
1
/*
2
* Copyright 2023-2024 NXP
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
10
11
#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_WKPU_NXP_S32_H_
12
#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_WKPU_NXP_S32_H_
13
15
typedef
void (*
wkpu_nxp_s32_callback_t
)(
uint8_t
pin,
void
*arg);
16
20
enum
wkpu_nxp_s32_trigger
{
22
WKPU_NXP_S32_RISING_EDGE
,
24
WKPU_NXP_S32_FALLING_EDGE
,
26
WKPU_NXP_S32_BOTH_EDGES
,
27
};
28
35
void
wkpu_nxp_s32_unset_callback
(
const
struct
device
*dev,
uint8_t
irq);
36
49
int
wkpu_nxp_s32_set_callback
(
const
struct
device
*dev,
uint8_t
irq,
uint8_t
pin,
50
wkpu_nxp_s32_callback_t
cb,
void
*arg);
51
59
void
wkpu_nxp_s32_enable_interrupt
(
const
struct
device
*dev,
uint8_t
irq,
60
enum
wkpu_nxp_s32_trigger
trigger);
61
68
void
wkpu_nxp_s32_disable_interrupt
(
const
struct
device
*dev,
uint8_t
irq);
69
76
uint64_t
wkpu_nxp_s32_get_pending
(
const
struct
device
*dev);
77
78
#endif
/* ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_INTC_WKPU_NXP_S32_H_ */
wkpu_nxp_s32_unset_callback
void wkpu_nxp_s32_unset_callback(const struct device *dev, uint8_t irq)
Unset WKPU callback for line.
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.
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.
wkpu_nxp_s32_trigger
wkpu_nxp_s32_trigger
NXP WKPU pin activation type.
Definition
intc_wkpu_nxp_s32.h:20
WKPU_NXP_S32_RISING_EDGE
@ WKPU_NXP_S32_RISING_EDGE
Interrupt triggered on rising edge.
Definition
intc_wkpu_nxp_s32.h:22
WKPU_NXP_S32_BOTH_EDGES
@ WKPU_NXP_S32_BOTH_EDGES
Interrupt triggered on either edge.
Definition
intc_wkpu_nxp_s32.h:26
WKPU_NXP_S32_FALLING_EDGE
@ WKPU_NXP_S32_FALLING_EDGE
Interrupt triggered on falling edge.
Definition
intc_wkpu_nxp_s32.h:24
wkpu_nxp_s32_get_pending
uint64_t wkpu_nxp_s32_get_pending(const struct device *dev)
Get pending interrupt for WKPU device.
wkpu_nxp_s32_callback_t
void(* wkpu_nxp_s32_callback_t)(uint8_t pin, void *arg)
Driver for Wake-up interrupt/event controller in NXP S32 MCUs.
Definition
intc_wkpu_nxp_s32.h:15
wkpu_nxp_s32_disable_interrupt
void wkpu_nxp_s32_disable_interrupt(const struct device *dev, uint8_t irq)
Disable interrupt for WKPU line.
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:91
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:513
zephyr
drivers
interrupt_controller
intc_wkpu_nxp_s32.h
Generated on
for Zephyr API by
1.17.0