esp32c6/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 pub fn tie_low_global_bbpll_icg(&mut self) -> TIE_LOW_GLOBAL_BBPLL_ICG_W<IMM_HP_CK_POWER_SPEC> {
43 TIE_LOW_GLOBAL_BBPLL_ICG_W::new(self, 0)
44 }
45 #[doc = "Bit 1 - need_des"]
46 #[inline(always)]
47 pub fn tie_low_global_xtal_icg(&mut self) -> TIE_LOW_GLOBAL_XTAL_ICG_W<IMM_HP_CK_POWER_SPEC> {
48 TIE_LOW_GLOBAL_XTAL_ICG_W::new(self, 1)
49 }
50 #[doc = "Bit 2 - need_des"]
51 #[inline(always)]
52 pub fn tie_low_i2c_retention(&mut self) -> TIE_LOW_I2C_RETENTION_W<IMM_HP_CK_POWER_SPEC> {
53 TIE_LOW_I2C_RETENTION_W::new(self, 2)
54 }
55 #[doc = "Bit 3 - need_des"]
56 #[inline(always)]
57 pub fn tie_low_xpd_bb_i2c(&mut self) -> TIE_LOW_XPD_BB_I2C_W<IMM_HP_CK_POWER_SPEC> {
58 TIE_LOW_XPD_BB_I2C_W::new(self, 3)
59 }
60 #[doc = "Bit 4 - need_des"]
61 #[inline(always)]
62 pub fn tie_low_xpd_bbpll_i2c(&mut self) -> TIE_LOW_XPD_BBPLL_I2C_W<IMM_HP_CK_POWER_SPEC> {
63 TIE_LOW_XPD_BBPLL_I2C_W::new(self, 4)
64 }
65 #[doc = "Bit 5 - need_des"]
66 #[inline(always)]
67 pub fn tie_low_xpd_bbpll(&mut self) -> TIE_LOW_XPD_BBPLL_W<IMM_HP_CK_POWER_SPEC> {
68 TIE_LOW_XPD_BBPLL_W::new(self, 5)
69 }
70 #[doc = "Bit 6 - need_des"]
71 #[inline(always)]
72 pub fn tie_low_xpd_xtal(&mut self) -> TIE_LOW_XPD_XTAL_W<IMM_HP_CK_POWER_SPEC> {
73 TIE_LOW_XPD_XTAL_W::new(self, 6)
74 }
75 #[doc = "Bit 25 - need_des"]
76 #[inline(always)]
77 pub fn tie_high_global_bbpll_icg(
78 &mut self,
79 ) -> TIE_HIGH_GLOBAL_BBPLL_ICG_W<IMM_HP_CK_POWER_SPEC> {
80 TIE_HIGH_GLOBAL_BBPLL_ICG_W::new(self, 25)
81 }
82 #[doc = "Bit 26 - need_des"]
83 #[inline(always)]
84 pub fn tie_high_global_xtal_icg(&mut self) -> TIE_HIGH_GLOBAL_XTAL_ICG_W<IMM_HP_CK_POWER_SPEC> {
85 TIE_HIGH_GLOBAL_XTAL_ICG_W::new(self, 26)
86 }
87 #[doc = "Bit 27 - need_des"]
88 #[inline(always)]
89 pub fn tie_high_i2c_retention(&mut self) -> TIE_HIGH_I2C_RETENTION_W<IMM_HP_CK_POWER_SPEC> {
90 TIE_HIGH_I2C_RETENTION_W::new(self, 27)
91 }
92 #[doc = "Bit 28 - need_des"]
93 #[inline(always)]
94 pub fn tie_high_xpd_bb_i2c(&mut self) -> TIE_HIGH_XPD_BB_I2C_W<IMM_HP_CK_POWER_SPEC> {
95 TIE_HIGH_XPD_BB_I2C_W::new(self, 28)
96 }
97 #[doc = "Bit 29 - need_des"]
98 #[inline(always)]
99 pub fn tie_high_xpd_bbpll_i2c(&mut self) -> TIE_HIGH_XPD_BBPLL_I2C_W<IMM_HP_CK_POWER_SPEC> {
100 TIE_HIGH_XPD_BBPLL_I2C_W::new(self, 29)
101 }
102 #[doc = "Bit 30 - need_des"]
103 #[inline(always)]
104 pub fn tie_high_xpd_bbpll(&mut self) -> TIE_HIGH_XPD_BBPLL_W<IMM_HP_CK_POWER_SPEC> {
105 TIE_HIGH_XPD_BBPLL_W::new(self, 30)
106 }
107 #[doc = "Bit 31 - need_des"]
108 #[inline(always)]
109 pub fn tie_high_xpd_xtal(&mut self) -> TIE_HIGH_XPD_XTAL_W<IMM_HP_CK_POWER_SPEC> {
110 TIE_HIGH_XPD_XTAL_W::new(self, 31)
111 }
112}
113#[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)."]
114pub struct IMM_HP_CK_POWER_SPEC;
115impl crate::RegisterSpec for IMM_HP_CK_POWER_SPEC {
116 type Ux = u32;
117}
118#[doc = "`read()` method returns [`imm_hp_ck_power::R`](R) reader structure"]
119impl crate::Readable for IMM_HP_CK_POWER_SPEC {}
120#[doc = "`write(|w| ..)` method takes [`imm_hp_ck_power::W`](W) writer structure"]
121impl crate::Writable for IMM_HP_CK_POWER_SPEC {
122 type Safety = crate::Unsafe;
123 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
124 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
125}
126#[doc = "`reset()` method sets IMM_HP_CK_POWER to value 0"]
127impl crate::Resettable for IMM_HP_CK_POWER_SPEC {
128 const RESET_VALUE: u32 = 0;
129}