Lines Matching +full:sense +full:- +full:edge +full:- +full:mask
4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/interrupt-controller/it8xxx2-wuc.h>
22 /* WUC wakeup edge mode register */
24 /* WUC wakeup edge sense register */
28 /* WUC wakeup both edge mode register */
32 void it8xxx2_wuc_enable(const struct device *dev, uint8_t mask) in it8xxx2_wuc_enable() argument
34 const struct it8xxx2_wuc_cfg *config = dev->config; in it8xxx2_wuc_enable()
35 volatile uint8_t *reg_wuenr = config->reg_wuenr; in it8xxx2_wuc_enable()
46 *reg_wuenr |= mask; in it8xxx2_wuc_enable()
49 void it8xxx2_wuc_disable(const struct device *dev, uint8_t mask) in it8xxx2_wuc_disable() argument
51 const struct it8xxx2_wuc_cfg *config = dev->config; in it8xxx2_wuc_disable()
52 volatile uint8_t *reg_wuenr = config->reg_wuenr; in it8xxx2_wuc_disable()
63 *reg_wuenr &= ~mask; in it8xxx2_wuc_disable()
66 void it8xxx2_wuc_clear_status(const struct device *dev, uint8_t mask) in it8xxx2_wuc_clear_status() argument
68 const struct it8xxx2_wuc_cfg *config = dev->config; in it8xxx2_wuc_clear_status()
69 volatile uint8_t *reg_wuesr = config->reg_wuesr; in it8xxx2_wuc_clear_status()
76 *reg_wuesr = mask; in it8xxx2_wuc_clear_status()
79 void it8xxx2_wuc_set_polarity(const struct device *dev, uint8_t mask, uint32_t flags) in it8xxx2_wuc_set_polarity() argument
81 const struct it8xxx2_wuc_cfg *config = dev->config; in it8xxx2_wuc_set_polarity()
82 volatile uint8_t *reg_wuemr = config->reg_wuemr; in it8xxx2_wuc_set_polarity()
83 volatile uint8_t *reg_wubemr = config->reg_wubemr; in it8xxx2_wuc_set_polarity()
89 /* Set wakeup interrupt edge trigger mode of the pin */ in it8xxx2_wuc_set_polarity()
91 *reg_wubemr &= ~mask; in it8xxx2_wuc_set_polarity()
92 *reg_wuemr &= ~mask; in it8xxx2_wuc_set_polarity()
94 *reg_wubemr &= ~mask; in it8xxx2_wuc_set_polarity()
95 *reg_wuemr |= mask; in it8xxx2_wuc_set_polarity()
97 /* Both edge trigger mode */ in it8xxx2_wuc_set_polarity()
98 *reg_wubemr |= mask; in it8xxx2_wuc_set_polarity()