1#[doc = "Register `PUER` writer"]
2pub struct W(crate::W<PUER_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<PUER_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<PUER_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<PUER_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `P0` writer - Pull Up Enable."]
23pub type P0_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
24#[doc = "Field `P1` writer - Pull Up Enable."]
25pub type P1_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
26#[doc = "Field `P2` writer - Pull Up Enable."]
27pub type P2_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
28#[doc = "Field `P3` writer - Pull Up Enable."]
29pub type P3_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
30#[doc = "Field `P4` writer - Pull Up Enable."]
31pub type P4_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
32#[doc = "Field `P5` writer - Pull Up Enable."]
33pub type P5_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
34#[doc = "Field `P6` writer - Pull Up Enable."]
35pub type P6_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
36#[doc = "Field `P7` writer - Pull Up Enable."]
37pub type P7_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
38#[doc = "Field `P8` writer - Pull Up Enable."]
39pub type P8_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
40#[doc = "Field `P9` writer - Pull Up Enable."]
41pub type P9_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
42#[doc = "Field `P10` writer - Pull Up Enable."]
43pub type P10_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
44#[doc = "Field `P11` writer - Pull Up Enable."]
45pub type P11_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
46#[doc = "Field `P12` writer - Pull Up Enable."]
47pub type P12_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
48#[doc = "Field `P13` writer - Pull Up Enable."]
49pub type P13_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
50#[doc = "Field `P14` writer - Pull Up Enable."]
51pub type P14_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
52#[doc = "Field `P15` writer - Pull Up Enable."]
53pub type P15_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
54#[doc = "Field `P16` writer - Pull Up Enable."]
55pub type P16_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
56#[doc = "Field `P17` writer - Pull Up Enable."]
57pub type P17_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
58#[doc = "Field `P18` writer - Pull Up Enable."]
59pub type P18_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
60#[doc = "Field `P19` writer - Pull Up Enable."]
61pub type P19_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
62#[doc = "Field `P20` writer - Pull Up Enable."]
63pub type P20_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
64#[doc = "Field `P21` writer - Pull Up Enable."]
65pub type P21_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
66#[doc = "Field `P22` writer - Pull Up Enable."]
67pub type P22_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
68#[doc = "Field `P23` writer - Pull Up Enable."]
69pub type P23_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
70#[doc = "Field `P24` writer - Pull Up Enable."]
71pub type P24_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
72#[doc = "Field `P25` writer - Pull Up Enable."]
73pub type P25_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
74#[doc = "Field `P26` writer - Pull Up Enable."]
75pub type P26_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
76#[doc = "Field `P27` writer - Pull Up Enable."]
77pub type P27_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
78#[doc = "Field `P28` writer - Pull Up Enable."]
79pub type P28_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
80#[doc = "Field `P29` writer - Pull Up Enable."]
81pub type P29_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
82#[doc = "Field `P30` writer - Pull Up Enable."]
83pub type P30_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
84#[doc = "Field `P31` writer - Pull Up Enable."]
85pub type P31_W<'a, const O: u8> = crate::BitWriter<'a, u32, PUER_SPEC, bool, O>;
86impl W {
87 #[doc = "Bit 0 - Pull Up Enable."]
88 #[inline(always)]
89 #[must_use]
90 pub fn p0(&mut self) -> P0_W<0> {
91 P0_W::new(self)
92 }
93 #[doc = "Bit 1 - Pull Up Enable."]
94 #[inline(always)]
95 #[must_use]
96 pub fn p1(&mut self) -> P1_W<1> {
97 P1_W::new(self)
98 }
99 #[doc = "Bit 2 - Pull Up Enable."]
100 #[inline(always)]
101 #[must_use]
102 pub fn p2(&mut self) -> P2_W<2> {
103 P2_W::new(self)
104 }
105 #[doc = "Bit 3 - Pull Up Enable."]
106 #[inline(always)]
107 #[must_use]
108 pub fn p3(&mut self) -> P3_W<3> {
109 P3_W::new(self)
110 }
111 #[doc = "Bit 4 - Pull Up Enable."]
112 #[inline(always)]
113 #[must_use]
114 pub fn p4(&mut self) -> P4_W<4> {
115 P4_W::new(self)
116 }
117 #[doc = "Bit 5 - Pull Up Enable."]
118 #[inline(always)]
119 #[must_use]
120 pub fn p5(&mut self) -> P5_W<5> {
121 P5_W::new(self)
122 }
123 #[doc = "Bit 6 - Pull Up Enable."]
124 #[inline(always)]
125 #[must_use]
126 pub fn p6(&mut self) -> P6_W<6> {
127 P6_W::new(self)
128 }
129 #[doc = "Bit 7 - Pull Up Enable."]
130 #[inline(always)]
131 #[must_use]
132 pub fn p7(&mut self) -> P7_W<7> {
133 P7_W::new(self)
134 }
135 #[doc = "Bit 8 - Pull Up Enable."]
136 #[inline(always)]
137 #[must_use]
138 pub fn p8(&mut self) -> P8_W<8> {
139 P8_W::new(self)
140 }
141 #[doc = "Bit 9 - Pull Up Enable."]
142 #[inline(always)]
143 #[must_use]
144 pub fn p9(&mut self) -> P9_W<9> {
145 P9_W::new(self)
146 }
147 #[doc = "Bit 10 - Pull Up Enable."]
148 #[inline(always)]
149 #[must_use]
150 pub fn p10(&mut self) -> P10_W<10> {
151 P10_W::new(self)
152 }
153 #[doc = "Bit 11 - Pull Up Enable."]
154 #[inline(always)]
155 #[must_use]
156 pub fn p11(&mut self) -> P11_W<11> {
157 P11_W::new(self)
158 }
159 #[doc = "Bit 12 - Pull Up Enable."]
160 #[inline(always)]
161 #[must_use]
162 pub fn p12(&mut self) -> P12_W<12> {
163 P12_W::new(self)
164 }
165 #[doc = "Bit 13 - Pull Up Enable."]
166 #[inline(always)]
167 #[must_use]
168 pub fn p13(&mut self) -> P13_W<13> {
169 P13_W::new(self)
170 }
171 #[doc = "Bit 14 - Pull Up Enable."]
172 #[inline(always)]
173 #[must_use]
174 pub fn p14(&mut self) -> P14_W<14> {
175 P14_W::new(self)
176 }
177 #[doc = "Bit 15 - Pull Up Enable."]
178 #[inline(always)]
179 #[must_use]
180 pub fn p15(&mut self) -> P15_W<15> {
181 P15_W::new(self)
182 }
183 #[doc = "Bit 16 - Pull Up Enable."]
184 #[inline(always)]
185 #[must_use]
186 pub fn p16(&mut self) -> P16_W<16> {
187 P16_W::new(self)
188 }
189 #[doc = "Bit 17 - Pull Up Enable."]
190 #[inline(always)]
191 #[must_use]
192 pub fn p17(&mut self) -> P17_W<17> {
193 P17_W::new(self)
194 }
195 #[doc = "Bit 18 - Pull Up Enable."]
196 #[inline(always)]
197 #[must_use]
198 pub fn p18(&mut self) -> P18_W<18> {
199 P18_W::new(self)
200 }
201 #[doc = "Bit 19 - Pull Up Enable."]
202 #[inline(always)]
203 #[must_use]
204 pub fn p19(&mut self) -> P19_W<19> {
205 P19_W::new(self)
206 }
207 #[doc = "Bit 20 - Pull Up Enable."]
208 #[inline(always)]
209 #[must_use]
210 pub fn p20(&mut self) -> P20_W<20> {
211 P20_W::new(self)
212 }
213 #[doc = "Bit 21 - Pull Up Enable."]
214 #[inline(always)]
215 #[must_use]
216 pub fn p21(&mut self) -> P21_W<21> {
217 P21_W::new(self)
218 }
219 #[doc = "Bit 22 - Pull Up Enable."]
220 #[inline(always)]
221 #[must_use]
222 pub fn p22(&mut self) -> P22_W<22> {
223 P22_W::new(self)
224 }
225 #[doc = "Bit 23 - Pull Up Enable."]
226 #[inline(always)]
227 #[must_use]
228 pub fn p23(&mut self) -> P23_W<23> {
229 P23_W::new(self)
230 }
231 #[doc = "Bit 24 - Pull Up Enable."]
232 #[inline(always)]
233 #[must_use]
234 pub fn p24(&mut self) -> P24_W<24> {
235 P24_W::new(self)
236 }
237 #[doc = "Bit 25 - Pull Up Enable."]
238 #[inline(always)]
239 #[must_use]
240 pub fn p25(&mut self) -> P25_W<25> {
241 P25_W::new(self)
242 }
243 #[doc = "Bit 26 - Pull Up Enable."]
244 #[inline(always)]
245 #[must_use]
246 pub fn p26(&mut self) -> P26_W<26> {
247 P26_W::new(self)
248 }
249 #[doc = "Bit 27 - Pull Up Enable."]
250 #[inline(always)]
251 #[must_use]
252 pub fn p27(&mut self) -> P27_W<27> {
253 P27_W::new(self)
254 }
255 #[doc = "Bit 28 - Pull Up Enable."]
256 #[inline(always)]
257 #[must_use]
258 pub fn p28(&mut self) -> P28_W<28> {
259 P28_W::new(self)
260 }
261 #[doc = "Bit 29 - Pull Up Enable."]
262 #[inline(always)]
263 #[must_use]
264 pub fn p29(&mut self) -> P29_W<29> {
265 P29_W::new(self)
266 }
267 #[doc = "Bit 30 - Pull Up Enable."]
268 #[inline(always)]
269 #[must_use]
270 pub fn p30(&mut self) -> P30_W<30> {
271 P30_W::new(self)
272 }
273 #[doc = "Bit 31 - Pull Up Enable."]
274 #[inline(always)]
275 #[must_use]
276 pub fn p31(&mut self) -> P31_W<31> {
277 P31_W::new(self)
278 }
279 #[doc = "Writes raw bits to the register."]
280 #[inline(always)]
281 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
282 self.0.bits(bits);
283 self
284 }
285}
286#[doc = "Pull-up Enable Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [puer](index.html) module"]
287pub struct PUER_SPEC;
288impl crate::RegisterSpec for PUER_SPEC {
289 type Ux = u32;
290}
291#[doc = "`write(|w| ..)` method takes [puer::W](W) writer structure"]
292impl crate::Writable for PUER_SPEC {
293 type Writer = W;
294 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
295 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
296}