Skip to main content

lpc550x/gpio/
dirset.rs

1#[doc = "Register `DIRSET[%s]` writer"]
2pub struct W(crate::W<DIRSET_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<DIRSET_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<DIRSET_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<DIRSET_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Sets pin direction to output for pin PIOn_0.\n\nValue on reset: 0"]
23#[derive(Clone, Copy, Debug, PartialEq, Eq)]
24pub enum PIO0_AW {
25    #[doc = "0: Pin direction is unchanged."]
26    UNCHANGED = 0,
27    #[doc = "1: Pin direction is set to output."]
28    SET_OUTPUT = 1,
29}
30impl From<PIO0_AW> for bool {
31    #[inline(always)]
32    fn from(variant: PIO0_AW) -> Self {
33        variant as u8 != 0
34    }
35}
36#[doc = "Field `PIO0` writer - Sets pin direction to output for pin PIOn_0."]
37pub type PIO0_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO0_AW, O>;
38impl<'a, const O: u8> PIO0_W<'a, O> {
39    #[doc = "Pin direction is unchanged."]
40    #[inline(always)]
41    pub fn unchanged(self) -> &'a mut W {
42        self.variant(PIO0_AW::UNCHANGED)
43    }
44    #[doc = "Pin direction is set to output."]
45    #[inline(always)]
46    pub fn set_output(self) -> &'a mut W {
47        self.variant(PIO0_AW::SET_OUTPUT)
48    }
49}
50#[doc = "Sets pin direction to output for pin PIOn_1.\n\nValue on reset: 0"]
51#[derive(Clone, Copy, Debug, PartialEq, Eq)]
52pub enum PIO1_AW {
53    #[doc = "0: Pin direction is unchanged."]
54    UNCHANGED = 0,
55    #[doc = "1: Pin direction is set to output."]
56    SET_OUTPUT = 1,
57}
58impl From<PIO1_AW> for bool {
59    #[inline(always)]
60    fn from(variant: PIO1_AW) -> Self {
61        variant as u8 != 0
62    }
63}
64#[doc = "Field `PIO1` writer - Sets pin direction to output for pin PIOn_1."]
65pub type PIO1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO1_AW, O>;
66impl<'a, const O: u8> PIO1_W<'a, O> {
67    #[doc = "Pin direction is unchanged."]
68    #[inline(always)]
69    pub fn unchanged(self) -> &'a mut W {
70        self.variant(PIO1_AW::UNCHANGED)
71    }
72    #[doc = "Pin direction is set to output."]
73    #[inline(always)]
74    pub fn set_output(self) -> &'a mut W {
75        self.variant(PIO1_AW::SET_OUTPUT)
76    }
77}
78#[doc = "Sets pin direction to output for pin PIOn_2.\n\nValue on reset: 0"]
79#[derive(Clone, Copy, Debug, PartialEq, Eq)]
80pub enum PIO2_AW {
81    #[doc = "0: Pin direction is unchanged."]
82    UNCHANGED = 0,
83    #[doc = "1: Pin direction is set to output."]
84    SET_OUTPUT = 1,
85}
86impl From<PIO2_AW> for bool {
87    #[inline(always)]
88    fn from(variant: PIO2_AW) -> Self {
89        variant as u8 != 0
90    }
91}
92#[doc = "Field `PIO2` writer - Sets pin direction to output for pin PIOn_2."]
93pub type PIO2_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO2_AW, O>;
94impl<'a, const O: u8> PIO2_W<'a, O> {
95    #[doc = "Pin direction is unchanged."]
96    #[inline(always)]
97    pub fn unchanged(self) -> &'a mut W {
98        self.variant(PIO2_AW::UNCHANGED)
99    }
100    #[doc = "Pin direction is set to output."]
101    #[inline(always)]
102    pub fn set_output(self) -> &'a mut W {
103        self.variant(PIO2_AW::SET_OUTPUT)
104    }
105}
106#[doc = "Sets pin direction to output for pin PIOn_3.\n\nValue on reset: 0"]
107#[derive(Clone, Copy, Debug, PartialEq, Eq)]
108pub enum PIO3_AW {
109    #[doc = "0: Pin direction is unchanged."]
110    UNCHANGED = 0,
111    #[doc = "1: Pin direction is set to output."]
112    SET_OUTPUT = 1,
113}
114impl From<PIO3_AW> for bool {
115    #[inline(always)]
116    fn from(variant: PIO3_AW) -> Self {
117        variant as u8 != 0
118    }
119}
120#[doc = "Field `PIO3` writer - Sets pin direction to output for pin PIOn_3."]
121pub type PIO3_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO3_AW, O>;
122impl<'a, const O: u8> PIO3_W<'a, O> {
123    #[doc = "Pin direction is unchanged."]
124    #[inline(always)]
125    pub fn unchanged(self) -> &'a mut W {
126        self.variant(PIO3_AW::UNCHANGED)
127    }
128    #[doc = "Pin direction is set to output."]
129    #[inline(always)]
130    pub fn set_output(self) -> &'a mut W {
131        self.variant(PIO3_AW::SET_OUTPUT)
132    }
133}
134#[doc = "Sets pin direction to output for pin PIOn_4.\n\nValue on reset: 0"]
135#[derive(Clone, Copy, Debug, PartialEq, Eq)]
136pub enum PIO4_AW {
137    #[doc = "0: Pin direction is unchanged."]
138    UNCHANGED = 0,
139    #[doc = "1: Pin direction is set to output."]
140    SET_OUTPUT = 1,
141}
142impl From<PIO4_AW> for bool {
143    #[inline(always)]
144    fn from(variant: PIO4_AW) -> Self {
145        variant as u8 != 0
146    }
147}
148#[doc = "Field `PIO4` writer - Sets pin direction to output for pin PIOn_4."]
149pub type PIO4_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO4_AW, O>;
150impl<'a, const O: u8> PIO4_W<'a, O> {
151    #[doc = "Pin direction is unchanged."]
152    #[inline(always)]
153    pub fn unchanged(self) -> &'a mut W {
154        self.variant(PIO4_AW::UNCHANGED)
155    }
156    #[doc = "Pin direction is set to output."]
157    #[inline(always)]
158    pub fn set_output(self) -> &'a mut W {
159        self.variant(PIO4_AW::SET_OUTPUT)
160    }
161}
162#[doc = "Sets pin direction to output for pin PIOn_5.\n\nValue on reset: 0"]
163#[derive(Clone, Copy, Debug, PartialEq, Eq)]
164pub enum PIO5_AW {
165    #[doc = "0: Pin direction is unchanged."]
166    UNCHANGED = 0,
167    #[doc = "1: Pin direction is set to output."]
168    SET_OUTPUT = 1,
169}
170impl From<PIO5_AW> for bool {
171    #[inline(always)]
172    fn from(variant: PIO5_AW) -> Self {
173        variant as u8 != 0
174    }
175}
176#[doc = "Field `PIO5` writer - Sets pin direction to output for pin PIOn_5."]
177pub type PIO5_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO5_AW, O>;
178impl<'a, const O: u8> PIO5_W<'a, O> {
179    #[doc = "Pin direction is unchanged."]
180    #[inline(always)]
181    pub fn unchanged(self) -> &'a mut W {
182        self.variant(PIO5_AW::UNCHANGED)
183    }
184    #[doc = "Pin direction is set to output."]
185    #[inline(always)]
186    pub fn set_output(self) -> &'a mut W {
187        self.variant(PIO5_AW::SET_OUTPUT)
188    }
189}
190#[doc = "Sets pin direction to output for pin PIOn_6.\n\nValue on reset: 0"]
191#[derive(Clone, Copy, Debug, PartialEq, Eq)]
192pub enum PIO6_AW {
193    #[doc = "0: Pin direction is unchanged."]
194    UNCHANGED = 0,
195    #[doc = "1: Pin direction is set to output."]
196    SET_OUTPUT = 1,
197}
198impl From<PIO6_AW> for bool {
199    #[inline(always)]
200    fn from(variant: PIO6_AW) -> Self {
201        variant as u8 != 0
202    }
203}
204#[doc = "Field `PIO6` writer - Sets pin direction to output for pin PIOn_6."]
205pub type PIO6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO6_AW, O>;
206impl<'a, const O: u8> PIO6_W<'a, O> {
207    #[doc = "Pin direction is unchanged."]
208    #[inline(always)]
209    pub fn unchanged(self) -> &'a mut W {
210        self.variant(PIO6_AW::UNCHANGED)
211    }
212    #[doc = "Pin direction is set to output."]
213    #[inline(always)]
214    pub fn set_output(self) -> &'a mut W {
215        self.variant(PIO6_AW::SET_OUTPUT)
216    }
217}
218#[doc = "Sets pin direction to output for pin PIOn_7.\n\nValue on reset: 0"]
219#[derive(Clone, Copy, Debug, PartialEq, Eq)]
220pub enum PIO7_AW {
221    #[doc = "0: Pin direction is unchanged."]
222    UNCHANGED = 0,
223    #[doc = "1: Pin direction is set to output."]
224    SET_OUTPUT = 1,
225}
226impl From<PIO7_AW> for bool {
227    #[inline(always)]
228    fn from(variant: PIO7_AW) -> Self {
229        variant as u8 != 0
230    }
231}
232#[doc = "Field `PIO7` writer - Sets pin direction to output for pin PIOn_7."]
233pub type PIO7_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO7_AW, O>;
234impl<'a, const O: u8> PIO7_W<'a, O> {
235    #[doc = "Pin direction is unchanged."]
236    #[inline(always)]
237    pub fn unchanged(self) -> &'a mut W {
238        self.variant(PIO7_AW::UNCHANGED)
239    }
240    #[doc = "Pin direction is set to output."]
241    #[inline(always)]
242    pub fn set_output(self) -> &'a mut W {
243        self.variant(PIO7_AW::SET_OUTPUT)
244    }
245}
246#[doc = "Sets pin direction to output for pin PIOn_8.\n\nValue on reset: 0"]
247#[derive(Clone, Copy, Debug, PartialEq, Eq)]
248pub enum PIO8_AW {
249    #[doc = "0: Pin direction is unchanged."]
250    UNCHANGED = 0,
251    #[doc = "1: Pin direction is set to output."]
252    SET_OUTPUT = 1,
253}
254impl From<PIO8_AW> for bool {
255    #[inline(always)]
256    fn from(variant: PIO8_AW) -> Self {
257        variant as u8 != 0
258    }
259}
260#[doc = "Field `PIO8` writer - Sets pin direction to output for pin PIOn_8."]
261pub type PIO8_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO8_AW, O>;
262impl<'a, const O: u8> PIO8_W<'a, O> {
263    #[doc = "Pin direction is unchanged."]
264    #[inline(always)]
265    pub fn unchanged(self) -> &'a mut W {
266        self.variant(PIO8_AW::UNCHANGED)
267    }
268    #[doc = "Pin direction is set to output."]
269    #[inline(always)]
270    pub fn set_output(self) -> &'a mut W {
271        self.variant(PIO8_AW::SET_OUTPUT)
272    }
273}
274#[doc = "Sets pin direction to output for pin PIOn_9.\n\nValue on reset: 0"]
275#[derive(Clone, Copy, Debug, PartialEq, Eq)]
276pub enum PIO9_AW {
277    #[doc = "0: Pin direction is unchanged."]
278    UNCHANGED = 0,
279    #[doc = "1: Pin direction is set to output."]
280    SET_OUTPUT = 1,
281}
282impl From<PIO9_AW> for bool {
283    #[inline(always)]
284    fn from(variant: PIO9_AW) -> Self {
285        variant as u8 != 0
286    }
287}
288#[doc = "Field `PIO9` writer - Sets pin direction to output for pin PIOn_9."]
289pub type PIO9_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO9_AW, O>;
290impl<'a, const O: u8> PIO9_W<'a, O> {
291    #[doc = "Pin direction is unchanged."]
292    #[inline(always)]
293    pub fn unchanged(self) -> &'a mut W {
294        self.variant(PIO9_AW::UNCHANGED)
295    }
296    #[doc = "Pin direction is set to output."]
297    #[inline(always)]
298    pub fn set_output(self) -> &'a mut W {
299        self.variant(PIO9_AW::SET_OUTPUT)
300    }
301}
302#[doc = "Sets pin direction to output for pin PIOn_10.\n\nValue on reset: 0"]
303#[derive(Clone, Copy, Debug, PartialEq, Eq)]
304pub enum PIO10_AW {
305    #[doc = "0: Pin direction is unchanged."]
306    UNCHANGED = 0,
307    #[doc = "1: Pin direction is set to output."]
308    SET_OUTPUT = 1,
309}
310impl From<PIO10_AW> for bool {
311    #[inline(always)]
312    fn from(variant: PIO10_AW) -> Self {
313        variant as u8 != 0
314    }
315}
316#[doc = "Field `PIO10` writer - Sets pin direction to output for pin PIOn_10."]
317pub type PIO10_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO10_AW, O>;
318impl<'a, const O: u8> PIO10_W<'a, O> {
319    #[doc = "Pin direction is unchanged."]
320    #[inline(always)]
321    pub fn unchanged(self) -> &'a mut W {
322        self.variant(PIO10_AW::UNCHANGED)
323    }
324    #[doc = "Pin direction is set to output."]
325    #[inline(always)]
326    pub fn set_output(self) -> &'a mut W {
327        self.variant(PIO10_AW::SET_OUTPUT)
328    }
329}
330#[doc = "Sets pin direction to output for pin PIOn_11.\n\nValue on reset: 0"]
331#[derive(Clone, Copy, Debug, PartialEq, Eq)]
332pub enum PIO11_AW {
333    #[doc = "0: Pin direction is unchanged."]
334    UNCHANGED = 0,
335    #[doc = "1: Pin direction is set to output."]
336    SET_OUTPUT = 1,
337}
338impl From<PIO11_AW> for bool {
339    #[inline(always)]
340    fn from(variant: PIO11_AW) -> Self {
341        variant as u8 != 0
342    }
343}
344#[doc = "Field `PIO11` writer - Sets pin direction to output for pin PIOn_11."]
345pub type PIO11_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO11_AW, O>;
346impl<'a, const O: u8> PIO11_W<'a, O> {
347    #[doc = "Pin direction is unchanged."]
348    #[inline(always)]
349    pub fn unchanged(self) -> &'a mut W {
350        self.variant(PIO11_AW::UNCHANGED)
351    }
352    #[doc = "Pin direction is set to output."]
353    #[inline(always)]
354    pub fn set_output(self) -> &'a mut W {
355        self.variant(PIO11_AW::SET_OUTPUT)
356    }
357}
358#[doc = "Sets pin direction to output for pin PIOn_12.\n\nValue on reset: 0"]
359#[derive(Clone, Copy, Debug, PartialEq, Eq)]
360pub enum PIO12_AW {
361    #[doc = "0: Pin direction is unchanged."]
362    UNCHANGED = 0,
363    #[doc = "1: Pin direction is set to output."]
364    SET_OUTPUT = 1,
365}
366impl From<PIO12_AW> for bool {
367    #[inline(always)]
368    fn from(variant: PIO12_AW) -> Self {
369        variant as u8 != 0
370    }
371}
372#[doc = "Field `PIO12` writer - Sets pin direction to output for pin PIOn_12."]
373pub type PIO12_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO12_AW, O>;
374impl<'a, const O: u8> PIO12_W<'a, O> {
375    #[doc = "Pin direction is unchanged."]
376    #[inline(always)]
377    pub fn unchanged(self) -> &'a mut W {
378        self.variant(PIO12_AW::UNCHANGED)
379    }
380    #[doc = "Pin direction is set to output."]
381    #[inline(always)]
382    pub fn set_output(self) -> &'a mut W {
383        self.variant(PIO12_AW::SET_OUTPUT)
384    }
385}
386#[doc = "Sets pin direction to output for pin PIOn_13.\n\nValue on reset: 0"]
387#[derive(Clone, Copy, Debug, PartialEq, Eq)]
388pub enum PIO13_AW {
389    #[doc = "0: Pin direction is unchanged."]
390    UNCHANGED = 0,
391    #[doc = "1: Pin direction is set to output."]
392    SET_OUTPUT = 1,
393}
394impl From<PIO13_AW> for bool {
395    #[inline(always)]
396    fn from(variant: PIO13_AW) -> Self {
397        variant as u8 != 0
398    }
399}
400#[doc = "Field `PIO13` writer - Sets pin direction to output for pin PIOn_13."]
401pub type PIO13_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO13_AW, O>;
402impl<'a, const O: u8> PIO13_W<'a, O> {
403    #[doc = "Pin direction is unchanged."]
404    #[inline(always)]
405    pub fn unchanged(self) -> &'a mut W {
406        self.variant(PIO13_AW::UNCHANGED)
407    }
408    #[doc = "Pin direction is set to output."]
409    #[inline(always)]
410    pub fn set_output(self) -> &'a mut W {
411        self.variant(PIO13_AW::SET_OUTPUT)
412    }
413}
414#[doc = "Sets pin direction to output for pin PIOn_14.\n\nValue on reset: 0"]
415#[derive(Clone, Copy, Debug, PartialEq, Eq)]
416pub enum PIO14_AW {
417    #[doc = "0: Pin direction is unchanged."]
418    UNCHANGED = 0,
419    #[doc = "1: Pin direction is set to output."]
420    SET_OUTPUT = 1,
421}
422impl From<PIO14_AW> for bool {
423    #[inline(always)]
424    fn from(variant: PIO14_AW) -> Self {
425        variant as u8 != 0
426    }
427}
428#[doc = "Field `PIO14` writer - Sets pin direction to output for pin PIOn_14."]
429pub type PIO14_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO14_AW, O>;
430impl<'a, const O: u8> PIO14_W<'a, O> {
431    #[doc = "Pin direction is unchanged."]
432    #[inline(always)]
433    pub fn unchanged(self) -> &'a mut W {
434        self.variant(PIO14_AW::UNCHANGED)
435    }
436    #[doc = "Pin direction is set to output."]
437    #[inline(always)]
438    pub fn set_output(self) -> &'a mut W {
439        self.variant(PIO14_AW::SET_OUTPUT)
440    }
441}
442#[doc = "Sets pin direction to output for pin PIOn_15.\n\nValue on reset: 0"]
443#[derive(Clone, Copy, Debug, PartialEq, Eq)]
444pub enum PIO15_AW {
445    #[doc = "0: Pin direction is unchanged."]
446    UNCHANGED = 0,
447    #[doc = "1: Pin direction is set to output."]
448    SET_OUTPUT = 1,
449}
450impl From<PIO15_AW> for bool {
451    #[inline(always)]
452    fn from(variant: PIO15_AW) -> Self {
453        variant as u8 != 0
454    }
455}
456#[doc = "Field `PIO15` writer - Sets pin direction to output for pin PIOn_15."]
457pub type PIO15_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO15_AW, O>;
458impl<'a, const O: u8> PIO15_W<'a, O> {
459    #[doc = "Pin direction is unchanged."]
460    #[inline(always)]
461    pub fn unchanged(self) -> &'a mut W {
462        self.variant(PIO15_AW::UNCHANGED)
463    }
464    #[doc = "Pin direction is set to output."]
465    #[inline(always)]
466    pub fn set_output(self) -> &'a mut W {
467        self.variant(PIO15_AW::SET_OUTPUT)
468    }
469}
470#[doc = "Sets pin direction to output for pin PIOn_16.\n\nValue on reset: 0"]
471#[derive(Clone, Copy, Debug, PartialEq, Eq)]
472pub enum PIO16_AW {
473    #[doc = "0: Pin direction is unchanged."]
474    UNCHANGED = 0,
475    #[doc = "1: Pin direction is set to output."]
476    SET_OUTPUT = 1,
477}
478impl From<PIO16_AW> for bool {
479    #[inline(always)]
480    fn from(variant: PIO16_AW) -> Self {
481        variant as u8 != 0
482    }
483}
484#[doc = "Field `PIO16` writer - Sets pin direction to output for pin PIOn_16."]
485pub type PIO16_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO16_AW, O>;
486impl<'a, const O: u8> PIO16_W<'a, O> {
487    #[doc = "Pin direction is unchanged."]
488    #[inline(always)]
489    pub fn unchanged(self) -> &'a mut W {
490        self.variant(PIO16_AW::UNCHANGED)
491    }
492    #[doc = "Pin direction is set to output."]
493    #[inline(always)]
494    pub fn set_output(self) -> &'a mut W {
495        self.variant(PIO16_AW::SET_OUTPUT)
496    }
497}
498#[doc = "Sets pin direction to output for pin PIOn_17.\n\nValue on reset: 0"]
499#[derive(Clone, Copy, Debug, PartialEq, Eq)]
500pub enum PIO17_AW {
501    #[doc = "0: Pin direction is unchanged."]
502    UNCHANGED = 0,
503    #[doc = "1: Pin direction is set to output."]
504    SET_OUTPUT = 1,
505}
506impl From<PIO17_AW> for bool {
507    #[inline(always)]
508    fn from(variant: PIO17_AW) -> Self {
509        variant as u8 != 0
510    }
511}
512#[doc = "Field `PIO17` writer - Sets pin direction to output for pin PIOn_17."]
513pub type PIO17_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO17_AW, O>;
514impl<'a, const O: u8> PIO17_W<'a, O> {
515    #[doc = "Pin direction is unchanged."]
516    #[inline(always)]
517    pub fn unchanged(self) -> &'a mut W {
518        self.variant(PIO17_AW::UNCHANGED)
519    }
520    #[doc = "Pin direction is set to output."]
521    #[inline(always)]
522    pub fn set_output(self) -> &'a mut W {
523        self.variant(PIO17_AW::SET_OUTPUT)
524    }
525}
526#[doc = "Sets pin direction to output for pin PIOn_18.\n\nValue on reset: 0"]
527#[derive(Clone, Copy, Debug, PartialEq, Eq)]
528pub enum PIO18_AW {
529    #[doc = "0: Pin direction is unchanged."]
530    UNCHANGED = 0,
531    #[doc = "1: Pin direction is set to output."]
532    SET_OUTPUT = 1,
533}
534impl From<PIO18_AW> for bool {
535    #[inline(always)]
536    fn from(variant: PIO18_AW) -> Self {
537        variant as u8 != 0
538    }
539}
540#[doc = "Field `PIO18` writer - Sets pin direction to output for pin PIOn_18."]
541pub type PIO18_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO18_AW, O>;
542impl<'a, const O: u8> PIO18_W<'a, O> {
543    #[doc = "Pin direction is unchanged."]
544    #[inline(always)]
545    pub fn unchanged(self) -> &'a mut W {
546        self.variant(PIO18_AW::UNCHANGED)
547    }
548    #[doc = "Pin direction is set to output."]
549    #[inline(always)]
550    pub fn set_output(self) -> &'a mut W {
551        self.variant(PIO18_AW::SET_OUTPUT)
552    }
553}
554#[doc = "Sets pin direction to output for pin PIOn_19.\n\nValue on reset: 0"]
555#[derive(Clone, Copy, Debug, PartialEq, Eq)]
556pub enum PIO19_AW {
557    #[doc = "0: Pin direction is unchanged."]
558    UNCHANGED = 0,
559    #[doc = "1: Pin direction is set to output."]
560    SET_OUTPUT = 1,
561}
562impl From<PIO19_AW> for bool {
563    #[inline(always)]
564    fn from(variant: PIO19_AW) -> Self {
565        variant as u8 != 0
566    }
567}
568#[doc = "Field `PIO19` writer - Sets pin direction to output for pin PIOn_19."]
569pub type PIO19_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO19_AW, O>;
570impl<'a, const O: u8> PIO19_W<'a, O> {
571    #[doc = "Pin direction is unchanged."]
572    #[inline(always)]
573    pub fn unchanged(self) -> &'a mut W {
574        self.variant(PIO19_AW::UNCHANGED)
575    }
576    #[doc = "Pin direction is set to output."]
577    #[inline(always)]
578    pub fn set_output(self) -> &'a mut W {
579        self.variant(PIO19_AW::SET_OUTPUT)
580    }
581}
582#[doc = "Sets pin direction to output for pin PIOn_20.\n\nValue on reset: 0"]
583#[derive(Clone, Copy, Debug, PartialEq, Eq)]
584pub enum PIO20_AW {
585    #[doc = "0: Pin direction is unchanged."]
586    UNCHANGED = 0,
587    #[doc = "1: Pin direction is set to output."]
588    SET_OUTPUT = 1,
589}
590impl From<PIO20_AW> for bool {
591    #[inline(always)]
592    fn from(variant: PIO20_AW) -> Self {
593        variant as u8 != 0
594    }
595}
596#[doc = "Field `PIO20` writer - Sets pin direction to output for pin PIOn_20."]
597pub type PIO20_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO20_AW, O>;
598impl<'a, const O: u8> PIO20_W<'a, O> {
599    #[doc = "Pin direction is unchanged."]
600    #[inline(always)]
601    pub fn unchanged(self) -> &'a mut W {
602        self.variant(PIO20_AW::UNCHANGED)
603    }
604    #[doc = "Pin direction is set to output."]
605    #[inline(always)]
606    pub fn set_output(self) -> &'a mut W {
607        self.variant(PIO20_AW::SET_OUTPUT)
608    }
609}
610#[doc = "Sets pin direction to output for pin PIOn_21.\n\nValue on reset: 0"]
611#[derive(Clone, Copy, Debug, PartialEq, Eq)]
612pub enum PIO21_AW {
613    #[doc = "0: Pin direction is unchanged."]
614    UNCHANGED = 0,
615    #[doc = "1: Pin direction is set to output."]
616    SET_OUTPUT = 1,
617}
618impl From<PIO21_AW> for bool {
619    #[inline(always)]
620    fn from(variant: PIO21_AW) -> Self {
621        variant as u8 != 0
622    }
623}
624#[doc = "Field `PIO21` writer - Sets pin direction to output for pin PIOn_21."]
625pub type PIO21_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO21_AW, O>;
626impl<'a, const O: u8> PIO21_W<'a, O> {
627    #[doc = "Pin direction is unchanged."]
628    #[inline(always)]
629    pub fn unchanged(self) -> &'a mut W {
630        self.variant(PIO21_AW::UNCHANGED)
631    }
632    #[doc = "Pin direction is set to output."]
633    #[inline(always)]
634    pub fn set_output(self) -> &'a mut W {
635        self.variant(PIO21_AW::SET_OUTPUT)
636    }
637}
638#[doc = "Sets pin direction to output for pin PIOn_22.\n\nValue on reset: 0"]
639#[derive(Clone, Copy, Debug, PartialEq, Eq)]
640pub enum PIO22_AW {
641    #[doc = "0: Pin direction is unchanged."]
642    UNCHANGED = 0,
643    #[doc = "1: Pin direction is set to output."]
644    SET_OUTPUT = 1,
645}
646impl From<PIO22_AW> for bool {
647    #[inline(always)]
648    fn from(variant: PIO22_AW) -> Self {
649        variant as u8 != 0
650    }
651}
652#[doc = "Field `PIO22` writer - Sets pin direction to output for pin PIOn_22."]
653pub type PIO22_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO22_AW, O>;
654impl<'a, const O: u8> PIO22_W<'a, O> {
655    #[doc = "Pin direction is unchanged."]
656    #[inline(always)]
657    pub fn unchanged(self) -> &'a mut W {
658        self.variant(PIO22_AW::UNCHANGED)
659    }
660    #[doc = "Pin direction is set to output."]
661    #[inline(always)]
662    pub fn set_output(self) -> &'a mut W {
663        self.variant(PIO22_AW::SET_OUTPUT)
664    }
665}
666#[doc = "Sets pin direction to output for pin PIOn_23.\n\nValue on reset: 0"]
667#[derive(Clone, Copy, Debug, PartialEq, Eq)]
668pub enum PIO23_AW {
669    #[doc = "0: Pin direction is unchanged."]
670    UNCHANGED = 0,
671    #[doc = "1: Pin direction is set to output."]
672    SET_OUTPUT = 1,
673}
674impl From<PIO23_AW> for bool {
675    #[inline(always)]
676    fn from(variant: PIO23_AW) -> Self {
677        variant as u8 != 0
678    }
679}
680#[doc = "Field `PIO23` writer - Sets pin direction to output for pin PIOn_23."]
681pub type PIO23_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO23_AW, O>;
682impl<'a, const O: u8> PIO23_W<'a, O> {
683    #[doc = "Pin direction is unchanged."]
684    #[inline(always)]
685    pub fn unchanged(self) -> &'a mut W {
686        self.variant(PIO23_AW::UNCHANGED)
687    }
688    #[doc = "Pin direction is set to output."]
689    #[inline(always)]
690    pub fn set_output(self) -> &'a mut W {
691        self.variant(PIO23_AW::SET_OUTPUT)
692    }
693}
694#[doc = "Sets pin direction to output for pin PIOn_24.\n\nValue on reset: 0"]
695#[derive(Clone, Copy, Debug, PartialEq, Eq)]
696pub enum PIO24_AW {
697    #[doc = "0: Pin direction is unchanged."]
698    UNCHANGED = 0,
699    #[doc = "1: Pin direction is set to output."]
700    SET_OUTPUT = 1,
701}
702impl From<PIO24_AW> for bool {
703    #[inline(always)]
704    fn from(variant: PIO24_AW) -> Self {
705        variant as u8 != 0
706    }
707}
708#[doc = "Field `PIO24` writer - Sets pin direction to output for pin PIOn_24."]
709pub type PIO24_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO24_AW, O>;
710impl<'a, const O: u8> PIO24_W<'a, O> {
711    #[doc = "Pin direction is unchanged."]
712    #[inline(always)]
713    pub fn unchanged(self) -> &'a mut W {
714        self.variant(PIO24_AW::UNCHANGED)
715    }
716    #[doc = "Pin direction is set to output."]
717    #[inline(always)]
718    pub fn set_output(self) -> &'a mut W {
719        self.variant(PIO24_AW::SET_OUTPUT)
720    }
721}
722#[doc = "Sets pin direction to output for pin PIOn_25.\n\nValue on reset: 0"]
723#[derive(Clone, Copy, Debug, PartialEq, Eq)]
724pub enum PIO25_AW {
725    #[doc = "0: Pin direction is unchanged."]
726    UNCHANGED = 0,
727    #[doc = "1: Pin direction is set to output."]
728    SET_OUTPUT = 1,
729}
730impl From<PIO25_AW> for bool {
731    #[inline(always)]
732    fn from(variant: PIO25_AW) -> Self {
733        variant as u8 != 0
734    }
735}
736#[doc = "Field `PIO25` writer - Sets pin direction to output for pin PIOn_25."]
737pub type PIO25_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO25_AW, O>;
738impl<'a, const O: u8> PIO25_W<'a, O> {
739    #[doc = "Pin direction is unchanged."]
740    #[inline(always)]
741    pub fn unchanged(self) -> &'a mut W {
742        self.variant(PIO25_AW::UNCHANGED)
743    }
744    #[doc = "Pin direction is set to output."]
745    #[inline(always)]
746    pub fn set_output(self) -> &'a mut W {
747        self.variant(PIO25_AW::SET_OUTPUT)
748    }
749}
750#[doc = "Sets pin direction to output for pin PIOn_26.\n\nValue on reset: 0"]
751#[derive(Clone, Copy, Debug, PartialEq, Eq)]
752pub enum PIO26_AW {
753    #[doc = "0: Pin direction is unchanged."]
754    UNCHANGED = 0,
755    #[doc = "1: Pin direction is set to output."]
756    SET_OUTPUT = 1,
757}
758impl From<PIO26_AW> for bool {
759    #[inline(always)]
760    fn from(variant: PIO26_AW) -> Self {
761        variant as u8 != 0
762    }
763}
764#[doc = "Field `PIO26` writer - Sets pin direction to output for pin PIOn_26."]
765pub type PIO26_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO26_AW, O>;
766impl<'a, const O: u8> PIO26_W<'a, O> {
767    #[doc = "Pin direction is unchanged."]
768    #[inline(always)]
769    pub fn unchanged(self) -> &'a mut W {
770        self.variant(PIO26_AW::UNCHANGED)
771    }
772    #[doc = "Pin direction is set to output."]
773    #[inline(always)]
774    pub fn set_output(self) -> &'a mut W {
775        self.variant(PIO26_AW::SET_OUTPUT)
776    }
777}
778#[doc = "Sets pin direction to output for pin PIOn_27.\n\nValue on reset: 0"]
779#[derive(Clone, Copy, Debug, PartialEq, Eq)]
780pub enum PIO27_AW {
781    #[doc = "0: Pin direction is unchanged."]
782    UNCHANGED = 0,
783    #[doc = "1: Pin direction is set to output."]
784    SET_OUTPUT = 1,
785}
786impl From<PIO27_AW> for bool {
787    #[inline(always)]
788    fn from(variant: PIO27_AW) -> Self {
789        variant as u8 != 0
790    }
791}
792#[doc = "Field `PIO27` writer - Sets pin direction to output for pin PIOn_27."]
793pub type PIO27_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO27_AW, O>;
794impl<'a, const O: u8> PIO27_W<'a, O> {
795    #[doc = "Pin direction is unchanged."]
796    #[inline(always)]
797    pub fn unchanged(self) -> &'a mut W {
798        self.variant(PIO27_AW::UNCHANGED)
799    }
800    #[doc = "Pin direction is set to output."]
801    #[inline(always)]
802    pub fn set_output(self) -> &'a mut W {
803        self.variant(PIO27_AW::SET_OUTPUT)
804    }
805}
806#[doc = "Sets pin direction to output for pin PIOn_28.\n\nValue on reset: 0"]
807#[derive(Clone, Copy, Debug, PartialEq, Eq)]
808pub enum PIO28_AW {
809    #[doc = "0: Pin direction is unchanged."]
810    UNCHANGED = 0,
811    #[doc = "1: Pin direction is set to output."]
812    SET_OUTPUT = 1,
813}
814impl From<PIO28_AW> for bool {
815    #[inline(always)]
816    fn from(variant: PIO28_AW) -> Self {
817        variant as u8 != 0
818    }
819}
820#[doc = "Field `PIO28` writer - Sets pin direction to output for pin PIOn_28."]
821pub type PIO28_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO28_AW, O>;
822impl<'a, const O: u8> PIO28_W<'a, O> {
823    #[doc = "Pin direction is unchanged."]
824    #[inline(always)]
825    pub fn unchanged(self) -> &'a mut W {
826        self.variant(PIO28_AW::UNCHANGED)
827    }
828    #[doc = "Pin direction is set to output."]
829    #[inline(always)]
830    pub fn set_output(self) -> &'a mut W {
831        self.variant(PIO28_AW::SET_OUTPUT)
832    }
833}
834#[doc = "Sets pin direction to output for pin PIOn_29.\n\nValue on reset: 0"]
835#[derive(Clone, Copy, Debug, PartialEq, Eq)]
836pub enum PIO29_AW {
837    #[doc = "0: Pin direction is unchanged."]
838    UNCHANGED = 0,
839    #[doc = "1: Pin direction is set to output."]
840    SET_OUTPUT = 1,
841}
842impl From<PIO29_AW> for bool {
843    #[inline(always)]
844    fn from(variant: PIO29_AW) -> Self {
845        variant as u8 != 0
846    }
847}
848#[doc = "Field `PIO29` writer - Sets pin direction to output for pin PIOn_29."]
849pub type PIO29_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO29_AW, O>;
850impl<'a, const O: u8> PIO29_W<'a, O> {
851    #[doc = "Pin direction is unchanged."]
852    #[inline(always)]
853    pub fn unchanged(self) -> &'a mut W {
854        self.variant(PIO29_AW::UNCHANGED)
855    }
856    #[doc = "Pin direction is set to output."]
857    #[inline(always)]
858    pub fn set_output(self) -> &'a mut W {
859        self.variant(PIO29_AW::SET_OUTPUT)
860    }
861}
862#[doc = "Sets pin direction to output for pin PIOn_30.\n\nValue on reset: 0"]
863#[derive(Clone, Copy, Debug, PartialEq, Eq)]
864pub enum PIO30_AW {
865    #[doc = "0: Pin direction is unchanged."]
866    UNCHANGED = 0,
867    #[doc = "1: Pin direction is set to output."]
868    SET_OUTPUT = 1,
869}
870impl From<PIO30_AW> for bool {
871    #[inline(always)]
872    fn from(variant: PIO30_AW) -> Self {
873        variant as u8 != 0
874    }
875}
876#[doc = "Field `PIO30` writer - Sets pin direction to output for pin PIOn_30."]
877pub type PIO30_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO30_AW, O>;
878impl<'a, const O: u8> PIO30_W<'a, O> {
879    #[doc = "Pin direction is unchanged."]
880    #[inline(always)]
881    pub fn unchanged(self) -> &'a mut W {
882        self.variant(PIO30_AW::UNCHANGED)
883    }
884    #[doc = "Pin direction is set to output."]
885    #[inline(always)]
886    pub fn set_output(self) -> &'a mut W {
887        self.variant(PIO30_AW::SET_OUTPUT)
888    }
889}
890#[doc = "Sets pin direction to output for pin PIOn_31.\n\nValue on reset: 0"]
891#[derive(Clone, Copy, Debug, PartialEq, Eq)]
892pub enum PIO31_AW {
893    #[doc = "0: Pin direction is unchanged."]
894    UNCHANGED = 0,
895    #[doc = "1: Pin direction is set to output."]
896    SET_OUTPUT = 1,
897}
898impl From<PIO31_AW> for bool {
899    #[inline(always)]
900    fn from(variant: PIO31_AW) -> Self {
901        variant as u8 != 0
902    }
903}
904#[doc = "Field `PIO31` writer - Sets pin direction to output for pin PIOn_31."]
905pub type PIO31_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIRSET_SPEC, PIO31_AW, O>;
906impl<'a, const O: u8> PIO31_W<'a, O> {
907    #[doc = "Pin direction is unchanged."]
908    #[inline(always)]
909    pub fn unchanged(self) -> &'a mut W {
910        self.variant(PIO31_AW::UNCHANGED)
911    }
912    #[doc = "Pin direction is set to output."]
913    #[inline(always)]
914    pub fn set_output(self) -> &'a mut W {
915        self.variant(PIO31_AW::SET_OUTPUT)
916    }
917}
918impl W {
919    #[doc = "Bit 0 - Sets pin direction to output for pin PIOn_0."]
920    #[inline(always)]
921    pub fn pio0(&mut self) -> PIO0_W<0> {
922        PIO0_W::new(self)
923    }
924    #[doc = "Bit 1 - Sets pin direction to output for pin PIOn_1."]
925    #[inline(always)]
926    pub fn pio1(&mut self) -> PIO1_W<1> {
927        PIO1_W::new(self)
928    }
929    #[doc = "Bit 2 - Sets pin direction to output for pin PIOn_2."]
930    #[inline(always)]
931    pub fn pio2(&mut self) -> PIO2_W<2> {
932        PIO2_W::new(self)
933    }
934    #[doc = "Bit 3 - Sets pin direction to output for pin PIOn_3."]
935    #[inline(always)]
936    pub fn pio3(&mut self) -> PIO3_W<3> {
937        PIO3_W::new(self)
938    }
939    #[doc = "Bit 4 - Sets pin direction to output for pin PIOn_4."]
940    #[inline(always)]
941    pub fn pio4(&mut self) -> PIO4_W<4> {
942        PIO4_W::new(self)
943    }
944    #[doc = "Bit 5 - Sets pin direction to output for pin PIOn_5."]
945    #[inline(always)]
946    pub fn pio5(&mut self) -> PIO5_W<5> {
947        PIO5_W::new(self)
948    }
949    #[doc = "Bit 6 - Sets pin direction to output for pin PIOn_6."]
950    #[inline(always)]
951    pub fn pio6(&mut self) -> PIO6_W<6> {
952        PIO6_W::new(self)
953    }
954    #[doc = "Bit 7 - Sets pin direction to output for pin PIOn_7."]
955    #[inline(always)]
956    pub fn pio7(&mut self) -> PIO7_W<7> {
957        PIO7_W::new(self)
958    }
959    #[doc = "Bit 8 - Sets pin direction to output for pin PIOn_8."]
960    #[inline(always)]
961    pub fn pio8(&mut self) -> PIO8_W<8> {
962        PIO8_W::new(self)
963    }
964    #[doc = "Bit 9 - Sets pin direction to output for pin PIOn_9."]
965    #[inline(always)]
966    pub fn pio9(&mut self) -> PIO9_W<9> {
967        PIO9_W::new(self)
968    }
969    #[doc = "Bit 10 - Sets pin direction to output for pin PIOn_10."]
970    #[inline(always)]
971    pub fn pio10(&mut self) -> PIO10_W<10> {
972        PIO10_W::new(self)
973    }
974    #[doc = "Bit 11 - Sets pin direction to output for pin PIOn_11."]
975    #[inline(always)]
976    pub fn pio11(&mut self) -> PIO11_W<11> {
977        PIO11_W::new(self)
978    }
979    #[doc = "Bit 12 - Sets pin direction to output for pin PIOn_12."]
980    #[inline(always)]
981    pub fn pio12(&mut self) -> PIO12_W<12> {
982        PIO12_W::new(self)
983    }
984    #[doc = "Bit 13 - Sets pin direction to output for pin PIOn_13."]
985    #[inline(always)]
986    pub fn pio13(&mut self) -> PIO13_W<13> {
987        PIO13_W::new(self)
988    }
989    #[doc = "Bit 14 - Sets pin direction to output for pin PIOn_14."]
990    #[inline(always)]
991    pub fn pio14(&mut self) -> PIO14_W<14> {
992        PIO14_W::new(self)
993    }
994    #[doc = "Bit 15 - Sets pin direction to output for pin PIOn_15."]
995    #[inline(always)]
996    pub fn pio15(&mut self) -> PIO15_W<15> {
997        PIO15_W::new(self)
998    }
999    #[doc = "Bit 16 - Sets pin direction to output for pin PIOn_16."]
1000    #[inline(always)]
1001    pub fn pio16(&mut self) -> PIO16_W<16> {
1002        PIO16_W::new(self)
1003    }
1004    #[doc = "Bit 17 - Sets pin direction to output for pin PIOn_17."]
1005    #[inline(always)]
1006    pub fn pio17(&mut self) -> PIO17_W<17> {
1007        PIO17_W::new(self)
1008    }
1009    #[doc = "Bit 18 - Sets pin direction to output for pin PIOn_18."]
1010    #[inline(always)]
1011    pub fn pio18(&mut self) -> PIO18_W<18> {
1012        PIO18_W::new(self)
1013    }
1014    #[doc = "Bit 19 - Sets pin direction to output for pin PIOn_19."]
1015    #[inline(always)]
1016    pub fn pio19(&mut self) -> PIO19_W<19> {
1017        PIO19_W::new(self)
1018    }
1019    #[doc = "Bit 20 - Sets pin direction to output for pin PIOn_20."]
1020    #[inline(always)]
1021    pub fn pio20(&mut self) -> PIO20_W<20> {
1022        PIO20_W::new(self)
1023    }
1024    #[doc = "Bit 21 - Sets pin direction to output for pin PIOn_21."]
1025    #[inline(always)]
1026    pub fn pio21(&mut self) -> PIO21_W<21> {
1027        PIO21_W::new(self)
1028    }
1029    #[doc = "Bit 22 - Sets pin direction to output for pin PIOn_22."]
1030    #[inline(always)]
1031    pub fn pio22(&mut self) -> PIO22_W<22> {
1032        PIO22_W::new(self)
1033    }
1034    #[doc = "Bit 23 - Sets pin direction to output for pin PIOn_23."]
1035    #[inline(always)]
1036    pub fn pio23(&mut self) -> PIO23_W<23> {
1037        PIO23_W::new(self)
1038    }
1039    #[doc = "Bit 24 - Sets pin direction to output for pin PIOn_24."]
1040    #[inline(always)]
1041    pub fn pio24(&mut self) -> PIO24_W<24> {
1042        PIO24_W::new(self)
1043    }
1044    #[doc = "Bit 25 - Sets pin direction to output for pin PIOn_25."]
1045    #[inline(always)]
1046    pub fn pio25(&mut self) -> PIO25_W<25> {
1047        PIO25_W::new(self)
1048    }
1049    #[doc = "Bit 26 - Sets pin direction to output for pin PIOn_26."]
1050    #[inline(always)]
1051    pub fn pio26(&mut self) -> PIO26_W<26> {
1052        PIO26_W::new(self)
1053    }
1054    #[doc = "Bit 27 - Sets pin direction to output for pin PIOn_27."]
1055    #[inline(always)]
1056    pub fn pio27(&mut self) -> PIO27_W<27> {
1057        PIO27_W::new(self)
1058    }
1059    #[doc = "Bit 28 - Sets pin direction to output for pin PIOn_28."]
1060    #[inline(always)]
1061    pub fn pio28(&mut self) -> PIO28_W<28> {
1062        PIO28_W::new(self)
1063    }
1064    #[doc = "Bit 29 - Sets pin direction to output for pin PIOn_29."]
1065    #[inline(always)]
1066    pub fn pio29(&mut self) -> PIO29_W<29> {
1067        PIO29_W::new(self)
1068    }
1069    #[doc = "Bit 30 - Sets pin direction to output for pin PIOn_30."]
1070    #[inline(always)]
1071    pub fn pio30(&mut self) -> PIO30_W<30> {
1072        PIO30_W::new(self)
1073    }
1074    #[doc = "Bit 31 - Sets pin direction to output for pin PIOn_31."]
1075    #[inline(always)]
1076    pub fn pio31(&mut self) -> PIO31_W<31> {
1077        PIO31_W::new(self)
1078    }
1079    #[doc = "Writes raw bits to the register."]
1080    #[inline(always)]
1081    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1082        self.0.bits(bits);
1083        self
1084    }
1085}
1086#[doc = "Set pin direction bits for port.\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dirset](index.html) module"]
1087pub struct DIRSET_SPEC;
1088impl crate::RegisterSpec for DIRSET_SPEC {
1089    type Ux = u32;
1090}
1091#[doc = "`write(|w| ..)` method takes [dirset::W](W) writer structure"]
1092impl crate::Writable for DIRSET_SPEC {
1093    type Writer = W;
1094}
1095#[doc = "`reset()` method sets DIRSET[%s]
1096to value 0"]
1097impl crate::Resettable for DIRSET_SPEC {
1098    #[inline(always)]
1099    fn reset_value() -> Self::Ux {
1100        0
1101    }
1102}