esp32c6/pmu/
rf_pwc.rs

1#[doc = "Register `RF_PWC` reader"]
2pub type R = crate::R<RF_PWC_SPEC>;
3#[doc = "Register `RF_PWC` writer"]
4pub type W = crate::W<RF_PWC_SPEC>;
5#[doc = "Field `PERIF_I2C_RSTB` reader - need_des"]
6pub type PERIF_I2C_RSTB_R = crate::BitReader;
7#[doc = "Field `PERIF_I2C_RSTB` writer - need_des"]
8pub type PERIF_I2C_RSTB_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `XPD_PERIF_I2C` reader - need_des"]
10pub type XPD_PERIF_I2C_R = crate::BitReader;
11#[doc = "Field `XPD_PERIF_I2C` writer - need_des"]
12pub type XPD_PERIF_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `XPD_TXRF_I2C` reader - need_des"]
14pub type XPD_TXRF_I2C_R = crate::BitReader;
15#[doc = "Field `XPD_TXRF_I2C` writer - need_des"]
16pub type XPD_TXRF_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `XPD_RFRX_PBUS` reader - need_des"]
18pub type XPD_RFRX_PBUS_R = crate::BitReader;
19#[doc = "Field `XPD_RFRX_PBUS` writer - need_des"]
20pub type XPD_RFRX_PBUS_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `XPD_CKGEN_I2C` reader - need_des"]
22pub type XPD_CKGEN_I2C_R = crate::BitReader;
23#[doc = "Field `XPD_CKGEN_I2C` writer - need_des"]
24pub type XPD_CKGEN_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `XPD_PLL_I2C` reader - need_des"]
26pub type XPD_PLL_I2C_R = crate::BitReader;
27#[doc = "Field `XPD_PLL_I2C` writer - need_des"]
28pub type XPD_PLL_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
29impl R {
30    #[doc = "Bit 26 - need_des"]
31    #[inline(always)]
32    pub fn perif_i2c_rstb(&self) -> PERIF_I2C_RSTB_R {
33        PERIF_I2C_RSTB_R::new(((self.bits >> 26) & 1) != 0)
34    }
35    #[doc = "Bit 27 - need_des"]
36    #[inline(always)]
37    pub fn xpd_perif_i2c(&self) -> XPD_PERIF_I2C_R {
38        XPD_PERIF_I2C_R::new(((self.bits >> 27) & 1) != 0)
39    }
40    #[doc = "Bit 28 - need_des"]
41    #[inline(always)]
42    pub fn xpd_txrf_i2c(&self) -> XPD_TXRF_I2C_R {
43        XPD_TXRF_I2C_R::new(((self.bits >> 28) & 1) != 0)
44    }
45    #[doc = "Bit 29 - need_des"]
46    #[inline(always)]
47    pub fn xpd_rfrx_pbus(&self) -> XPD_RFRX_PBUS_R {
48        XPD_RFRX_PBUS_R::new(((self.bits >> 29) & 1) != 0)
49    }
50    #[doc = "Bit 30 - need_des"]
51    #[inline(always)]
52    pub fn xpd_ckgen_i2c(&self) -> XPD_CKGEN_I2C_R {
53        XPD_CKGEN_I2C_R::new(((self.bits >> 30) & 1) != 0)
54    }
55    #[doc = "Bit 31 - need_des"]
56    #[inline(always)]
57    pub fn xpd_pll_i2c(&self) -> XPD_PLL_I2C_R {
58        XPD_PLL_I2C_R::new(((self.bits >> 31) & 1) != 0)
59    }
60}
61#[cfg(feature = "impl-register-debug")]
62impl core::fmt::Debug for R {
63    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
64        f.debug_struct("RF_PWC")
65            .field("perif_i2c_rstb", &self.perif_i2c_rstb())
66            .field("xpd_perif_i2c", &self.xpd_perif_i2c())
67            .field("xpd_txrf_i2c", &self.xpd_txrf_i2c())
68            .field("xpd_rfrx_pbus", &self.xpd_rfrx_pbus())
69            .field("xpd_ckgen_i2c", &self.xpd_ckgen_i2c())
70            .field("xpd_pll_i2c", &self.xpd_pll_i2c())
71            .finish()
72    }
73}
74impl W {
75    #[doc = "Bit 26 - need_des"]
76    #[inline(always)]
77    pub fn perif_i2c_rstb(&mut self) -> PERIF_I2C_RSTB_W<RF_PWC_SPEC> {
78        PERIF_I2C_RSTB_W::new(self, 26)
79    }
80    #[doc = "Bit 27 - need_des"]
81    #[inline(always)]
82    pub fn xpd_perif_i2c(&mut self) -> XPD_PERIF_I2C_W<RF_PWC_SPEC> {
83        XPD_PERIF_I2C_W::new(self, 27)
84    }
85    #[doc = "Bit 28 - need_des"]
86    #[inline(always)]
87    pub fn xpd_txrf_i2c(&mut self) -> XPD_TXRF_I2C_W<RF_PWC_SPEC> {
88        XPD_TXRF_I2C_W::new(self, 28)
89    }
90    #[doc = "Bit 29 - need_des"]
91    #[inline(always)]
92    pub fn xpd_rfrx_pbus(&mut self) -> XPD_RFRX_PBUS_W<RF_PWC_SPEC> {
93        XPD_RFRX_PBUS_W::new(self, 29)
94    }
95    #[doc = "Bit 30 - need_des"]
96    #[inline(always)]
97    pub fn xpd_ckgen_i2c(&mut self) -> XPD_CKGEN_I2C_W<RF_PWC_SPEC> {
98        XPD_CKGEN_I2C_W::new(self, 30)
99    }
100    #[doc = "Bit 31 - need_des"]
101    #[inline(always)]
102    pub fn xpd_pll_i2c(&mut self) -> XPD_PLL_I2C_W<RF_PWC_SPEC> {
103        XPD_PLL_I2C_W::new(self, 31)
104    }
105}
106#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`rf_pwc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rf_pwc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
107pub struct RF_PWC_SPEC;
108impl crate::RegisterSpec for RF_PWC_SPEC {
109    type Ux = u32;
110}
111#[doc = "`read()` method returns [`rf_pwc::R`](R) reader structure"]
112impl crate::Readable for RF_PWC_SPEC {}
113#[doc = "`write(|w| ..)` method takes [`rf_pwc::W`](W) writer structure"]
114impl crate::Writable for RF_PWC_SPEC {
115    type Safety = crate::Unsafe;
116    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
117    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
118}
119#[doc = "`reset()` method sets RF_PWC to value 0x0800_0000"]
120impl crate::Resettable for RF_PWC_SPEC {
121    const RESET_VALUE: u32 = 0x0800_0000;
122}