bl61x_pac/glb/
wifi_pll_config_14.rs1#[doc = "Register `wifi_pll_config_14` reader"]
2pub type R = crate::R<WIFI_PLL_CONFIG_14_SPEC>;
3#[doc = "Register `wifi_pll_config_14` writer"]
4pub type W = crate::W<WIFI_PLL_CONFIG_14_SPEC>;
5#[doc = "Field `wifipll_resv` reader - "]
6pub type WIFIPLL_RESV_R = crate::FieldReader<u16>;
7#[doc = "Field `wifipll_resv` writer - "]
8pub type WIFIPLL_RESV_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9#[doc = "Field `sscdiv_dl_ctrl` reader - "]
10pub type SSCDIV_DL_CTRL_R = crate::BitReader;
11#[doc = "Field `sscdiv_dl_ctrl` writer - "]
12pub type SSCDIV_DL_CTRL_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `usbpll_dl_ctrl` reader - "]
14pub type USBPLL_DL_CTRL_R = crate::BitReader;
15#[doc = "Field `usbpll_dl_ctrl` writer - "]
16pub type USBPLL_DL_CTRL_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `wifipll_dl_ctrl_30` reader - "]
18pub type WIFIPLL_DL_CTRL_30_R = crate::BitReader;
19#[doc = "Field `wifipll_dl_ctrl_30` writer - "]
20pub type WIFIPLL_DL_CTRL_30_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `wifipll_dl_ctrl_20` reader - "]
22pub type WIFIPLL_DL_CTRL_20_R = crate::BitReader;
23#[doc = "Field `wifipll_dl_ctrl_20` writer - "]
24pub type WIFIPLL_DL_CTRL_20_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `wifipll_dl_ctrl_12` reader - "]
26pub type WIFIPLL_DL_CTRL_12_R = crate::BitReader;
27#[doc = "Field `wifipll_dl_ctrl_12` writer - "]
28pub type WIFIPLL_DL_CTRL_12_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `wifipll_dl_ctrl_10` reader - "]
30pub type WIFIPLL_DL_CTRL_10_R = crate::BitReader;
31#[doc = "Field `wifipll_dl_ctrl_10` writer - "]
32pub type WIFIPLL_DL_CTRL_10_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `wifipll_dl_ctrl_8` reader - "]
34pub type WIFIPLL_DL_CTRL_8_R = crate::BitReader;
35#[doc = "Field `wifipll_dl_ctrl_8` writer - "]
36pub type WIFIPLL_DL_CTRL_8_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `wifipll_dl_ctrl_6_rf` reader - "]
38pub type WIFIPLL_DL_CTRL_6_RF_R = crate::BitReader;
39#[doc = "Field `wifipll_dl_ctrl_6_rf` writer - "]
40pub type WIFIPLL_DL_CTRL_6_RF_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `wifipll_dl_ctrl_6` reader - "]
42pub type WIFIPLL_DL_CTRL_6_R = crate::BitReader;
43#[doc = "Field `wifipll_dl_ctrl_6` writer - "]
44pub type WIFIPLL_DL_CTRL_6_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `wifipll_dl_ctrl_5` reader - "]
46pub type WIFIPLL_DL_CTRL_5_R = crate::BitReader;
47#[doc = "Field `wifipll_dl_ctrl_5` writer - "]
48pub type WIFIPLL_DL_CTRL_5_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `wifipll_dl_ctrl_4` reader - "]
50pub type WIFIPLL_DL_CTRL_4_R = crate::BitReader;
51#[doc = "Field `wifipll_dl_ctrl_4` writer - "]
52pub type WIFIPLL_DL_CTRL_4_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `wifipll_dl_ctrl_3_rf` reader - "]
54pub type WIFIPLL_DL_CTRL_3_RF_R = crate::BitReader;
55#[doc = "Field `wifipll_dl_ctrl_3_rf` writer - "]
56pub type WIFIPLL_DL_CTRL_3_RF_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `wifipll_dl_ctrl_3` reader - "]
58pub type WIFIPLL_DL_CTRL_3_R = crate::BitReader;
59#[doc = "Field `wifipll_dl_ctrl_3` writer - "]
60pub type WIFIPLL_DL_CTRL_3_W<'a, REG> = crate::BitWriter<'a, REG>;
61impl R {
62 #[doc = "Bits 0:15"]
63 #[inline(always)]
64 pub fn wifipll_resv(&self) -> WIFIPLL_RESV_R {
65 WIFIPLL_RESV_R::new((self.bits & 0xffff) as u16)
66 }
67 #[doc = "Bit 16"]
68 #[inline(always)]
69 pub fn sscdiv_dl_ctrl(&self) -> SSCDIV_DL_CTRL_R {
70 SSCDIV_DL_CTRL_R::new(((self.bits >> 16) & 1) != 0)
71 }
72 #[doc = "Bit 17"]
73 #[inline(always)]
74 pub fn usbpll_dl_ctrl(&self) -> USBPLL_DL_CTRL_R {
75 USBPLL_DL_CTRL_R::new(((self.bits >> 17) & 1) != 0)
76 }
77 #[doc = "Bit 18"]
78 #[inline(always)]
79 pub fn wifipll_dl_ctrl_30(&self) -> WIFIPLL_DL_CTRL_30_R {
80 WIFIPLL_DL_CTRL_30_R::new(((self.bits >> 18) & 1) != 0)
81 }
82 #[doc = "Bit 19"]
83 #[inline(always)]
84 pub fn wifipll_dl_ctrl_20(&self) -> WIFIPLL_DL_CTRL_20_R {
85 WIFIPLL_DL_CTRL_20_R::new(((self.bits >> 19) & 1) != 0)
86 }
87 #[doc = "Bit 20"]
88 #[inline(always)]
89 pub fn wifipll_dl_ctrl_12(&self) -> WIFIPLL_DL_CTRL_12_R {
90 WIFIPLL_DL_CTRL_12_R::new(((self.bits >> 20) & 1) != 0)
91 }
92 #[doc = "Bit 21"]
93 #[inline(always)]
94 pub fn wifipll_dl_ctrl_10(&self) -> WIFIPLL_DL_CTRL_10_R {
95 WIFIPLL_DL_CTRL_10_R::new(((self.bits >> 21) & 1) != 0)
96 }
97 #[doc = "Bit 22"]
98 #[inline(always)]
99 pub fn wifipll_dl_ctrl_8(&self) -> WIFIPLL_DL_CTRL_8_R {
100 WIFIPLL_DL_CTRL_8_R::new(((self.bits >> 22) & 1) != 0)
101 }
102 #[doc = "Bit 23"]
103 #[inline(always)]
104 pub fn wifipll_dl_ctrl_6_rf(&self) -> WIFIPLL_DL_CTRL_6_RF_R {
105 WIFIPLL_DL_CTRL_6_RF_R::new(((self.bits >> 23) & 1) != 0)
106 }
107 #[doc = "Bit 24"]
108 #[inline(always)]
109 pub fn wifipll_dl_ctrl_6(&self) -> WIFIPLL_DL_CTRL_6_R {
110 WIFIPLL_DL_CTRL_6_R::new(((self.bits >> 24) & 1) != 0)
111 }
112 #[doc = "Bit 25"]
113 #[inline(always)]
114 pub fn wifipll_dl_ctrl_5(&self) -> WIFIPLL_DL_CTRL_5_R {
115 WIFIPLL_DL_CTRL_5_R::new(((self.bits >> 25) & 1) != 0)
116 }
117 #[doc = "Bit 26"]
118 #[inline(always)]
119 pub fn wifipll_dl_ctrl_4(&self) -> WIFIPLL_DL_CTRL_4_R {
120 WIFIPLL_DL_CTRL_4_R::new(((self.bits >> 26) & 1) != 0)
121 }
122 #[doc = "Bit 27"]
123 #[inline(always)]
124 pub fn wifipll_dl_ctrl_3_rf(&self) -> WIFIPLL_DL_CTRL_3_RF_R {
125 WIFIPLL_DL_CTRL_3_RF_R::new(((self.bits >> 27) & 1) != 0)
126 }
127 #[doc = "Bit 28"]
128 #[inline(always)]
129 pub fn wifipll_dl_ctrl_3(&self) -> WIFIPLL_DL_CTRL_3_R {
130 WIFIPLL_DL_CTRL_3_R::new(((self.bits >> 28) & 1) != 0)
131 }
132}
133impl W {
134 #[doc = "Bits 0:15"]
135 #[inline(always)]
136 #[must_use]
137 pub fn wifipll_resv(&mut self) -> WIFIPLL_RESV_W<WIFI_PLL_CONFIG_14_SPEC> {
138 WIFIPLL_RESV_W::new(self, 0)
139 }
140 #[doc = "Bit 16"]
141 #[inline(always)]
142 #[must_use]
143 pub fn sscdiv_dl_ctrl(&mut self) -> SSCDIV_DL_CTRL_W<WIFI_PLL_CONFIG_14_SPEC> {
144 SSCDIV_DL_CTRL_W::new(self, 16)
145 }
146 #[doc = "Bit 17"]
147 #[inline(always)]
148 #[must_use]
149 pub fn usbpll_dl_ctrl(&mut self) -> USBPLL_DL_CTRL_W<WIFI_PLL_CONFIG_14_SPEC> {
150 USBPLL_DL_CTRL_W::new(self, 17)
151 }
152 #[doc = "Bit 18"]
153 #[inline(always)]
154 #[must_use]
155 pub fn wifipll_dl_ctrl_30(&mut self) -> WIFIPLL_DL_CTRL_30_W<WIFI_PLL_CONFIG_14_SPEC> {
156 WIFIPLL_DL_CTRL_30_W::new(self, 18)
157 }
158 #[doc = "Bit 19"]
159 #[inline(always)]
160 #[must_use]
161 pub fn wifipll_dl_ctrl_20(&mut self) -> WIFIPLL_DL_CTRL_20_W<WIFI_PLL_CONFIG_14_SPEC> {
162 WIFIPLL_DL_CTRL_20_W::new(self, 19)
163 }
164 #[doc = "Bit 20"]
165 #[inline(always)]
166 #[must_use]
167 pub fn wifipll_dl_ctrl_12(&mut self) -> WIFIPLL_DL_CTRL_12_W<WIFI_PLL_CONFIG_14_SPEC> {
168 WIFIPLL_DL_CTRL_12_W::new(self, 20)
169 }
170 #[doc = "Bit 21"]
171 #[inline(always)]
172 #[must_use]
173 pub fn wifipll_dl_ctrl_10(&mut self) -> WIFIPLL_DL_CTRL_10_W<WIFI_PLL_CONFIG_14_SPEC> {
174 WIFIPLL_DL_CTRL_10_W::new(self, 21)
175 }
176 #[doc = "Bit 22"]
177 #[inline(always)]
178 #[must_use]
179 pub fn wifipll_dl_ctrl_8(&mut self) -> WIFIPLL_DL_CTRL_8_W<WIFI_PLL_CONFIG_14_SPEC> {
180 WIFIPLL_DL_CTRL_8_W::new(self, 22)
181 }
182 #[doc = "Bit 23"]
183 #[inline(always)]
184 #[must_use]
185 pub fn wifipll_dl_ctrl_6_rf(&mut self) -> WIFIPLL_DL_CTRL_6_RF_W<WIFI_PLL_CONFIG_14_SPEC> {
186 WIFIPLL_DL_CTRL_6_RF_W::new(self, 23)
187 }
188 #[doc = "Bit 24"]
189 #[inline(always)]
190 #[must_use]
191 pub fn wifipll_dl_ctrl_6(&mut self) -> WIFIPLL_DL_CTRL_6_W<WIFI_PLL_CONFIG_14_SPEC> {
192 WIFIPLL_DL_CTRL_6_W::new(self, 24)
193 }
194 #[doc = "Bit 25"]
195 #[inline(always)]
196 #[must_use]
197 pub fn wifipll_dl_ctrl_5(&mut self) -> WIFIPLL_DL_CTRL_5_W<WIFI_PLL_CONFIG_14_SPEC> {
198 WIFIPLL_DL_CTRL_5_W::new(self, 25)
199 }
200 #[doc = "Bit 26"]
201 #[inline(always)]
202 #[must_use]
203 pub fn wifipll_dl_ctrl_4(&mut self) -> WIFIPLL_DL_CTRL_4_W<WIFI_PLL_CONFIG_14_SPEC> {
204 WIFIPLL_DL_CTRL_4_W::new(self, 26)
205 }
206 #[doc = "Bit 27"]
207 #[inline(always)]
208 #[must_use]
209 pub fn wifipll_dl_ctrl_3_rf(&mut self) -> WIFIPLL_DL_CTRL_3_RF_W<WIFI_PLL_CONFIG_14_SPEC> {
210 WIFIPLL_DL_CTRL_3_RF_W::new(self, 27)
211 }
212 #[doc = "Bit 28"]
213 #[inline(always)]
214 #[must_use]
215 pub fn wifipll_dl_ctrl_3(&mut self) -> WIFIPLL_DL_CTRL_3_W<WIFI_PLL_CONFIG_14_SPEC> {
216 WIFIPLL_DL_CTRL_3_W::new(self, 28)
217 }
218 #[doc = r" Writes raw bits to the register."]
219 #[doc = r""]
220 #[doc = r" # Safety"]
221 #[doc = r""]
222 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
223 #[inline(always)]
224 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
225 self.bits = bits;
226 self
227 }
228}
229#[doc = "Wireless Fidelity Phase-Locked Loop configuration 14\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wifi_pll_config_14::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_14::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
230pub struct WIFI_PLL_CONFIG_14_SPEC;
231impl crate::RegisterSpec for WIFI_PLL_CONFIG_14_SPEC {
232 type Ux = u32;
233}
234#[doc = "`read()` method returns [`wifi_pll_config_14::R`](R) reader structure"]
235impl crate::Readable for WIFI_PLL_CONFIG_14_SPEC {}
236#[doc = "`write(|w| ..)` method takes [`wifi_pll_config_14::W`](W) writer structure"]
237impl crate::Writable for WIFI_PLL_CONFIG_14_SPEC {
238 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
239 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
240}
241#[doc = "`reset()` method sets wifi_pll_config_14 to value 0"]
242impl crate::Resettable for WIFI_PLL_CONFIG_14_SPEC {
243 const RESET_VALUE: Self::Ux = 0;
244}