esp32c6_lp/pmu/
int_raw.rs1#[doc = "Register `INT_RAW` reader"]
2pub type R = crate::R<INT_RAW_SPEC>;
3#[doc = "Register `INT_RAW` writer"]
4pub type W = crate::W<INT_RAW_SPEC>;
5#[doc = "Field `LP_CPU_EXC` reader - need_des"]
6pub type LP_CPU_EXC_R = crate::BitReader;
7#[doc = "Field `LP_CPU_EXC` writer - need_des"]
8pub type LP_CPU_EXC_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SDIO_IDLE` reader - need_des"]
10pub type SDIO_IDLE_R = crate::BitReader;
11#[doc = "Field `SDIO_IDLE` writer - need_des"]
12pub type SDIO_IDLE_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SW` reader - need_des"]
14pub type SW_R = crate::BitReader;
15#[doc = "Field `SW` writer - need_des"]
16pub type SW_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `SOC_SLEEP_REJECT` reader - need_des"]
18pub type SOC_SLEEP_REJECT_R = crate::BitReader;
19#[doc = "Field `SOC_SLEEP_REJECT` writer - need_des"]
20pub type SOC_SLEEP_REJECT_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `SOC_WAKEUP` reader - need_des"]
22pub type SOC_WAKEUP_R = crate::BitReader;
23#[doc = "Field `SOC_WAKEUP` writer - need_des"]
24pub type SOC_WAKEUP_W<'a, REG> = crate::BitWriter<'a, REG>;
25impl R {
26 #[doc = "Bit 27 - need_des"]
27 #[inline(always)]
28 pub fn lp_cpu_exc(&self) -> LP_CPU_EXC_R {
29 LP_CPU_EXC_R::new(((self.bits >> 27) & 1) != 0)
30 }
31 #[doc = "Bit 28 - need_des"]
32 #[inline(always)]
33 pub fn sdio_idle(&self) -> SDIO_IDLE_R {
34 SDIO_IDLE_R::new(((self.bits >> 28) & 1) != 0)
35 }
36 #[doc = "Bit 29 - need_des"]
37 #[inline(always)]
38 pub fn sw(&self) -> SW_R {
39 SW_R::new(((self.bits >> 29) & 1) != 0)
40 }
41 #[doc = "Bit 30 - need_des"]
42 #[inline(always)]
43 pub fn soc_sleep_reject(&self) -> SOC_SLEEP_REJECT_R {
44 SOC_SLEEP_REJECT_R::new(((self.bits >> 30) & 1) != 0)
45 }
46 #[doc = "Bit 31 - need_des"]
47 #[inline(always)]
48 pub fn soc_wakeup(&self) -> SOC_WAKEUP_R {
49 SOC_WAKEUP_R::new(((self.bits >> 31) & 1) != 0)
50 }
51}
52#[cfg(feature = "impl-register-debug")]
53impl core::fmt::Debug for R {
54 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
55 f.debug_struct("INT_RAW")
56 .field("lp_cpu_exc", &self.lp_cpu_exc())
57 .field("sdio_idle", &self.sdio_idle())
58 .field("sw", &self.sw())
59 .field("soc_sleep_reject", &self.soc_sleep_reject())
60 .field("soc_wakeup", &self.soc_wakeup())
61 .finish()
62 }
63}
64impl W {
65 #[doc = "Bit 27 - need_des"]
66 #[inline(always)]
67 #[must_use]
68 pub fn lp_cpu_exc(&mut self) -> LP_CPU_EXC_W<INT_RAW_SPEC> {
69 LP_CPU_EXC_W::new(self, 27)
70 }
71 #[doc = "Bit 28 - need_des"]
72 #[inline(always)]
73 #[must_use]
74 pub fn sdio_idle(&mut self) -> SDIO_IDLE_W<INT_RAW_SPEC> {
75 SDIO_IDLE_W::new(self, 28)
76 }
77 #[doc = "Bit 29 - need_des"]
78 #[inline(always)]
79 #[must_use]
80 pub fn sw(&mut self) -> SW_W<INT_RAW_SPEC> {
81 SW_W::new(self, 29)
82 }
83 #[doc = "Bit 30 - need_des"]
84 #[inline(always)]
85 #[must_use]
86 pub fn soc_sleep_reject(&mut self) -> SOC_SLEEP_REJECT_W<INT_RAW_SPEC> {
87 SOC_SLEEP_REJECT_W::new(self, 30)
88 }
89 #[doc = "Bit 31 - need_des"]
90 #[inline(always)]
91 #[must_use]
92 pub fn soc_wakeup(&mut self) -> SOC_WAKEUP_W<INT_RAW_SPEC> {
93 SOC_WAKEUP_W::new(self, 31)
94 }
95}
96#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_raw::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
97pub struct INT_RAW_SPEC;
98impl crate::RegisterSpec for INT_RAW_SPEC {
99 type Ux = u32;
100}
101#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
102impl crate::Readable for INT_RAW_SPEC {}
103#[doc = "`write(|w| ..)` method takes [`int_raw::W`](W) writer structure"]
104impl crate::Writable for INT_RAW_SPEC {
105 type Safety = crate::Unsafe;
106 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
107 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
108}
109#[doc = "`reset()` method sets INT_RAW to value 0"]
110impl crate::Resettable for INT_RAW_SPEC {
111 const RESET_VALUE: u32 = 0;
112}