bl61x_pac/glb/
wifi_pll_config_8.rs1#[doc = "Register `wifi_pll_config_8` reader"]
2pub type R = crate::R<WIFI_PLL_CONFIG_8_SPEC>;
3#[doc = "Register `wifi_pll_config_8` writer"]
4pub type W = crate::W<WIFI_PLL_CONFIG_8_SPEC>;
5#[doc = "Field `wifipll_en_rf_div3` reader - "]
6pub type WIFIPLL_EN_RF_DIV3_R = crate::BitReader;
7#[doc = "Field `wifipll_en_rf_div3` writer - "]
8pub type WIFIPLL_EN_RF_DIV3_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `wifipll_en_rf_div6` reader - "]
10pub type WIFIPLL_EN_RF_DIV6_R = crate::BitReader;
11#[doc = "Field `wifipll_en_rf_div6` writer - "]
12pub type WIFIPLL_EN_RF_DIV6_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `wifipll_sel_div3_div6` reader - "]
14pub type WIFIPLL_SEL_DIV3_DIV6_R = crate::BitReader;
15#[doc = "Field `wifipll_sel_div3_div6` writer - "]
16pub type WIFIPLL_SEL_DIV3_DIV6_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `wifipll_sel_div6_div12` reader - "]
18pub type WIFIPLL_SEL_DIV6_DIV12_R = crate::BitReader;
19#[doc = "Field `wifipll_sel_div6_div12` writer - "]
20pub type WIFIPLL_SEL_DIV6_DIV12_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `wifipll_en_div3` reader - "]
22pub type WIFIPLL_EN_DIV3_R = crate::BitReader;
23#[doc = "Field `wifipll_en_div3` writer - "]
24pub type WIFIPLL_EN_DIV3_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `wifipll_en_div4` reader - "]
26pub type WIFIPLL_EN_DIV4_R = crate::BitReader;
27#[doc = "Field `wifipll_en_div4` writer - "]
28pub type WIFIPLL_EN_DIV4_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `wifipll_en_div5` reader - "]
30pub type WIFIPLL_EN_DIV5_R = crate::BitReader;
31#[doc = "Field `wifipll_en_div5` writer - "]
32pub type WIFIPLL_EN_DIV5_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `wifipll_en_div6` reader - "]
34pub type WIFIPLL_EN_DIV6_R = crate::BitReader;
35#[doc = "Field `wifipll_en_div6` writer - "]
36pub type WIFIPLL_EN_DIV6_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `wifipll_en_div8` reader - "]
38pub type WIFIPLL_EN_DIV8_R = crate::BitReader;
39#[doc = "Field `wifipll_en_div8` writer - "]
40pub type WIFIPLL_EN_DIV8_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `wifipll_en_div10` reader - "]
42pub type WIFIPLL_EN_DIV10_R = crate::BitReader;
43#[doc = "Field `wifipll_en_div10` writer - "]
44pub type WIFIPLL_EN_DIV10_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `wifipll_en_div12` reader - "]
46pub type WIFIPLL_EN_DIV12_R = crate::BitReader;
47#[doc = "Field `wifipll_en_div12` writer - "]
48pub type WIFIPLL_EN_DIV12_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `wifipll_en_div20` reader - "]
50pub type WIFIPLL_EN_DIV20_R = crate::BitReader;
51#[doc = "Field `wifipll_en_div20` writer - "]
52pub type WIFIPLL_EN_DIV20_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `wifipll_en_div30` reader - "]
54pub type WIFIPLL_EN_DIV30_R = crate::BitReader;
55#[doc = "Field `wifipll_en_div30` writer - "]
56pub type WIFIPLL_EN_DIV30_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `wifipll_en_rf_div3_hw` reader - "]
58pub type WIFIPLL_EN_RF_DIV3_HW_R = crate::BitReader;
59#[doc = "Field `wifipll_en_rf_div3_hw` writer - "]
60pub type WIFIPLL_EN_RF_DIV3_HW_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `wifipll_en_ctrl_hw` reader - "]
62pub type WIFIPLL_EN_CTRL_HW_R = crate::BitReader;
63#[doc = "Field `wifipll_en_ctrl_hw` writer - "]
64pub type WIFIPLL_EN_CTRL_HW_W<'a, REG> = crate::BitWriter<'a, REG>;
65impl R {
66 #[doc = "Bit 0"]
67 #[inline(always)]
68 pub fn wifipll_en_rf_div3(&self) -> WIFIPLL_EN_RF_DIV3_R {
69 WIFIPLL_EN_RF_DIV3_R::new((self.bits & 1) != 0)
70 }
71 #[doc = "Bit 1"]
72 #[inline(always)]
73 pub fn wifipll_en_rf_div6(&self) -> WIFIPLL_EN_RF_DIV6_R {
74 WIFIPLL_EN_RF_DIV6_R::new(((self.bits >> 1) & 1) != 0)
75 }
76 #[doc = "Bit 2"]
77 #[inline(always)]
78 pub fn wifipll_sel_div3_div6(&self) -> WIFIPLL_SEL_DIV3_DIV6_R {
79 WIFIPLL_SEL_DIV3_DIV6_R::new(((self.bits >> 2) & 1) != 0)
80 }
81 #[doc = "Bit 3"]
82 #[inline(always)]
83 pub fn wifipll_sel_div6_div12(&self) -> WIFIPLL_SEL_DIV6_DIV12_R {
84 WIFIPLL_SEL_DIV6_DIV12_R::new(((self.bits >> 3) & 1) != 0)
85 }
86 #[doc = "Bit 4"]
87 #[inline(always)]
88 pub fn wifipll_en_div3(&self) -> WIFIPLL_EN_DIV3_R {
89 WIFIPLL_EN_DIV3_R::new(((self.bits >> 4) & 1) != 0)
90 }
91 #[doc = "Bit 5"]
92 #[inline(always)]
93 pub fn wifipll_en_div4(&self) -> WIFIPLL_EN_DIV4_R {
94 WIFIPLL_EN_DIV4_R::new(((self.bits >> 5) & 1) != 0)
95 }
96 #[doc = "Bit 6"]
97 #[inline(always)]
98 pub fn wifipll_en_div5(&self) -> WIFIPLL_EN_DIV5_R {
99 WIFIPLL_EN_DIV5_R::new(((self.bits >> 6) & 1) != 0)
100 }
101 #[doc = "Bit 7"]
102 #[inline(always)]
103 pub fn wifipll_en_div6(&self) -> WIFIPLL_EN_DIV6_R {
104 WIFIPLL_EN_DIV6_R::new(((self.bits >> 7) & 1) != 0)
105 }
106 #[doc = "Bit 8"]
107 #[inline(always)]
108 pub fn wifipll_en_div8(&self) -> WIFIPLL_EN_DIV8_R {
109 WIFIPLL_EN_DIV8_R::new(((self.bits >> 8) & 1) != 0)
110 }
111 #[doc = "Bit 9"]
112 #[inline(always)]
113 pub fn wifipll_en_div10(&self) -> WIFIPLL_EN_DIV10_R {
114 WIFIPLL_EN_DIV10_R::new(((self.bits >> 9) & 1) != 0)
115 }
116 #[doc = "Bit 10"]
117 #[inline(always)]
118 pub fn wifipll_en_div12(&self) -> WIFIPLL_EN_DIV12_R {
119 WIFIPLL_EN_DIV12_R::new(((self.bits >> 10) & 1) != 0)
120 }
121 #[doc = "Bit 11"]
122 #[inline(always)]
123 pub fn wifipll_en_div20(&self) -> WIFIPLL_EN_DIV20_R {
124 WIFIPLL_EN_DIV20_R::new(((self.bits >> 11) & 1) != 0)
125 }
126 #[doc = "Bit 12"]
127 #[inline(always)]
128 pub fn wifipll_en_div30(&self) -> WIFIPLL_EN_DIV30_R {
129 WIFIPLL_EN_DIV30_R::new(((self.bits >> 12) & 1) != 0)
130 }
131 #[doc = "Bit 20"]
132 #[inline(always)]
133 pub fn wifipll_en_rf_div3_hw(&self) -> WIFIPLL_EN_RF_DIV3_HW_R {
134 WIFIPLL_EN_RF_DIV3_HW_R::new(((self.bits >> 20) & 1) != 0)
135 }
136 #[doc = "Bit 31"]
137 #[inline(always)]
138 pub fn wifipll_en_ctrl_hw(&self) -> WIFIPLL_EN_CTRL_HW_R {
139 WIFIPLL_EN_CTRL_HW_R::new(((self.bits >> 31) & 1) != 0)
140 }
141}
142impl W {
143 #[doc = "Bit 0"]
144 #[inline(always)]
145 #[must_use]
146 pub fn wifipll_en_rf_div3(&mut self) -> WIFIPLL_EN_RF_DIV3_W<WIFI_PLL_CONFIG_8_SPEC> {
147 WIFIPLL_EN_RF_DIV3_W::new(self, 0)
148 }
149 #[doc = "Bit 1"]
150 #[inline(always)]
151 #[must_use]
152 pub fn wifipll_en_rf_div6(&mut self) -> WIFIPLL_EN_RF_DIV6_W<WIFI_PLL_CONFIG_8_SPEC> {
153 WIFIPLL_EN_RF_DIV6_W::new(self, 1)
154 }
155 #[doc = "Bit 2"]
156 #[inline(always)]
157 #[must_use]
158 pub fn wifipll_sel_div3_div6(&mut self) -> WIFIPLL_SEL_DIV3_DIV6_W<WIFI_PLL_CONFIG_8_SPEC> {
159 WIFIPLL_SEL_DIV3_DIV6_W::new(self, 2)
160 }
161 #[doc = "Bit 3"]
162 #[inline(always)]
163 #[must_use]
164 pub fn wifipll_sel_div6_div12(&mut self) -> WIFIPLL_SEL_DIV6_DIV12_W<WIFI_PLL_CONFIG_8_SPEC> {
165 WIFIPLL_SEL_DIV6_DIV12_W::new(self, 3)
166 }
167 #[doc = "Bit 4"]
168 #[inline(always)]
169 #[must_use]
170 pub fn wifipll_en_div3(&mut self) -> WIFIPLL_EN_DIV3_W<WIFI_PLL_CONFIG_8_SPEC> {
171 WIFIPLL_EN_DIV3_W::new(self, 4)
172 }
173 #[doc = "Bit 5"]
174 #[inline(always)]
175 #[must_use]
176 pub fn wifipll_en_div4(&mut self) -> WIFIPLL_EN_DIV4_W<WIFI_PLL_CONFIG_8_SPEC> {
177 WIFIPLL_EN_DIV4_W::new(self, 5)
178 }
179 #[doc = "Bit 6"]
180 #[inline(always)]
181 #[must_use]
182 pub fn wifipll_en_div5(&mut self) -> WIFIPLL_EN_DIV5_W<WIFI_PLL_CONFIG_8_SPEC> {
183 WIFIPLL_EN_DIV5_W::new(self, 6)
184 }
185 #[doc = "Bit 7"]
186 #[inline(always)]
187 #[must_use]
188 pub fn wifipll_en_div6(&mut self) -> WIFIPLL_EN_DIV6_W<WIFI_PLL_CONFIG_8_SPEC> {
189 WIFIPLL_EN_DIV6_W::new(self, 7)
190 }
191 #[doc = "Bit 8"]
192 #[inline(always)]
193 #[must_use]
194 pub fn wifipll_en_div8(&mut self) -> WIFIPLL_EN_DIV8_W<WIFI_PLL_CONFIG_8_SPEC> {
195 WIFIPLL_EN_DIV8_W::new(self, 8)
196 }
197 #[doc = "Bit 9"]
198 #[inline(always)]
199 #[must_use]
200 pub fn wifipll_en_div10(&mut self) -> WIFIPLL_EN_DIV10_W<WIFI_PLL_CONFIG_8_SPEC> {
201 WIFIPLL_EN_DIV10_W::new(self, 9)
202 }
203 #[doc = "Bit 10"]
204 #[inline(always)]
205 #[must_use]
206 pub fn wifipll_en_div12(&mut self) -> WIFIPLL_EN_DIV12_W<WIFI_PLL_CONFIG_8_SPEC> {
207 WIFIPLL_EN_DIV12_W::new(self, 10)
208 }
209 #[doc = "Bit 11"]
210 #[inline(always)]
211 #[must_use]
212 pub fn wifipll_en_div20(&mut self) -> WIFIPLL_EN_DIV20_W<WIFI_PLL_CONFIG_8_SPEC> {
213 WIFIPLL_EN_DIV20_W::new(self, 11)
214 }
215 #[doc = "Bit 12"]
216 #[inline(always)]
217 #[must_use]
218 pub fn wifipll_en_div30(&mut self) -> WIFIPLL_EN_DIV30_W<WIFI_PLL_CONFIG_8_SPEC> {
219 WIFIPLL_EN_DIV30_W::new(self, 12)
220 }
221 #[doc = "Bit 20"]
222 #[inline(always)]
223 #[must_use]
224 pub fn wifipll_en_rf_div3_hw(&mut self) -> WIFIPLL_EN_RF_DIV3_HW_W<WIFI_PLL_CONFIG_8_SPEC> {
225 WIFIPLL_EN_RF_DIV3_HW_W::new(self, 20)
226 }
227 #[doc = "Bit 31"]
228 #[inline(always)]
229 #[must_use]
230 pub fn wifipll_en_ctrl_hw(&mut self) -> WIFIPLL_EN_CTRL_HW_W<WIFI_PLL_CONFIG_8_SPEC> {
231 WIFIPLL_EN_CTRL_HW_W::new(self, 31)
232 }
233 #[doc = r" Writes raw bits to the register."]
234 #[doc = r""]
235 #[doc = r" # Safety"]
236 #[doc = r""]
237 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
238 #[inline(always)]
239 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
240 self.bits = bits;
241 self
242 }
243}
244#[doc = "Wireless Fidelity Phase-Locked Loop configuration 8\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wifi_pll_config_8::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wifi_pll_config_8::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
245pub struct WIFI_PLL_CONFIG_8_SPEC;
246impl crate::RegisterSpec for WIFI_PLL_CONFIG_8_SPEC {
247 type Ux = u32;
248}
249#[doc = "`read()` method returns [`wifi_pll_config_8::R`](R) reader structure"]
250impl crate::Readable for WIFI_PLL_CONFIG_8_SPEC {}
251#[doc = "`write(|w| ..)` method takes [`wifi_pll_config_8::W`](W) writer structure"]
252impl crate::Writable for WIFI_PLL_CONFIG_8_SPEC {
253 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
254 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
255}
256#[doc = "`reset()` method sets wifi_pll_config_8 to value 0"]
257impl crate::Resettable for WIFI_PLL_CONFIG_8_SPEC {
258 const RESET_VALUE: Self::Ux = 0;
259}