esp32s3/rtc_cntl/
regulator_drv_ctrl.rs1#[doc = "Register `REGULATOR_DRV_CTRL` reader"]
2pub type R = crate::R<REGULATOR_DRV_CTRL_SPEC>;
3#[doc = "Register `REGULATOR_DRV_CTRL` writer"]
4pub type W = crate::W<REGULATOR_DRV_CTRL_SPEC>;
5#[doc = "Field `REGULATOR_DRV_B_MONITOR` reader - No public"]
6pub type REGULATOR_DRV_B_MONITOR_R = crate::FieldReader;
7#[doc = "Field `REGULATOR_DRV_B_MONITOR` writer - No public"]
8pub type REGULATOR_DRV_B_MONITOR_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
9#[doc = "Field `REGULATOR_DRV_B_SLP` reader - No public"]
10pub type REGULATOR_DRV_B_SLP_R = crate::FieldReader;
11#[doc = "Field `REGULATOR_DRV_B_SLP` writer - No public"]
12pub type REGULATOR_DRV_B_SLP_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
13#[doc = "Field `DG_VDD_DRV_B_SLP` reader - No public"]
14pub type DG_VDD_DRV_B_SLP_R = crate::FieldReader;
15#[doc = "Field `DG_VDD_DRV_B_SLP` writer - No public"]
16pub type DG_VDD_DRV_B_SLP_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17#[doc = "Field `DG_VDD_DRV_B_MONITOR` reader - No public"]
18pub type DG_VDD_DRV_B_MONITOR_R = crate::FieldReader;
19#[doc = "Field `DG_VDD_DRV_B_MONITOR` writer - No public"]
20pub type DG_VDD_DRV_B_MONITOR_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
21impl R {
22 #[doc = "Bits 0:5 - No public"]
23 #[inline(always)]
24 pub fn regulator_drv_b_monitor(&self) -> REGULATOR_DRV_B_MONITOR_R {
25 REGULATOR_DRV_B_MONITOR_R::new((self.bits & 0x3f) as u8)
26 }
27 #[doc = "Bits 6:11 - No public"]
28 #[inline(always)]
29 pub fn regulator_drv_b_slp(&self) -> REGULATOR_DRV_B_SLP_R {
30 REGULATOR_DRV_B_SLP_R::new(((self.bits >> 6) & 0x3f) as u8)
31 }
32 #[doc = "Bits 12:19 - No public"]
33 #[inline(always)]
34 pub fn dg_vdd_drv_b_slp(&self) -> DG_VDD_DRV_B_SLP_R {
35 DG_VDD_DRV_B_SLP_R::new(((self.bits >> 12) & 0xff) as u8)
36 }
37 #[doc = "Bits 20:27 - No public"]
38 #[inline(always)]
39 pub fn dg_vdd_drv_b_monitor(&self) -> DG_VDD_DRV_B_MONITOR_R {
40 DG_VDD_DRV_B_MONITOR_R::new(((self.bits >> 20) & 0xff) as u8)
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("REGULATOR_DRV_CTRL")
47 .field("regulator_drv_b_monitor", &self.regulator_drv_b_monitor())
48 .field("regulator_drv_b_slp", &self.regulator_drv_b_slp())
49 .field("dg_vdd_drv_b_slp", &self.dg_vdd_drv_b_slp())
50 .field("dg_vdd_drv_b_monitor", &self.dg_vdd_drv_b_monitor())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bits 0:5 - No public"]
56 #[inline(always)]
57 pub fn regulator_drv_b_monitor(
58 &mut self,
59 ) -> REGULATOR_DRV_B_MONITOR_W<REGULATOR_DRV_CTRL_SPEC> {
60 REGULATOR_DRV_B_MONITOR_W::new(self, 0)
61 }
62 #[doc = "Bits 6:11 - No public"]
63 #[inline(always)]
64 pub fn regulator_drv_b_slp(&mut self) -> REGULATOR_DRV_B_SLP_W<REGULATOR_DRV_CTRL_SPEC> {
65 REGULATOR_DRV_B_SLP_W::new(self, 6)
66 }
67 #[doc = "Bits 12:19 - No public"]
68 #[inline(always)]
69 pub fn dg_vdd_drv_b_slp(&mut self) -> DG_VDD_DRV_B_SLP_W<REGULATOR_DRV_CTRL_SPEC> {
70 DG_VDD_DRV_B_SLP_W::new(self, 12)
71 }
72 #[doc = "Bits 20:27 - No public"]
73 #[inline(always)]
74 pub fn dg_vdd_drv_b_monitor(&mut self) -> DG_VDD_DRV_B_MONITOR_W<REGULATOR_DRV_CTRL_SPEC> {
75 DG_VDD_DRV_B_MONITOR_W::new(self, 20)
76 }
77}
78#[doc = "No public\n\nYou can [`read`](crate::Reg::read) this register and get [`regulator_drv_ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`regulator_drv_ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
79pub struct REGULATOR_DRV_CTRL_SPEC;
80impl crate::RegisterSpec for REGULATOR_DRV_CTRL_SPEC {
81 type Ux = u32;
82}
83#[doc = "`read()` method returns [`regulator_drv_ctrl::R`](R) reader structure"]
84impl crate::Readable for REGULATOR_DRV_CTRL_SPEC {}
85#[doc = "`write(|w| ..)` method takes [`regulator_drv_ctrl::W`](W) writer structure"]
86impl crate::Writable for REGULATOR_DRV_CTRL_SPEC {
87 type Safety = crate::Unsafe;
88}
89#[doc = "`reset()` method sets REGULATOR_DRV_CTRL to value 0"]
90impl crate::Resettable for REGULATOR_DRV_CTRL_SPEC {}