esp32c6_lp/pmu/
lp_int_st.rs1#[doc = "Register `LP_INT_ST` reader"]
2pub type R = crate::R<LP_INT_ST_SPEC>;
3#[doc = "Field `LP_CPU_WAKEUP` reader - need_des"]
4pub type LP_CPU_WAKEUP_R = crate::BitReader;
5#[doc = "Field `MODEM_SWITCH_ACTIVE_END` reader - need_des"]
6pub type MODEM_SWITCH_ACTIVE_END_R = crate::BitReader;
7#[doc = "Field `SLEEP_SWITCH_ACTIVE_END` reader - need_des"]
8pub type SLEEP_SWITCH_ACTIVE_END_R = crate::BitReader;
9#[doc = "Field `SLEEP_SWITCH_MODEM_END` reader - need_des"]
10pub type SLEEP_SWITCH_MODEM_END_R = crate::BitReader;
11#[doc = "Field `MODEM_SWITCH_SLEEP_END` reader - need_des"]
12pub type MODEM_SWITCH_SLEEP_END_R = crate::BitReader;
13#[doc = "Field `ACTIVE_SWITCH_SLEEP_END` reader - need_des"]
14pub type ACTIVE_SWITCH_SLEEP_END_R = crate::BitReader;
15#[doc = "Field `MODEM_SWITCH_ACTIVE_START` reader - need_des"]
16pub type MODEM_SWITCH_ACTIVE_START_R = crate::BitReader;
17#[doc = "Field `SLEEP_SWITCH_ACTIVE_START` reader - need_des"]
18pub type SLEEP_SWITCH_ACTIVE_START_R = crate::BitReader;
19#[doc = "Field `SLEEP_SWITCH_MODEM_START` reader - need_des"]
20pub type SLEEP_SWITCH_MODEM_START_R = crate::BitReader;
21#[doc = "Field `MODEM_SWITCH_SLEEP_START` reader - need_des"]
22pub type MODEM_SWITCH_SLEEP_START_R = crate::BitReader;
23#[doc = "Field `ACTIVE_SWITCH_SLEEP_START` reader - need_des"]
24pub type ACTIVE_SWITCH_SLEEP_START_R = crate::BitReader;
25#[doc = "Field `HP_SW_TRIGGER` reader - need_des"]
26pub type HP_SW_TRIGGER_R = crate::BitReader;
27impl R {
28 #[doc = "Bit 20 - need_des"]
29 #[inline(always)]
30 pub fn lp_cpu_wakeup(&self) -> LP_CPU_WAKEUP_R {
31 LP_CPU_WAKEUP_R::new(((self.bits >> 20) & 1) != 0)
32 }
33 #[doc = "Bit 21 - need_des"]
34 #[inline(always)]
35 pub fn modem_switch_active_end(&self) -> MODEM_SWITCH_ACTIVE_END_R {
36 MODEM_SWITCH_ACTIVE_END_R::new(((self.bits >> 21) & 1) != 0)
37 }
38 #[doc = "Bit 22 - need_des"]
39 #[inline(always)]
40 pub fn sleep_switch_active_end(&self) -> SLEEP_SWITCH_ACTIVE_END_R {
41 SLEEP_SWITCH_ACTIVE_END_R::new(((self.bits >> 22) & 1) != 0)
42 }
43 #[doc = "Bit 23 - need_des"]
44 #[inline(always)]
45 pub fn sleep_switch_modem_end(&self) -> SLEEP_SWITCH_MODEM_END_R {
46 SLEEP_SWITCH_MODEM_END_R::new(((self.bits >> 23) & 1) != 0)
47 }
48 #[doc = "Bit 24 - need_des"]
49 #[inline(always)]
50 pub fn modem_switch_sleep_end(&self) -> MODEM_SWITCH_SLEEP_END_R {
51 MODEM_SWITCH_SLEEP_END_R::new(((self.bits >> 24) & 1) != 0)
52 }
53 #[doc = "Bit 25 - need_des"]
54 #[inline(always)]
55 pub fn active_switch_sleep_end(&self) -> ACTIVE_SWITCH_SLEEP_END_R {
56 ACTIVE_SWITCH_SLEEP_END_R::new(((self.bits >> 25) & 1) != 0)
57 }
58 #[doc = "Bit 26 - need_des"]
59 #[inline(always)]
60 pub fn modem_switch_active_start(&self) -> MODEM_SWITCH_ACTIVE_START_R {
61 MODEM_SWITCH_ACTIVE_START_R::new(((self.bits >> 26) & 1) != 0)
62 }
63 #[doc = "Bit 27 - need_des"]
64 #[inline(always)]
65 pub fn sleep_switch_active_start(&self) -> SLEEP_SWITCH_ACTIVE_START_R {
66 SLEEP_SWITCH_ACTIVE_START_R::new(((self.bits >> 27) & 1) != 0)
67 }
68 #[doc = "Bit 28 - need_des"]
69 #[inline(always)]
70 pub fn sleep_switch_modem_start(&self) -> SLEEP_SWITCH_MODEM_START_R {
71 SLEEP_SWITCH_MODEM_START_R::new(((self.bits >> 28) & 1) != 0)
72 }
73 #[doc = "Bit 29 - need_des"]
74 #[inline(always)]
75 pub fn modem_switch_sleep_start(&self) -> MODEM_SWITCH_SLEEP_START_R {
76 MODEM_SWITCH_SLEEP_START_R::new(((self.bits >> 29) & 1) != 0)
77 }
78 #[doc = "Bit 30 - need_des"]
79 #[inline(always)]
80 pub fn active_switch_sleep_start(&self) -> ACTIVE_SWITCH_SLEEP_START_R {
81 ACTIVE_SWITCH_SLEEP_START_R::new(((self.bits >> 30) & 1) != 0)
82 }
83 #[doc = "Bit 31 - need_des"]
84 #[inline(always)]
85 pub fn hp_sw_trigger(&self) -> HP_SW_TRIGGER_R {
86 HP_SW_TRIGGER_R::new(((self.bits >> 31) & 1) != 0)
87 }
88}
89#[cfg(feature = "impl-register-debug")]
90impl core::fmt::Debug for R {
91 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
92 f.debug_struct("LP_INT_ST")
93 .field("lp_cpu_wakeup", &self.lp_cpu_wakeup())
94 .field("modem_switch_active_end", &self.modem_switch_active_end())
95 .field("sleep_switch_active_end", &self.sleep_switch_active_end())
96 .field("sleep_switch_modem_end", &self.sleep_switch_modem_end())
97 .field("modem_switch_sleep_end", &self.modem_switch_sleep_end())
98 .field("active_switch_sleep_end", &self.active_switch_sleep_end())
99 .field(
100 "modem_switch_active_start",
101 &self.modem_switch_active_start(),
102 )
103 .field(
104 "sleep_switch_active_start",
105 &self.sleep_switch_active_start(),
106 )
107 .field("sleep_switch_modem_start", &self.sleep_switch_modem_start())
108 .field("modem_switch_sleep_start", &self.modem_switch_sleep_start())
109 .field(
110 "active_switch_sleep_start",
111 &self.active_switch_sleep_start(),
112 )
113 .field("hp_sw_trigger", &self.hp_sw_trigger())
114 .finish()
115 }
116}
117#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lp_int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
118pub struct LP_INT_ST_SPEC;
119impl crate::RegisterSpec for LP_INT_ST_SPEC {
120 type Ux = u32;
121}
122#[doc = "`read()` method returns [`lp_int_st::R`](R) reader structure"]
123impl crate::Readable for LP_INT_ST_SPEC {}
124#[doc = "`reset()` method sets LP_INT_ST to value 0"]
125impl crate::Resettable for LP_INT_ST_SPEC {
126 const RESET_VALUE: u32 = 0;
127}