Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
|
4.1.99 |
#include <zephyr/device.h>
Go to the source code of this file.
Macros | |
wakeup controller flags | |
#define | WUC_TYPE_EDGE_RISING BIT(0) |
WUC rising edge trigger mode. | |
#define | WUC_TYPE_EDGE_FALLING BIT(1) |
WUC falling edge trigger mode. | |
#define | WUC_TYPE_EDGE_BOTH (WUC_TYPE_EDGE_RISING | WUC_TYPE_EDGE_FALLING) |
WUC both edge trigger mode. | |
#define | WUC_TYPE_LEVEL_TRIG BIT(2) |
#define | WUC_TYPE_LEVEL_HIGH BIT(3) |
WUC level high trigger mode. | |
#define | WUC_TYPE_LEVEL_LOW BIT(4) |
WUC level low trigger mode. | |
Functions | |
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 control of EC. | |
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 pending) | |
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_set_polarity (const struct device *dev, uint8_t mask, uint32_t flags) |
Select the trigger edge mode on the corresponding input. | |
#define WUC_TYPE_EDGE_BOTH (WUC_TYPE_EDGE_RISING | WUC_TYPE_EDGE_FALLING) |
WUC both edge trigger mode.
#define WUC_TYPE_EDGE_FALLING BIT(1) |
WUC falling edge trigger mode.
#define WUC_TYPE_EDGE_RISING BIT(0) |
WUC rising edge trigger mode.
#define WUC_TYPE_LEVEL_HIGH BIT(3) |
WUC level high trigger mode.
#define WUC_TYPE_LEVEL_LOW BIT(4) |
WUC level low trigger mode.
#define WUC_TYPE_LEVEL_TRIG BIT(2) |
Write-1-clear a trigger condition that occurs on the corresponding input.
dev | Pointer to the device structure for the driver instance |
mask | Pin mask of WUC group |
A trigger condition on the corresponding input doesn't assert the wake-up signal (canceled not pending)
dev | Pointer to the device structure for the driver instance |
mask | Pin mask of WUC group |
A trigger condition on the corresponding input generates a wake-up signal to the power management control of EC.
dev | Pointer to the device structure for the driver instance |
mask | Pin mask of WUC group |