esp32c6_lp/lp_aon/
lpcore.rs1#[doc = "Register `LPCORE` reader"]
2pub type R = crate::R<LPCORE_SPEC>;
3#[doc = "Register `LPCORE` writer"]
4pub type W = crate::W<LPCORE_SPEC>;
5#[doc = "Field `ETM_WAKEUP_FLAG_CLR` writer - need_des"]
6pub type ETM_WAKEUP_FLAG_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `ETM_WAKEUP_FLAG` reader - need_des"]
8pub type ETM_WAKEUP_FLAG_R = crate::BitReader;
9#[doc = "Field `ETM_WAKEUP_FLAG` writer - need_des"]
10pub type ETM_WAKEUP_FLAG_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `DISABLE` reader - need_des"]
12pub type DISABLE_R = crate::BitReader;
13#[doc = "Field `DISABLE` writer - need_des"]
14pub type DISABLE_W<'a, REG> = crate::BitWriter<'a, REG>;
15impl R {
16 #[doc = "Bit 1 - need_des"]
17 #[inline(always)]
18 pub fn etm_wakeup_flag(&self) -> ETM_WAKEUP_FLAG_R {
19 ETM_WAKEUP_FLAG_R::new(((self.bits >> 1) & 1) != 0)
20 }
21 #[doc = "Bit 31 - need_des"]
22 #[inline(always)]
23 pub fn disable(&self) -> DISABLE_R {
24 DISABLE_R::new(((self.bits >> 31) & 1) != 0)
25 }
26}
27#[cfg(feature = "impl-register-debug")]
28impl core::fmt::Debug for R {
29 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
30 f.debug_struct("LPCORE")
31 .field("etm_wakeup_flag", &self.etm_wakeup_flag())
32 .field("disable", &self.disable())
33 .finish()
34 }
35}
36impl W {
37 #[doc = "Bit 0 - need_des"]
38 #[inline(always)]
39 #[must_use]
40 pub fn etm_wakeup_flag_clr(&mut self) -> ETM_WAKEUP_FLAG_CLR_W<LPCORE_SPEC> {
41 ETM_WAKEUP_FLAG_CLR_W::new(self, 0)
42 }
43 #[doc = "Bit 1 - need_des"]
44 #[inline(always)]
45 #[must_use]
46 pub fn etm_wakeup_flag(&mut self) -> ETM_WAKEUP_FLAG_W<LPCORE_SPEC> {
47 ETM_WAKEUP_FLAG_W::new(self, 1)
48 }
49 #[doc = "Bit 31 - need_des"]
50 #[inline(always)]
51 #[must_use]
52 pub fn disable(&mut self) -> DISABLE_W<LPCORE_SPEC> {
53 DISABLE_W::new(self, 31)
54 }
55}
56#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lpcore::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lpcore::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
57pub struct LPCORE_SPEC;
58impl crate::RegisterSpec for LPCORE_SPEC {
59 type Ux = u32;
60}
61#[doc = "`read()` method returns [`lpcore::R`](R) reader structure"]
62impl crate::Readable for LPCORE_SPEC {}
63#[doc = "`write(|w| ..)` method takes [`lpcore::W`](W) writer structure"]
64impl crate::Writable for LPCORE_SPEC {
65 type Safety = crate::Unsafe;
66 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
67 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
68}
69#[doc = "`reset()` method sets LPCORE to value 0"]
70impl crate::Resettable for LPCORE_SPEC {
71 const RESET_VALUE: u32 = 0;
72}