esp32c6_lp/pmu/
lp_sleep_lp_regulator1.rs1#[doc = "Register `LP_SLEEP_LP_REGULATOR1` reader"]
2pub type R = crate::R<LP_SLEEP_LP_REGULATOR1_SPEC>;
3#[doc = "Register `LP_SLEEP_LP_REGULATOR1` writer"]
4pub type W = crate::W<LP_SLEEP_LP_REGULATOR1_SPEC>;
5#[doc = "Field `LP_SLEEP_LP_REGULATOR_DRV_B` reader - need_des"]
6pub type LP_SLEEP_LP_REGULATOR_DRV_B_R = crate::FieldReader;
7#[doc = "Field `LP_SLEEP_LP_REGULATOR_DRV_B` writer - need_des"]
8pub type LP_SLEEP_LP_REGULATOR_DRV_B_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
9impl R {
10 #[doc = "Bits 28:31 - need_des"]
11 #[inline(always)]
12 pub fn lp_sleep_lp_regulator_drv_b(&self) -> LP_SLEEP_LP_REGULATOR_DRV_B_R {
13 LP_SLEEP_LP_REGULATOR_DRV_B_R::new(((self.bits >> 28) & 0x0f) as u8)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("LP_SLEEP_LP_REGULATOR1")
20 .field(
21 "lp_sleep_lp_regulator_drv_b",
22 &self.lp_sleep_lp_regulator_drv_b(),
23 )
24 .finish()
25 }
26}
27impl W {
28 #[doc = "Bits 28:31 - need_des"]
29 #[inline(always)]
30 #[must_use]
31 pub fn lp_sleep_lp_regulator_drv_b(
32 &mut self,
33 ) -> LP_SLEEP_LP_REGULATOR_DRV_B_W<LP_SLEEP_LP_REGULATOR1_SPEC> {
34 LP_SLEEP_LP_REGULATOR_DRV_B_W::new(self, 28)
35 }
36}
37#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lp_sleep_lp_regulator1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lp_sleep_lp_regulator1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct LP_SLEEP_LP_REGULATOR1_SPEC;
39impl crate::RegisterSpec for LP_SLEEP_LP_REGULATOR1_SPEC {
40 type Ux = u32;
41}
42#[doc = "`read()` method returns [`lp_sleep_lp_regulator1::R`](R) reader structure"]
43impl crate::Readable for LP_SLEEP_LP_REGULATOR1_SPEC {}
44#[doc = "`write(|w| ..)` method takes [`lp_sleep_lp_regulator1::W`](W) writer structure"]
45impl crate::Writable for LP_SLEEP_LP_REGULATOR1_SPEC {
46 type Safety = crate::Unsafe;
47 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
48 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
49}
50#[doc = "`reset()` method sets LP_SLEEP_LP_REGULATOR1 to value 0"]
51impl crate::Resettable for LP_SLEEP_LP_REGULATOR1_SPEC {
52 const RESET_VALUE: u32 = 0;
53}