bl702_pac/pds/
clkpll_output_en.rs1#[doc = "Register `clkpll_output_en` reader"]
2pub struct R(crate::R<CLKPLL_OUTPUT_EN_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<CLKPLL_OUTPUT_EN_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<CLKPLL_OUTPUT_EN_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<CLKPLL_OUTPUT_EN_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `clkpll_output_en` writer"]
17pub struct W(crate::W<CLKPLL_OUTPUT_EN_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<CLKPLL_OUTPUT_EN_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<CLKPLL_OUTPUT_EN_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<CLKPLL_OUTPUT_EN_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `clkpll_en_480m` reader - "]
38pub type CLKPLL_EN_480M_R = crate::BitReader<bool>;
39#[doc = "Field `clkpll_en_480m` writer - "]
40pub type CLKPLL_EN_480M_W<'a, const O: u8> =
41 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
42#[doc = "Field `clkpll_en_240m` reader - "]
43pub type CLKPLL_EN_240M_R = crate::BitReader<bool>;
44#[doc = "Field `clkpll_en_240m` writer - "]
45pub type CLKPLL_EN_240M_W<'a, const O: u8> =
46 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
47#[doc = "Field `clkpll_en_192m` reader - "]
48pub type CLKPLL_EN_192M_R = crate::BitReader<bool>;
49#[doc = "Field `clkpll_en_192m` writer - "]
50pub type CLKPLL_EN_192M_W<'a, const O: u8> =
51 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
52#[doc = "Field `clkpll_en_160m` reader - "]
53pub type CLKPLL_EN_160M_R = crate::BitReader<bool>;
54#[doc = "Field `clkpll_en_160m` writer - "]
55pub type CLKPLL_EN_160M_W<'a, const O: u8> =
56 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
57#[doc = "Field `clkpll_en_120m` reader - "]
58pub type CLKPLL_EN_120M_R = crate::BitReader<bool>;
59#[doc = "Field `clkpll_en_120m` writer - "]
60pub type CLKPLL_EN_120M_W<'a, const O: u8> =
61 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
62#[doc = "Field `clkpll_en_96m` reader - "]
63pub type CLKPLL_EN_96M_R = crate::BitReader<bool>;
64#[doc = "Field `clkpll_en_96m` writer - "]
65pub type CLKPLL_EN_96M_W<'a, const O: u8> =
66 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
67#[doc = "Field `clkpll_en_80m` reader - "]
68pub type CLKPLL_EN_80M_R = crate::BitReader<bool>;
69#[doc = "Field `clkpll_en_80m` writer - "]
70pub type CLKPLL_EN_80M_W<'a, const O: u8> =
71 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
72#[doc = "Field `clkpll_en_48m` reader - "]
73pub type CLKPLL_EN_48M_R = crate::BitReader<bool>;
74#[doc = "Field `clkpll_en_48m` writer - "]
75pub type CLKPLL_EN_48M_W<'a, const O: u8> =
76 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
77#[doc = "Field `clkpll_en_32m` reader - "]
78pub type CLKPLL_EN_32M_R = crate::BitReader<bool>;
79#[doc = "Field `clkpll_en_32m` writer - "]
80pub type CLKPLL_EN_32M_W<'a, const O: u8> =
81 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
82#[doc = "Field `clkpll_en_div2_480m` reader - "]
83pub type CLKPLL_EN_DIV2_480M_R = crate::BitReader<bool>;
84#[doc = "Field `clkpll_en_div2_480m` writer - "]
85pub type CLKPLL_EN_DIV2_480M_W<'a, const O: u8> =
86 crate::BitWriter<'a, u32, CLKPLL_OUTPUT_EN_SPEC, bool, O>;
87impl R {
88 #[doc = "Bit 0"]
89 #[inline(always)]
90 pub fn clkpll_en_480m(&self) -> CLKPLL_EN_480M_R {
91 CLKPLL_EN_480M_R::new((self.bits & 1) != 0)
92 }
93 #[doc = "Bit 1"]
94 #[inline(always)]
95 pub fn clkpll_en_240m(&self) -> CLKPLL_EN_240M_R {
96 CLKPLL_EN_240M_R::new(((self.bits >> 1) & 1) != 0)
97 }
98 #[doc = "Bit 2"]
99 #[inline(always)]
100 pub fn clkpll_en_192m(&self) -> CLKPLL_EN_192M_R {
101 CLKPLL_EN_192M_R::new(((self.bits >> 2) & 1) != 0)
102 }
103 #[doc = "Bit 3"]
104 #[inline(always)]
105 pub fn clkpll_en_160m(&self) -> CLKPLL_EN_160M_R {
106 CLKPLL_EN_160M_R::new(((self.bits >> 3) & 1) != 0)
107 }
108 #[doc = "Bit 4"]
109 #[inline(always)]
110 pub fn clkpll_en_120m(&self) -> CLKPLL_EN_120M_R {
111 CLKPLL_EN_120M_R::new(((self.bits >> 4) & 1) != 0)
112 }
113 #[doc = "Bit 5"]
114 #[inline(always)]
115 pub fn clkpll_en_96m(&self) -> CLKPLL_EN_96M_R {
116 CLKPLL_EN_96M_R::new(((self.bits >> 5) & 1) != 0)
117 }
118 #[doc = "Bit 6"]
119 #[inline(always)]
120 pub fn clkpll_en_80m(&self) -> CLKPLL_EN_80M_R {
121 CLKPLL_EN_80M_R::new(((self.bits >> 6) & 1) != 0)
122 }
123 #[doc = "Bit 7"]
124 #[inline(always)]
125 pub fn clkpll_en_48m(&self) -> CLKPLL_EN_48M_R {
126 CLKPLL_EN_48M_R::new(((self.bits >> 7) & 1) != 0)
127 }
128 #[doc = "Bit 8"]
129 #[inline(always)]
130 pub fn clkpll_en_32m(&self) -> CLKPLL_EN_32M_R {
131 CLKPLL_EN_32M_R::new(((self.bits >> 8) & 1) != 0)
132 }
133 #[doc = "Bit 9"]
134 #[inline(always)]
135 pub fn clkpll_en_div2_480m(&self) -> CLKPLL_EN_DIV2_480M_R {
136 CLKPLL_EN_DIV2_480M_R::new(((self.bits >> 9) & 1) != 0)
137 }
138}
139impl W {
140 #[doc = "Bit 0"]
141 #[inline(always)]
142 #[must_use]
143 pub fn clkpll_en_480m(&mut self) -> CLKPLL_EN_480M_W<0> {
144 CLKPLL_EN_480M_W::new(self)
145 }
146 #[doc = "Bit 1"]
147 #[inline(always)]
148 #[must_use]
149 pub fn clkpll_en_240m(&mut self) -> CLKPLL_EN_240M_W<1> {
150 CLKPLL_EN_240M_W::new(self)
151 }
152 #[doc = "Bit 2"]
153 #[inline(always)]
154 #[must_use]
155 pub fn clkpll_en_192m(&mut self) -> CLKPLL_EN_192M_W<2> {
156 CLKPLL_EN_192M_W::new(self)
157 }
158 #[doc = "Bit 3"]
159 #[inline(always)]
160 #[must_use]
161 pub fn clkpll_en_160m(&mut self) -> CLKPLL_EN_160M_W<3> {
162 CLKPLL_EN_160M_W::new(self)
163 }
164 #[doc = "Bit 4"]
165 #[inline(always)]
166 #[must_use]
167 pub fn clkpll_en_120m(&mut self) -> CLKPLL_EN_120M_W<4> {
168 CLKPLL_EN_120M_W::new(self)
169 }
170 #[doc = "Bit 5"]
171 #[inline(always)]
172 #[must_use]
173 pub fn clkpll_en_96m(&mut self) -> CLKPLL_EN_96M_W<5> {
174 CLKPLL_EN_96M_W::new(self)
175 }
176 #[doc = "Bit 6"]
177 #[inline(always)]
178 #[must_use]
179 pub fn clkpll_en_80m(&mut self) -> CLKPLL_EN_80M_W<6> {
180 CLKPLL_EN_80M_W::new(self)
181 }
182 #[doc = "Bit 7"]
183 #[inline(always)]
184 #[must_use]
185 pub fn clkpll_en_48m(&mut self) -> CLKPLL_EN_48M_W<7> {
186 CLKPLL_EN_48M_W::new(self)
187 }
188 #[doc = "Bit 8"]
189 #[inline(always)]
190 #[must_use]
191 pub fn clkpll_en_32m(&mut self) -> CLKPLL_EN_32M_W<8> {
192 CLKPLL_EN_32M_W::new(self)
193 }
194 #[doc = "Bit 9"]
195 #[inline(always)]
196 #[must_use]
197 pub fn clkpll_en_div2_480m(&mut self) -> CLKPLL_EN_DIV2_480M_W<9> {
198 CLKPLL_EN_DIV2_480M_W::new(self)
199 }
200 #[doc = "Writes raw bits to the register."]
201 #[inline(always)]
202 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
203 self.0.bits(bits);
204 self
205 }
206}
207#[doc = "clkpll_output_en.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [clkpll_output_en](index.html) module"]
208pub struct CLKPLL_OUTPUT_EN_SPEC;
209impl crate::RegisterSpec for CLKPLL_OUTPUT_EN_SPEC {
210 type Ux = u32;
211}
212#[doc = "`read()` method returns [clkpll_output_en::R](R) reader structure"]
213impl crate::Readable for CLKPLL_OUTPUT_EN_SPEC {
214 type Reader = R;
215}
216#[doc = "`write(|w| ..)` method takes [clkpll_output_en::W](W) writer structure"]
217impl crate::Writable for CLKPLL_OUTPUT_EN_SPEC {
218 type Writer = W;
219 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
220 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
221}
222#[doc = "`reset()` method sets clkpll_output_en to value 0"]
223impl crate::Resettable for CLKPLL_OUTPUT_EN_SPEC {
224 const RESET_VALUE: Self::Ux = 0;
225}