Zephyr API Documentation  3.7.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 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
14#include <Wkpu_Ip.h>
15
16/* Wrapper callback for WKPU line */
17typedef void (*wkpu_nxp_s32_callback_t)(uint8_t pin, void *arg);
18
25void wkpu_nxp_s32_unset_callback(const struct device *dev, uint8_t line);
26
39int wkpu_nxp_s32_set_callback(const struct device *dev, uint8_t line,
40 wkpu_nxp_s32_callback_t cb, uint8_t pin, void *arg);
41
49void wkpu_nxp_s32_enable_interrupt(const struct device *dev, uint8_t line,
50 Wkpu_Ip_EdgeType edge_type);
51
58void wkpu_nxp_s32_disable_interrupt(const struct device *dev, uint8_t line);
59
67
68#endif /* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_WKPU_NXP_S32_H_ */
void wkpu_nxp_s32_disable_interrupt(const struct device *dev, uint8_t line)
Disable interrupt for WKPU 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_unset_callback(const struct device *dev, uint8_t line)
Unset WKPU callback for line.
uint64_t wkpu_nxp_s32_get_pending(const struct device *dev)
Get pending interrupt for WKPU device.
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_callback_t)(uint8_t pin, void *arg)
Driver for Wake-up interrupt/event controller in NXP S32 MCUs.
Definition: intc_wkpu_nxp_s32.h:17
__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:403