esp32c6_lp/lp_clkrst/
lp_rst_en.rs1#[doc = "Register `LP_RST_EN` reader"]
2pub type R = crate::R<LP_RST_EN_SPEC>;
3#[doc = "Register `LP_RST_EN` writer"]
4pub type W = crate::W<LP_RST_EN_SPEC>;
5#[doc = "Field `AON_EFUSE_CORE_RESET_EN` reader - need_des"]
6pub type AON_EFUSE_CORE_RESET_EN_R = crate::BitReader;
7#[doc = "Field `AON_EFUSE_CORE_RESET_EN` writer - need_des"]
8pub type AON_EFUSE_CORE_RESET_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `LP_TIMER_RESET_EN` reader - need_des"]
10pub type LP_TIMER_RESET_EN_R = crate::BitReader;
11#[doc = "Field `LP_TIMER_RESET_EN` writer - need_des"]
12pub type LP_TIMER_RESET_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `WDT_RESET_EN` reader - need_des"]
14pub type WDT_RESET_EN_R = crate::BitReader;
15#[doc = "Field `WDT_RESET_EN` writer - need_des"]
16pub type WDT_RESET_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `ANA_PERI_RESET_EN` reader - need_des"]
18pub type ANA_PERI_RESET_EN_R = crate::BitReader;
19#[doc = "Field `ANA_PERI_RESET_EN` writer - need_des"]
20pub type ANA_PERI_RESET_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22 #[doc = "Bit 28 - need_des"]
23 #[inline(always)]
24 pub fn aon_efuse_core_reset_en(&self) -> AON_EFUSE_CORE_RESET_EN_R {
25 AON_EFUSE_CORE_RESET_EN_R::new(((self.bits >> 28) & 1) != 0)
26 }
27 #[doc = "Bit 29 - need_des"]
28 #[inline(always)]
29 pub fn lp_timer_reset_en(&self) -> LP_TIMER_RESET_EN_R {
30 LP_TIMER_RESET_EN_R::new(((self.bits >> 29) & 1) != 0)
31 }
32 #[doc = "Bit 30 - need_des"]
33 #[inline(always)]
34 pub fn wdt_reset_en(&self) -> WDT_RESET_EN_R {
35 WDT_RESET_EN_R::new(((self.bits >> 30) & 1) != 0)
36 }
37 #[doc = "Bit 31 - need_des"]
38 #[inline(always)]
39 pub fn ana_peri_reset_en(&self) -> ANA_PERI_RESET_EN_R {
40 ANA_PERI_RESET_EN_R::new(((self.bits >> 31) & 1) != 0)
41 }
42}
43#[cfg(feature = "impl-register-debug")]
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("LP_RST_EN")
47 .field("aon_efuse_core_reset_en", &self.aon_efuse_core_reset_en())
48 .field("lp_timer_reset_en", &self.lp_timer_reset_en())
49 .field("wdt_reset_en", &self.wdt_reset_en())
50 .field("ana_peri_reset_en", &self.ana_peri_reset_en())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bit 28 - need_des"]
56 #[inline(always)]
57 #[must_use]
58 pub fn aon_efuse_core_reset_en(&mut self) -> AON_EFUSE_CORE_RESET_EN_W<LP_RST_EN_SPEC> {
59 AON_EFUSE_CORE_RESET_EN_W::new(self, 28)
60 }
61 #[doc = "Bit 29 - need_des"]
62 #[inline(always)]
63 #[must_use]
64 pub fn lp_timer_reset_en(&mut self) -> LP_TIMER_RESET_EN_W<LP_RST_EN_SPEC> {
65 LP_TIMER_RESET_EN_W::new(self, 29)
66 }
67 #[doc = "Bit 30 - need_des"]
68 #[inline(always)]
69 #[must_use]
70 pub fn wdt_reset_en(&mut self) -> WDT_RESET_EN_W<LP_RST_EN_SPEC> {
71 WDT_RESET_EN_W::new(self, 30)
72 }
73 #[doc = "Bit 31 - need_des"]
74 #[inline(always)]
75 #[must_use]
76 pub fn ana_peri_reset_en(&mut self) -> ANA_PERI_RESET_EN_W<LP_RST_EN_SPEC> {
77 ANA_PERI_RESET_EN_W::new(self, 31)
78 }
79}
80#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lp_rst_en::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lp_rst_en::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
81pub struct LP_RST_EN_SPEC;
82impl crate::RegisterSpec for LP_RST_EN_SPEC {
83 type Ux = u32;
84}
85#[doc = "`read()` method returns [`lp_rst_en::R`](R) reader structure"]
86impl crate::Readable for LP_RST_EN_SPEC {}
87#[doc = "`write(|w| ..)` method takes [`lp_rst_en::W`](W) writer structure"]
88impl crate::Writable for LP_RST_EN_SPEC {
89 type Safety = crate::Unsafe;
90 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
91 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
92}
93#[doc = "`reset()` method sets LP_RST_EN to value 0"]
94impl crate::Resettable for LP_RST_EN_SPEC {
95 const RESET_VALUE: u32 = 0;
96}