esp32c6_lp/pmu/
imm_hp_ck_power.rs1#[doc = "Register `IMM_HP_CK_POWER` reader"]
2pub type R = crate::R<IMM_HP_CK_POWER_SPEC>;
3#[doc = "Register `IMM_HP_CK_POWER` writer"]
4pub type W = crate::W<IMM_HP_CK_POWER_SPEC>;
5#[doc = "Field `TIE_LOW_GLOBAL_BBPLL_ICG` writer - need_des"]
6pub type TIE_LOW_GLOBAL_BBPLL_ICG_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `TIE_LOW_GLOBAL_XTAL_ICG` writer - need_des"]
8pub type TIE_LOW_GLOBAL_XTAL_ICG_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TIE_LOW_I2C_RETENTION` writer - need_des"]
10pub type TIE_LOW_I2C_RETENTION_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `TIE_LOW_XPD_BB_I2C` writer - need_des"]
12pub type TIE_LOW_XPD_BB_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TIE_LOW_XPD_BBPLL_I2C` writer - need_des"]
14pub type TIE_LOW_XPD_BBPLL_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `TIE_LOW_XPD_BBPLL` writer - need_des"]
16pub type TIE_LOW_XPD_BBPLL_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `TIE_LOW_XPD_XTAL` writer - need_des"]
18pub type TIE_LOW_XPD_XTAL_W<'a, REG> = crate::BitWriter<'a, REG>;
19#[doc = "Field `TIE_HIGH_GLOBAL_BBPLL_ICG` writer - need_des"]
20pub type TIE_HIGH_GLOBAL_BBPLL_ICG_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `TIE_HIGH_GLOBAL_XTAL_ICG` writer - need_des"]
22pub type TIE_HIGH_GLOBAL_XTAL_ICG_W<'a, REG> = crate::BitWriter<'a, REG>;
23#[doc = "Field `TIE_HIGH_I2C_RETENTION` writer - need_des"]
24pub type TIE_HIGH_I2C_RETENTION_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TIE_HIGH_XPD_BB_I2C` writer - need_des"]
26pub type TIE_HIGH_XPD_BB_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
27#[doc = "Field `TIE_HIGH_XPD_BBPLL_I2C` writer - need_des"]
28pub type TIE_HIGH_XPD_BBPLL_I2C_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `TIE_HIGH_XPD_BBPLL` writer - need_des"]
30pub type TIE_HIGH_XPD_BBPLL_W<'a, REG> = crate::BitWriter<'a, REG>;
31#[doc = "Field `TIE_HIGH_XPD_XTAL` writer - need_des"]
32pub type TIE_HIGH_XPD_XTAL_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[cfg(feature = "impl-register-debug")]
34impl core::fmt::Debug for R {
35 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36 f.debug_struct("IMM_HP_CK_POWER").finish()
37 }
38}
39impl W {
40 #[doc = "Bit 0 - need_des"]
41 #[inline(always)]
42 #[must_use]
43 pub fn tie_low_global_bbpll_icg(&mut self) -> TIE_LOW_GLOBAL_BBPLL_ICG_W<IMM_HP_CK_POWER_SPEC> {
44 TIE_LOW_GLOBAL_BBPLL_ICG_W::new(self, 0)
45 }
46 #[doc = "Bit 1 - need_des"]
47 #[inline(always)]
48 #[must_use]
49 pub fn tie_low_global_xtal_icg(&mut self) -> TIE_LOW_GLOBAL_XTAL_ICG_W<IMM_HP_CK_POWER_SPEC> {
50 TIE_LOW_GLOBAL_XTAL_ICG_W::new(self, 1)
51 }
52 #[doc = "Bit 2 - need_des"]
53 #[inline(always)]
54 #[must_use]
55 pub fn tie_low_i2c_retention(&mut self) -> TIE_LOW_I2C_RETENTION_W<IMM_HP_CK_POWER_SPEC> {
56 TIE_LOW_I2C_RETENTION_W::new(self, 2)
57 }
58 #[doc = "Bit 3 - need_des"]
59 #[inline(always)]
60 #[must_use]
61 pub fn tie_low_xpd_bb_i2c(&mut self) -> TIE_LOW_XPD_BB_I2C_W<IMM_HP_CK_POWER_SPEC> {
62 TIE_LOW_XPD_BB_I2C_W::new(self, 3)
63 }
64 #[doc = "Bit 4 - need_des"]
65 #[inline(always)]
66 #[must_use]
67 pub fn tie_low_xpd_bbpll_i2c(&mut self) -> TIE_LOW_XPD_BBPLL_I2C_W<IMM_HP_CK_POWER_SPEC> {
68 TIE_LOW_XPD_BBPLL_I2C_W::new(self, 4)
69 }
70 #[doc = "Bit 5 - need_des"]
71 #[inline(always)]
72 #[must_use]
73 pub fn tie_low_xpd_bbpll(&mut self) -> TIE_LOW_XPD_BBPLL_W<IMM_HP_CK_POWER_SPEC> {
74 TIE_LOW_XPD_BBPLL_W::new(self, 5)
75 }
76 #[doc = "Bit 6 - need_des"]
77 #[inline(always)]
78 #[must_use]
79 pub fn tie_low_xpd_xtal(&mut self) -> TIE_LOW_XPD_XTAL_W<IMM_HP_CK_POWER_SPEC> {
80 TIE_LOW_XPD_XTAL_W::new(self, 6)
81 }
82 #[doc = "Bit 25 - need_des"]
83 #[inline(always)]
84 #[must_use]
85 pub fn tie_high_global_bbpll_icg(
86 &mut self,
87 ) -> TIE_HIGH_GLOBAL_BBPLL_ICG_W<IMM_HP_CK_POWER_SPEC> {
88 TIE_HIGH_GLOBAL_BBPLL_ICG_W::new(self, 25)
89 }
90 #[doc = "Bit 26 - need_des"]
91 #[inline(always)]
92 #[must_use]
93 pub fn tie_high_global_xtal_icg(&mut self) -> TIE_HIGH_GLOBAL_XTAL_ICG_W<IMM_HP_CK_POWER_SPEC> {
94 TIE_HIGH_GLOBAL_XTAL_ICG_W::new(self, 26)
95 }
96 #[doc = "Bit 27 - need_des"]
97 #[inline(always)]
98 #[must_use]
99 pub fn tie_high_i2c_retention(&mut self) -> TIE_HIGH_I2C_RETENTION_W<IMM_HP_CK_POWER_SPEC> {
100 TIE_HIGH_I2C_RETENTION_W::new(self, 27)
101 }
102 #[doc = "Bit 28 - need_des"]
103 #[inline(always)]
104 #[must_use]
105 pub fn tie_high_xpd_bb_i2c(&mut self) -> TIE_HIGH_XPD_BB_I2C_W<IMM_HP_CK_POWER_SPEC> {
106 TIE_HIGH_XPD_BB_I2C_W::new(self, 28)
107 }
108 #[doc = "Bit 29 - need_des"]
109 #[inline(always)]
110 #[must_use]
111 pub fn tie_high_xpd_bbpll_i2c(&mut self) -> TIE_HIGH_XPD_BBPLL_I2C_W<IMM_HP_CK_POWER_SPEC> {
112 TIE_HIGH_XPD_BBPLL_I2C_W::new(self, 29)
113 }
114 #[doc = "Bit 30 - need_des"]
115 #[inline(always)]
116 #[must_use]
117 pub fn tie_high_xpd_bbpll(&mut self) -> TIE_HIGH_XPD_BBPLL_W<IMM_HP_CK_POWER_SPEC> {
118 TIE_HIGH_XPD_BBPLL_W::new(self, 30)
119 }
120 #[doc = "Bit 31 - need_des"]
121 #[inline(always)]
122 #[must_use]
123 pub fn tie_high_xpd_xtal(&mut self) -> TIE_HIGH_XPD_XTAL_W<IMM_HP_CK_POWER_SPEC> {
124 TIE_HIGH_XPD_XTAL_W::new(self, 31)
125 }
126}
127#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`imm_hp_ck_power::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`imm_hp_ck_power::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
128pub struct IMM_HP_CK_POWER_SPEC;
129impl crate::RegisterSpec for IMM_HP_CK_POWER_SPEC {
130 type Ux = u32;
131}
132#[doc = "`read()` method returns [`imm_hp_ck_power::R`](R) reader structure"]
133impl crate::Readable for IMM_HP_CK_POWER_SPEC {}
134#[doc = "`write(|w| ..)` method takes [`imm_hp_ck_power::W`](W) writer structure"]
135impl crate::Writable for IMM_HP_CK_POWER_SPEC {
136 type Safety = crate::Unsafe;
137 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
138 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
139}
140#[doc = "`reset()` method sets IMM_HP_CK_POWER to value 0"]
141impl crate::Resettable for IMM_HP_CK_POWER_SPEC {
142 const RESET_VALUE: u32 = 0;
143}