esp32h2/pmu/
lp_int_clr.rs

1#[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    pub fn lp_cpu_wakeup(&mut self) -> LP_CPU_WAKEUP_W<LP_INT_CLR_SPEC> {
37        LP_CPU_WAKEUP_W::new(self, 20)
38    }
39    #[doc = "Bit 21 - need_des"]
40    #[inline(always)]
41    pub fn modem_switch_active_end(&mut self) -> MODEM_SWITCH_ACTIVE_END_W<LP_INT_CLR_SPEC> {
42        MODEM_SWITCH_ACTIVE_END_W::new(self, 21)
43    }
44    #[doc = "Bit 22 - need_des"]
45    #[inline(always)]
46    pub fn sleep_switch_active_end(&mut self) -> SLEEP_SWITCH_ACTIVE_END_W<LP_INT_CLR_SPEC> {
47        SLEEP_SWITCH_ACTIVE_END_W::new(self, 22)
48    }
49    #[doc = "Bit 23 - need_des"]
50    #[inline(always)]
51    pub fn sleep_switch_modem_end(&mut self) -> SLEEP_SWITCH_MODEM_END_W<LP_INT_CLR_SPEC> {
52        SLEEP_SWITCH_MODEM_END_W::new(self, 23)
53    }
54    #[doc = "Bit 24 - need_des"]
55    #[inline(always)]
56    pub fn modem_switch_sleep_end(&mut self) -> MODEM_SWITCH_SLEEP_END_W<LP_INT_CLR_SPEC> {
57        MODEM_SWITCH_SLEEP_END_W::new(self, 24)
58    }
59    #[doc = "Bit 25 - need_des"]
60    #[inline(always)]
61    pub fn active_switch_sleep_end(&mut self) -> ACTIVE_SWITCH_SLEEP_END_W<LP_INT_CLR_SPEC> {
62        ACTIVE_SWITCH_SLEEP_END_W::new(self, 25)
63    }
64    #[doc = "Bit 26 - need_des"]
65    #[inline(always)]
66    pub fn modem_switch_active_start(&mut self) -> MODEM_SWITCH_ACTIVE_START_W<LP_INT_CLR_SPEC> {
67        MODEM_SWITCH_ACTIVE_START_W::new(self, 26)
68    }
69    #[doc = "Bit 27 - need_des"]
70    #[inline(always)]
71    pub fn sleep_switch_active_start(&mut self) -> SLEEP_SWITCH_ACTIVE_START_W<LP_INT_CLR_SPEC> {
72        SLEEP_SWITCH_ACTIVE_START_W::new(self, 27)
73    }
74    #[doc = "Bit 28 - need_des"]
75    #[inline(always)]
76    pub fn sleep_switch_modem_start(&mut self) -> SLEEP_SWITCH_MODEM_START_W<LP_INT_CLR_SPEC> {
77        SLEEP_SWITCH_MODEM_START_W::new(self, 28)
78    }
79    #[doc = "Bit 29 - need_des"]
80    #[inline(always)]
81    pub fn modem_switch_sleep_start(&mut self) -> MODEM_SWITCH_SLEEP_START_W<LP_INT_CLR_SPEC> {
82        MODEM_SWITCH_SLEEP_START_W::new(self, 29)
83    }
84    #[doc = "Bit 30 - need_des"]
85    #[inline(always)]
86    pub fn active_switch_sleep_start(&mut self) -> ACTIVE_SWITCH_SLEEP_START_W<LP_INT_CLR_SPEC> {
87        ACTIVE_SWITCH_SLEEP_START_W::new(self, 30)
88    }
89    #[doc = "Bit 31 - need_des"]
90    #[inline(always)]
91    pub fn hp_sw_trigger(&mut self) -> HP_SW_TRIGGER_W<LP_INT_CLR_SPEC> {
92        HP_SW_TRIGGER_W::new(self, 31)
93    }
94}
95#[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)."]
96pub struct LP_INT_CLR_SPEC;
97impl crate::RegisterSpec for LP_INT_CLR_SPEC {
98    type Ux = u32;
99}
100#[doc = "`write(|w| ..)` method takes [`lp_int_clr::W`](W) writer structure"]
101impl crate::Writable for LP_INT_CLR_SPEC {
102    type Safety = crate::Unsafe;
103    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0xfff0_0000;
104}
105#[doc = "`reset()` method sets LP_INT_CLR to value 0"]
106impl crate::Resettable for LP_INT_CLR_SPEC {}