esp32c6_lp/pmu/
lp_int_clr.rs1#[doc = "Register `LP_INT_CLR` writer"]
2pub type W = crate::W<LP_INT_CLR_SPEC>;
3#[doc = "Field `LP_CPU_WAKEUP` writer - need_des"]
4pub type LP_CPU_WAKEUP_W<'a, REG> = crate::BitWriter1C<'a, REG>;
5#[doc = "Field `MODEM_SWITCH_ACTIVE_END` writer - need_des"]
6pub type MODEM_SWITCH_ACTIVE_END_W<'a, REG> = crate::BitWriter1C<'a, REG>;
7#[doc = "Field `SLEEP_SWITCH_ACTIVE_END` writer - need_des"]
8pub type SLEEP_SWITCH_ACTIVE_END_W<'a, REG> = crate::BitWriter1C<'a, REG>;
9#[doc = "Field `SLEEP_SWITCH_MODEM_END` writer - need_des"]
10pub type SLEEP_SWITCH_MODEM_END_W<'a, REG> = crate::BitWriter1C<'a, REG>;
11#[doc = "Field `MODEM_SWITCH_SLEEP_END` writer - need_des"]
12pub type MODEM_SWITCH_SLEEP_END_W<'a, REG> = crate::BitWriter1C<'a, REG>;
13#[doc = "Field `ACTIVE_SWITCH_SLEEP_END` writer - need_des"]
14pub type ACTIVE_SWITCH_SLEEP_END_W<'a, REG> = crate::BitWriter1C<'a, REG>;
15#[doc = "Field `MODEM_SWITCH_ACTIVE_START` writer - need_des"]
16pub type MODEM_SWITCH_ACTIVE_START_W<'a, REG> = crate::BitWriter1C<'a, REG>;
17#[doc = "Field `SLEEP_SWITCH_ACTIVE_START` writer - need_des"]
18pub type SLEEP_SWITCH_ACTIVE_START_W<'a, REG> = crate::BitWriter1C<'a, REG>;
19#[doc = "Field `SLEEP_SWITCH_MODEM_START` writer - need_des"]
20pub type SLEEP_SWITCH_MODEM_START_W<'a, REG> = crate::BitWriter1C<'a, REG>;
21#[doc = "Field `MODEM_SWITCH_SLEEP_START` writer - need_des"]
22pub type MODEM_SWITCH_SLEEP_START_W<'a, REG> = crate::BitWriter1C<'a, REG>;
23#[doc = "Field `ACTIVE_SWITCH_SLEEP_START` writer - need_des"]
24pub type ACTIVE_SWITCH_SLEEP_START_W<'a, REG> = crate::BitWriter1C<'a, REG>;
25#[doc = "Field `HP_SW_TRIGGER` writer - need_des"]
26pub type HP_SW_TRIGGER_W<'a, REG> = crate::BitWriter1C<'a, REG>;
27#[cfg(feature = "impl-register-debug")]
28impl core::fmt::Debug for crate::generic::Reg<LP_INT_CLR_SPEC> {
29 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
30 write!(f, "(not readable)")
31 }
32}
33impl W {
34 #[doc = "Bit 20 - need_des"]
35 #[inline(always)]
36 #[must_use]
37 pub fn lp_cpu_wakeup(&mut self) -> LP_CPU_WAKEUP_W<LP_INT_CLR_SPEC> {
38 LP_CPU_WAKEUP_W::new(self, 20)
39 }
40 #[doc = "Bit 21 - need_des"]
41 #[inline(always)]
42 #[must_use]
43 pub fn modem_switch_active_end(&mut self) -> MODEM_SWITCH_ACTIVE_END_W<LP_INT_CLR_SPEC> {
44 MODEM_SWITCH_ACTIVE_END_W::new(self, 21)
45 }
46 #[doc = "Bit 22 - need_des"]
47 #[inline(always)]
48 #[must_use]
49 pub fn sleep_switch_active_end(&mut self) -> SLEEP_SWITCH_ACTIVE_END_W<LP_INT_CLR_SPEC> {
50 SLEEP_SWITCH_ACTIVE_END_W::new(self, 22)
51 }
52 #[doc = "Bit 23 - need_des"]
53 #[inline(always)]
54 #[must_use]
55 pub fn sleep_switch_modem_end(&mut self) -> SLEEP_SWITCH_MODEM_END_W<LP_INT_CLR_SPEC> {
56 SLEEP_SWITCH_MODEM_END_W::new(self, 23)
57 }
58 #[doc = "Bit 24 - need_des"]
59 #[inline(always)]
60 #[must_use]
61 pub fn modem_switch_sleep_end(&mut self) -> MODEM_SWITCH_SLEEP_END_W<LP_INT_CLR_SPEC> {
62 MODEM_SWITCH_SLEEP_END_W::new(self, 24)
63 }
64 #[doc = "Bit 25 - need_des"]
65 #[inline(always)]
66 #[must_use]
67 pub fn active_switch_sleep_end(&mut self) -> ACTIVE_SWITCH_SLEEP_END_W<LP_INT_CLR_SPEC> {
68 ACTIVE_SWITCH_SLEEP_END_W::new(self, 25)
69 }
70 #[doc = "Bit 26 - need_des"]
71 #[inline(always)]
72 #[must_use]
73 pub fn modem_switch_active_start(&mut self) -> MODEM_SWITCH_ACTIVE_START_W<LP_INT_CLR_SPEC> {
74 MODEM_SWITCH_ACTIVE_START_W::new(self, 26)
75 }
76 #[doc = "Bit 27 - need_des"]
77 #[inline(always)]
78 #[must_use]
79 pub fn sleep_switch_active_start(&mut self) -> SLEEP_SWITCH_ACTIVE_START_W<LP_INT_CLR_SPEC> {
80 SLEEP_SWITCH_ACTIVE_START_W::new(self, 27)
81 }
82 #[doc = "Bit 28 - need_des"]
83 #[inline(always)]
84 #[must_use]
85 pub fn sleep_switch_modem_start(&mut self) -> SLEEP_SWITCH_MODEM_START_W<LP_INT_CLR_SPEC> {
86 SLEEP_SWITCH_MODEM_START_W::new(self, 28)
87 }
88 #[doc = "Bit 29 - need_des"]
89 #[inline(always)]
90 #[must_use]
91 pub fn modem_switch_sleep_start(&mut self) -> MODEM_SWITCH_SLEEP_START_W<LP_INT_CLR_SPEC> {
92 MODEM_SWITCH_SLEEP_START_W::new(self, 29)
93 }
94 #[doc = "Bit 30 - need_des"]
95 #[inline(always)]
96 #[must_use]
97 pub fn active_switch_sleep_start(&mut self) -> ACTIVE_SWITCH_SLEEP_START_W<LP_INT_CLR_SPEC> {
98 ACTIVE_SWITCH_SLEEP_START_W::new(self, 30)
99 }
100 #[doc = "Bit 31 - need_des"]
101 #[inline(always)]
102 #[must_use]
103 pub fn hp_sw_trigger(&mut self) -> HP_SW_TRIGGER_W<LP_INT_CLR_SPEC> {
104 HP_SW_TRIGGER_W::new(self, 31)
105 }
106}
107#[doc = "need_des\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lp_int_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
108pub struct LP_INT_CLR_SPEC;
109impl crate::RegisterSpec for LP_INT_CLR_SPEC {
110 type Ux = u32;
111}
112#[doc = "`write(|w| ..)` method takes [`lp_int_clr::W`](W) writer structure"]
113impl crate::Writable for LP_INT_CLR_SPEC {
114 type Safety = crate::Unsafe;
115 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
116 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0xfff0_0000;
117}
118#[doc = "`reset()` method sets LP_INT_CLR to value 0"]
119impl crate::Resettable for LP_INT_CLR_SPEC {
120 const RESET_VALUE: u32 = 0;
121}