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 File Reference
#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.
 

Macro Definition Documentation

◆ WUC_TYPE_EDGE_BOTH

#define WUC_TYPE_EDGE_BOTH   (WUC_TYPE_EDGE_RISING | WUC_TYPE_EDGE_FALLING)

WUC both edge trigger mode.

◆ WUC_TYPE_EDGE_FALLING

#define WUC_TYPE_EDGE_FALLING   BIT(1)

WUC falling edge trigger mode.

◆ WUC_TYPE_EDGE_RISING

#define WUC_TYPE_EDGE_RISING   BIT(0)

WUC rising edge trigger mode.

◆ WUC_TYPE_LEVEL_HIGH

#define WUC_TYPE_LEVEL_HIGH   BIT(3)

WUC level high trigger mode.

◆ WUC_TYPE_LEVEL_LOW

#define WUC_TYPE_LEVEL_LOW   BIT(4)

WUC level low trigger mode.

◆ WUC_TYPE_LEVEL_TRIG

#define WUC_TYPE_LEVEL_TRIG   BIT(2)

Function Documentation

◆ it51xxx_wuc_clear_status()

void it51xxx_wuc_clear_status ( const struct device * dev,
uint8_t mask )

Write-1-clear a trigger condition that occurs on the corresponding input.

Parameters
devPointer to the device structure for the driver instance
maskPin mask of WUC group

◆ it51xxx_wuc_disable()

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)

Parameters
devPointer to the device structure for the driver instance
maskPin mask of WUC group

◆ it51xxx_wuc_enable()

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.

Parameters
devPointer to the device structure for the driver instance
maskPin mask of WUC group

◆ it51xxx_wuc_set_polarity()

void it51xxx_wuc_set_polarity ( const struct device * dev,
uint8_t mask,
uint32_t flags )

Select the trigger edge mode on the corresponding input.

Parameters
devPointer to the device structure for the driver instance
maskPin mask of WUC group
flagsSelect the trigger edge mode