esp32c6/lp_aon/
lpcore.rs

1#[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    pub fn etm_wakeup_flag_clr(&mut self) -> ETM_WAKEUP_FLAG_CLR_W<LPCORE_SPEC> {
40        ETM_WAKEUP_FLAG_CLR_W::new(self, 0)
41    }
42    #[doc = "Bit 1 - need_des"]
43    #[inline(always)]
44    pub fn etm_wakeup_flag(&mut self) -> ETM_WAKEUP_FLAG_W<LPCORE_SPEC> {
45        ETM_WAKEUP_FLAG_W::new(self, 1)
46    }
47    #[doc = "Bit 31 - need_des"]
48    #[inline(always)]
49    pub fn disable(&mut self) -> DISABLE_W<LPCORE_SPEC> {
50        DISABLE_W::new(self, 31)
51    }
52}
53#[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)."]
54pub struct LPCORE_SPEC;
55impl crate::RegisterSpec for LPCORE_SPEC {
56    type Ux = u32;
57}
58#[doc = "`read()` method returns [`lpcore::R`](R) reader structure"]
59impl crate::Readable for LPCORE_SPEC {}
60#[doc = "`write(|w| ..)` method takes [`lpcore::W`](W) writer structure"]
61impl crate::Writable for LPCORE_SPEC {
62    type Safety = crate::Unsafe;
63}
64#[doc = "`reset()` method sets LPCORE to value 0"]
65impl crate::Resettable for LPCORE_SPEC {}