Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
wuc_ite_it51xxx.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 ITE Corporation. All Rights Reserved
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_IT51XXX_WUC_H_
8#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_IT51XXX_WUC_H_
9
10#include <zephyr/device.h>
11
17#define WUC_TYPE_EDGE_RISING BIT(0)
19#define WUC_TYPE_EDGE_FALLING BIT(1)
21#define WUC_TYPE_EDGE_BOTH (WUC_TYPE_EDGE_RISING | WUC_TYPE_EDGE_FALLING)
22
23#define WUC_TYPE_LEVEL_TRIG BIT(2)
25#define WUC_TYPE_LEVEL_HIGH BIT(3)
27#define WUC_TYPE_LEVEL_LOW BIT(4)
28
38void it51xxx_wuc_enable(const struct device *dev, uint8_t mask);
39
47void it51xxx_wuc_disable(const struct device *dev, uint8_t mask);
48
56void it51xxx_wuc_clear_status(const struct device *dev, uint8_t mask);
57
65void it51xxx_wuc_set_polarity(const struct device *dev, uint8_t mask, uint32_t flags);
66
67#endif /* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_IT51XXX_WUC_H_ */
flags
Definition parser.h:97
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:504
void it51xxx_wuc_set_polarity(const struct device *dev, uint8_t mask, uint32_t flags)
Select the trigger edge mode on the corresponding input.
void it51xxx_wuc_enable(const struct device *dev, uint8_t mask)
A trigger condition on the corresponding input generates a wake-up signal to the power management con...
void it51xxx_wuc_clear_status(const struct device *dev, uint8_t mask)
Write-1-clear a trigger condition that occurs on the corresponding input.
void it51xxx_wuc_disable(const struct device *dev, uint8_t mask)
A trigger condition on the corresponding input doesn't assert the wake-up signal (canceled not pendin...