Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
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
11#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_WKPU_NXP_S32_H_
12#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_WKPU_NXP_S32_H_
13
15typedef void (*wkpu_nxp_s32_callback_t)(uint8_t pin, void *arg);
16
28
35void wkpu_nxp_s32_unset_callback(const struct device *dev, uint8_t irq);
36
49int 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
59void wkpu_nxp_s32_enable_interrupt(const struct device *dev, uint8_t irq,
60 enum wkpu_nxp_s32_trigger trigger);
61
68void wkpu_nxp_s32_disable_interrupt(const struct device *dev, uint8_t irq);
69
77
78#endif /* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_WKPU_NXP_S32_H_ */
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.
wkpu_nxp_s32_trigger
NXP WKPU pin activation type.
Definition intc_wkpu_nxp_s32.h:20
@ WKPU_NXP_S32_RISING_EDGE
Interrupt triggered on rising edge.
Definition intc_wkpu_nxp_s32.h:22
@ WKPU_NXP_S32_BOTH_EDGES
Interrupt triggered on either edge.
Definition intc_wkpu_nxp_s32.h:26
@ WKPU_NXP_S32_FALLING_EDGE
Interrupt triggered on falling edge.
Definition intc_wkpu_nxp_s32.h:24
uint64_t wkpu_nxp_s32_get_pending(const struct device *dev)
Get pending interrupt for WKPU device.
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
void wkpu_nxp_s32_disable_interrupt(const struct device *dev, uint8_t irq)
Disable interrupt for WKPU line.
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:412