k64/axbs/
prs.rs

1#[doc = r" Value read from the register"]
2pub struct R {
3    bits: u32,
4}
5#[doc = r" Value to write to the register"]
6pub struct W {
7    bits: u32,
8}
9impl super::PRS {
10    #[doc = r" Modifies the contents of the register"]
11    #[inline]
12    pub fn modify<F>(&self, f: F)
13    where
14        for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
15    {
16        let bits = self.register.get();
17        let r = R { bits: bits };
18        let mut w = W { bits: bits };
19        f(&r, &mut w);
20        self.register.set(w.bits);
21    }
22    #[doc = r" Reads the contents of the register"]
23    #[inline]
24    pub fn read(&self) -> R {
25        R {
26            bits: self.register.get(),
27        }
28    }
29    #[doc = r" Writes to the register"]
30    #[inline]
31    pub fn write<F>(&self, f: F)
32    where
33        F: FnOnce(&mut W) -> &mut W,
34    {
35        let mut w = W::reset_value();
36        f(&mut w);
37        self.register.set(w.bits);
38    }
39    #[doc = r" Writes the reset value to the register"]
40    #[inline]
41    pub fn reset(&self) {
42        self.write(|w| w)
43    }
44}
45#[doc = "Possible values of the field `M0`"]
46#[derive(Clone, Copy, Debug, PartialEq)]
47pub enum M0R {
48    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
49    _000,
50    #[doc = "This master has level 2 priority when accessing the slave port."]
51    _001,
52    #[doc = "This master has level 3 priority when accessing the slave port."]
53    _010,
54    #[doc = "This master has level 4 priority when accessing the slave port."]
55    _011,
56    #[doc = "This master has level 5 priority when accessing the slave port."]
57    _100,
58    #[doc = "This master has level 6 priority when accessing the slave port."]
59    _101,
60    #[doc = "This master has level 7 priority when accessing the slave port."]
61    _110,
62    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
63    _111,
64}
65impl M0R {
66    #[doc = r" Value of the field as raw bits"]
67    #[inline]
68    pub fn bits(&self) -> u8 {
69        match *self {
70            M0R::_000 => 0,
71            M0R::_001 => 1,
72            M0R::_010 => 2,
73            M0R::_011 => 3,
74            M0R::_100 => 4,
75            M0R::_101 => 5,
76            M0R::_110 => 6,
77            M0R::_111 => 7,
78        }
79    }
80    #[allow(missing_docs)]
81    #[doc(hidden)]
82    #[inline]
83    pub fn _from(value: u8) -> M0R {
84        match value {
85            0 => M0R::_000,
86            1 => M0R::_001,
87            2 => M0R::_010,
88            3 => M0R::_011,
89            4 => M0R::_100,
90            5 => M0R::_101,
91            6 => M0R::_110,
92            7 => M0R::_111,
93            _ => unreachable!(),
94        }
95    }
96    #[doc = "Checks if the value of the field is `_000`"]
97    #[inline]
98    pub fn is_000(&self) -> bool {
99        *self == M0R::_000
100    }
101    #[doc = "Checks if the value of the field is `_001`"]
102    #[inline]
103    pub fn is_001(&self) -> bool {
104        *self == M0R::_001
105    }
106    #[doc = "Checks if the value of the field is `_010`"]
107    #[inline]
108    pub fn is_010(&self) -> bool {
109        *self == M0R::_010
110    }
111    #[doc = "Checks if the value of the field is `_011`"]
112    #[inline]
113    pub fn is_011(&self) -> bool {
114        *self == M0R::_011
115    }
116    #[doc = "Checks if the value of the field is `_100`"]
117    #[inline]
118    pub fn is_100(&self) -> bool {
119        *self == M0R::_100
120    }
121    #[doc = "Checks if the value of the field is `_101`"]
122    #[inline]
123    pub fn is_101(&self) -> bool {
124        *self == M0R::_101
125    }
126    #[doc = "Checks if the value of the field is `_110`"]
127    #[inline]
128    pub fn is_110(&self) -> bool {
129        *self == M0R::_110
130    }
131    #[doc = "Checks if the value of the field is `_111`"]
132    #[inline]
133    pub fn is_111(&self) -> bool {
134        *self == M0R::_111
135    }
136}
137#[doc = "Possible values of the field `M1`"]
138#[derive(Clone, Copy, Debug, PartialEq)]
139pub enum M1R {
140    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
141    _000,
142    #[doc = "This master has level 2 priority when accessing the slave port."]
143    _001,
144    #[doc = "This master has level 3 priority when accessing the slave port."]
145    _010,
146    #[doc = "This master has level 4 priority when accessing the slave port."]
147    _011,
148    #[doc = "This master has level 5 priority when accessing the slave port."]
149    _100,
150    #[doc = "This master has level 6 priority when accessing the slave port."]
151    _101,
152    #[doc = "This master has level 7 priority when accessing the slave port."]
153    _110,
154    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
155    _111,
156}
157impl M1R {
158    #[doc = r" Value of the field as raw bits"]
159    #[inline]
160    pub fn bits(&self) -> u8 {
161        match *self {
162            M1R::_000 => 0,
163            M1R::_001 => 1,
164            M1R::_010 => 2,
165            M1R::_011 => 3,
166            M1R::_100 => 4,
167            M1R::_101 => 5,
168            M1R::_110 => 6,
169            M1R::_111 => 7,
170        }
171    }
172    #[allow(missing_docs)]
173    #[doc(hidden)]
174    #[inline]
175    pub fn _from(value: u8) -> M1R {
176        match value {
177            0 => M1R::_000,
178            1 => M1R::_001,
179            2 => M1R::_010,
180            3 => M1R::_011,
181            4 => M1R::_100,
182            5 => M1R::_101,
183            6 => M1R::_110,
184            7 => M1R::_111,
185            _ => unreachable!(),
186        }
187    }
188    #[doc = "Checks if the value of the field is `_000`"]
189    #[inline]
190    pub fn is_000(&self) -> bool {
191        *self == M1R::_000
192    }
193    #[doc = "Checks if the value of the field is `_001`"]
194    #[inline]
195    pub fn is_001(&self) -> bool {
196        *self == M1R::_001
197    }
198    #[doc = "Checks if the value of the field is `_010`"]
199    #[inline]
200    pub fn is_010(&self) -> bool {
201        *self == M1R::_010
202    }
203    #[doc = "Checks if the value of the field is `_011`"]
204    #[inline]
205    pub fn is_011(&self) -> bool {
206        *self == M1R::_011
207    }
208    #[doc = "Checks if the value of the field is `_100`"]
209    #[inline]
210    pub fn is_100(&self) -> bool {
211        *self == M1R::_100
212    }
213    #[doc = "Checks if the value of the field is `_101`"]
214    #[inline]
215    pub fn is_101(&self) -> bool {
216        *self == M1R::_101
217    }
218    #[doc = "Checks if the value of the field is `_110`"]
219    #[inline]
220    pub fn is_110(&self) -> bool {
221        *self == M1R::_110
222    }
223    #[doc = "Checks if the value of the field is `_111`"]
224    #[inline]
225    pub fn is_111(&self) -> bool {
226        *self == M1R::_111
227    }
228}
229#[doc = "Possible values of the field `M2`"]
230#[derive(Clone, Copy, Debug, PartialEq)]
231pub enum M2R {
232    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
233    _000,
234    #[doc = "This master has level 2 priority when accessing the slave port."]
235    _001,
236    #[doc = "This master has level 3 priority when accessing the slave port."]
237    _010,
238    #[doc = "This master has level 4 priority when accessing the slave port."]
239    _011,
240    #[doc = "This master has level 5 priority when accessing the slave port."]
241    _100,
242    #[doc = "This master has level 6 priority when accessing the slave port."]
243    _101,
244    #[doc = "This master has level 7 priority when accessing the slave port."]
245    _110,
246    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
247    _111,
248}
249impl M2R {
250    #[doc = r" Value of the field as raw bits"]
251    #[inline]
252    pub fn bits(&self) -> u8 {
253        match *self {
254            M2R::_000 => 0,
255            M2R::_001 => 1,
256            M2R::_010 => 2,
257            M2R::_011 => 3,
258            M2R::_100 => 4,
259            M2R::_101 => 5,
260            M2R::_110 => 6,
261            M2R::_111 => 7,
262        }
263    }
264    #[allow(missing_docs)]
265    #[doc(hidden)]
266    #[inline]
267    pub fn _from(value: u8) -> M2R {
268        match value {
269            0 => M2R::_000,
270            1 => M2R::_001,
271            2 => M2R::_010,
272            3 => M2R::_011,
273            4 => M2R::_100,
274            5 => M2R::_101,
275            6 => M2R::_110,
276            7 => M2R::_111,
277            _ => unreachable!(),
278        }
279    }
280    #[doc = "Checks if the value of the field is `_000`"]
281    #[inline]
282    pub fn is_000(&self) -> bool {
283        *self == M2R::_000
284    }
285    #[doc = "Checks if the value of the field is `_001`"]
286    #[inline]
287    pub fn is_001(&self) -> bool {
288        *self == M2R::_001
289    }
290    #[doc = "Checks if the value of the field is `_010`"]
291    #[inline]
292    pub fn is_010(&self) -> bool {
293        *self == M2R::_010
294    }
295    #[doc = "Checks if the value of the field is `_011`"]
296    #[inline]
297    pub fn is_011(&self) -> bool {
298        *self == M2R::_011
299    }
300    #[doc = "Checks if the value of the field is `_100`"]
301    #[inline]
302    pub fn is_100(&self) -> bool {
303        *self == M2R::_100
304    }
305    #[doc = "Checks if the value of the field is `_101`"]
306    #[inline]
307    pub fn is_101(&self) -> bool {
308        *self == M2R::_101
309    }
310    #[doc = "Checks if the value of the field is `_110`"]
311    #[inline]
312    pub fn is_110(&self) -> bool {
313        *self == M2R::_110
314    }
315    #[doc = "Checks if the value of the field is `_111`"]
316    #[inline]
317    pub fn is_111(&self) -> bool {
318        *self == M2R::_111
319    }
320}
321#[doc = "Possible values of the field `M3`"]
322#[derive(Clone, Copy, Debug, PartialEq)]
323pub enum M3R {
324    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
325    _000,
326    #[doc = "This master has level 2 priority when accessing the slave port."]
327    _001,
328    #[doc = "This master has level 3 priority when accessing the slave port."]
329    _010,
330    #[doc = "This master has level 4 priority when accessing the slave port."]
331    _011,
332    #[doc = "This master has level 5 priority when accessing the slave port."]
333    _100,
334    #[doc = "This master has level 6 priority when accessing the slave port."]
335    _101,
336    #[doc = "This master has level 7 priority when accessing the slave port."]
337    _110,
338    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
339    _111,
340}
341impl M3R {
342    #[doc = r" Value of the field as raw bits"]
343    #[inline]
344    pub fn bits(&self) -> u8 {
345        match *self {
346            M3R::_000 => 0,
347            M3R::_001 => 1,
348            M3R::_010 => 2,
349            M3R::_011 => 3,
350            M3R::_100 => 4,
351            M3R::_101 => 5,
352            M3R::_110 => 6,
353            M3R::_111 => 7,
354        }
355    }
356    #[allow(missing_docs)]
357    #[doc(hidden)]
358    #[inline]
359    pub fn _from(value: u8) -> M3R {
360        match value {
361            0 => M3R::_000,
362            1 => M3R::_001,
363            2 => M3R::_010,
364            3 => M3R::_011,
365            4 => M3R::_100,
366            5 => M3R::_101,
367            6 => M3R::_110,
368            7 => M3R::_111,
369            _ => unreachable!(),
370        }
371    }
372    #[doc = "Checks if the value of the field is `_000`"]
373    #[inline]
374    pub fn is_000(&self) -> bool {
375        *self == M3R::_000
376    }
377    #[doc = "Checks if the value of the field is `_001`"]
378    #[inline]
379    pub fn is_001(&self) -> bool {
380        *self == M3R::_001
381    }
382    #[doc = "Checks if the value of the field is `_010`"]
383    #[inline]
384    pub fn is_010(&self) -> bool {
385        *self == M3R::_010
386    }
387    #[doc = "Checks if the value of the field is `_011`"]
388    #[inline]
389    pub fn is_011(&self) -> bool {
390        *self == M3R::_011
391    }
392    #[doc = "Checks if the value of the field is `_100`"]
393    #[inline]
394    pub fn is_100(&self) -> bool {
395        *self == M3R::_100
396    }
397    #[doc = "Checks if the value of the field is `_101`"]
398    #[inline]
399    pub fn is_101(&self) -> bool {
400        *self == M3R::_101
401    }
402    #[doc = "Checks if the value of the field is `_110`"]
403    #[inline]
404    pub fn is_110(&self) -> bool {
405        *self == M3R::_110
406    }
407    #[doc = "Checks if the value of the field is `_111`"]
408    #[inline]
409    pub fn is_111(&self) -> bool {
410        *self == M3R::_111
411    }
412}
413#[doc = "Possible values of the field `M4`"]
414#[derive(Clone, Copy, Debug, PartialEq)]
415pub enum M4R {
416    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
417    _000,
418    #[doc = "This master has level 2 priority when accessing the slave port."]
419    _001,
420    #[doc = "This master has level 3 priority when accessing the slave port."]
421    _010,
422    #[doc = "This master has level 4 priority when accessing the slave port."]
423    _011,
424    #[doc = "This master has level 5 priority when accessing the slave port."]
425    _100,
426    #[doc = "This master has level 6 priority when accessing the slave port."]
427    _101,
428    #[doc = "This master has level 7 priority when accessing the slave port."]
429    _110,
430    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
431    _111,
432}
433impl M4R {
434    #[doc = r" Value of the field as raw bits"]
435    #[inline]
436    pub fn bits(&self) -> u8 {
437        match *self {
438            M4R::_000 => 0,
439            M4R::_001 => 1,
440            M4R::_010 => 2,
441            M4R::_011 => 3,
442            M4R::_100 => 4,
443            M4R::_101 => 5,
444            M4R::_110 => 6,
445            M4R::_111 => 7,
446        }
447    }
448    #[allow(missing_docs)]
449    #[doc(hidden)]
450    #[inline]
451    pub fn _from(value: u8) -> M4R {
452        match value {
453            0 => M4R::_000,
454            1 => M4R::_001,
455            2 => M4R::_010,
456            3 => M4R::_011,
457            4 => M4R::_100,
458            5 => M4R::_101,
459            6 => M4R::_110,
460            7 => M4R::_111,
461            _ => unreachable!(),
462        }
463    }
464    #[doc = "Checks if the value of the field is `_000`"]
465    #[inline]
466    pub fn is_000(&self) -> bool {
467        *self == M4R::_000
468    }
469    #[doc = "Checks if the value of the field is `_001`"]
470    #[inline]
471    pub fn is_001(&self) -> bool {
472        *self == M4R::_001
473    }
474    #[doc = "Checks if the value of the field is `_010`"]
475    #[inline]
476    pub fn is_010(&self) -> bool {
477        *self == M4R::_010
478    }
479    #[doc = "Checks if the value of the field is `_011`"]
480    #[inline]
481    pub fn is_011(&self) -> bool {
482        *self == M4R::_011
483    }
484    #[doc = "Checks if the value of the field is `_100`"]
485    #[inline]
486    pub fn is_100(&self) -> bool {
487        *self == M4R::_100
488    }
489    #[doc = "Checks if the value of the field is `_101`"]
490    #[inline]
491    pub fn is_101(&self) -> bool {
492        *self == M4R::_101
493    }
494    #[doc = "Checks if the value of the field is `_110`"]
495    #[inline]
496    pub fn is_110(&self) -> bool {
497        *self == M4R::_110
498    }
499    #[doc = "Checks if the value of the field is `_111`"]
500    #[inline]
501    pub fn is_111(&self) -> bool {
502        *self == M4R::_111
503    }
504}
505#[doc = "Possible values of the field `M5`"]
506#[derive(Clone, Copy, Debug, PartialEq)]
507pub enum M5R {
508    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
509    _000,
510    #[doc = "This master has level 2 priority when accessing the slave port."]
511    _001,
512    #[doc = "This master has level 3 priority when accessing the slave port."]
513    _010,
514    #[doc = "This master has level 4 priority when accessing the slave port."]
515    _011,
516    #[doc = "This master has level 5 priority when accessing the slave port."]
517    _100,
518    #[doc = "This master has level 6 priority when accessing the slave port."]
519    _101,
520    #[doc = "This master has level 7 priority when accessing the slave port."]
521    _110,
522    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
523    _111,
524}
525impl M5R {
526    #[doc = r" Value of the field as raw bits"]
527    #[inline]
528    pub fn bits(&self) -> u8 {
529        match *self {
530            M5R::_000 => 0,
531            M5R::_001 => 1,
532            M5R::_010 => 2,
533            M5R::_011 => 3,
534            M5R::_100 => 4,
535            M5R::_101 => 5,
536            M5R::_110 => 6,
537            M5R::_111 => 7,
538        }
539    }
540    #[allow(missing_docs)]
541    #[doc(hidden)]
542    #[inline]
543    pub fn _from(value: u8) -> M5R {
544        match value {
545            0 => M5R::_000,
546            1 => M5R::_001,
547            2 => M5R::_010,
548            3 => M5R::_011,
549            4 => M5R::_100,
550            5 => M5R::_101,
551            6 => M5R::_110,
552            7 => M5R::_111,
553            _ => unreachable!(),
554        }
555    }
556    #[doc = "Checks if the value of the field is `_000`"]
557    #[inline]
558    pub fn is_000(&self) -> bool {
559        *self == M5R::_000
560    }
561    #[doc = "Checks if the value of the field is `_001`"]
562    #[inline]
563    pub fn is_001(&self) -> bool {
564        *self == M5R::_001
565    }
566    #[doc = "Checks if the value of the field is `_010`"]
567    #[inline]
568    pub fn is_010(&self) -> bool {
569        *self == M5R::_010
570    }
571    #[doc = "Checks if the value of the field is `_011`"]
572    #[inline]
573    pub fn is_011(&self) -> bool {
574        *self == M5R::_011
575    }
576    #[doc = "Checks if the value of the field is `_100`"]
577    #[inline]
578    pub fn is_100(&self) -> bool {
579        *self == M5R::_100
580    }
581    #[doc = "Checks if the value of the field is `_101`"]
582    #[inline]
583    pub fn is_101(&self) -> bool {
584        *self == M5R::_101
585    }
586    #[doc = "Checks if the value of the field is `_110`"]
587    #[inline]
588    pub fn is_110(&self) -> bool {
589        *self == M5R::_110
590    }
591    #[doc = "Checks if the value of the field is `_111`"]
592    #[inline]
593    pub fn is_111(&self) -> bool {
594        *self == M5R::_111
595    }
596}
597#[doc = "Values that can be written to the field `M0`"]
598pub enum M0W {
599    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
600    _000,
601    #[doc = "This master has level 2 priority when accessing the slave port."]
602    _001,
603    #[doc = "This master has level 3 priority when accessing the slave port."]
604    _010,
605    #[doc = "This master has level 4 priority when accessing the slave port."]
606    _011,
607    #[doc = "This master has level 5 priority when accessing the slave port."]
608    _100,
609    #[doc = "This master has level 6 priority when accessing the slave port."]
610    _101,
611    #[doc = "This master has level 7 priority when accessing the slave port."]
612    _110,
613    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
614    _111,
615}
616impl M0W {
617    #[allow(missing_docs)]
618    #[doc(hidden)]
619    #[inline]
620    pub fn _bits(&self) -> u8 {
621        match *self {
622            M0W::_000 => 0,
623            M0W::_001 => 1,
624            M0W::_010 => 2,
625            M0W::_011 => 3,
626            M0W::_100 => 4,
627            M0W::_101 => 5,
628            M0W::_110 => 6,
629            M0W::_111 => 7,
630        }
631    }
632}
633#[doc = r" Proxy"]
634pub struct _M0W<'a> {
635    w: &'a mut W,
636}
637impl<'a> _M0W<'a> {
638    #[doc = r" Writes `variant` to the field"]
639    #[inline]
640    pub fn variant(self, variant: M0W) -> &'a mut W {
641        {
642            self.bits(variant._bits())
643        }
644    }
645    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
646    #[inline]
647    pub fn _000(self) -> &'a mut W {
648        self.variant(M0W::_000)
649    }
650    #[doc = "This master has level 2 priority when accessing the slave port."]
651    #[inline]
652    pub fn _001(self) -> &'a mut W {
653        self.variant(M0W::_001)
654    }
655    #[doc = "This master has level 3 priority when accessing the slave port."]
656    #[inline]
657    pub fn _010(self) -> &'a mut W {
658        self.variant(M0W::_010)
659    }
660    #[doc = "This master has level 4 priority when accessing the slave port."]
661    #[inline]
662    pub fn _011(self) -> &'a mut W {
663        self.variant(M0W::_011)
664    }
665    #[doc = "This master has level 5 priority when accessing the slave port."]
666    #[inline]
667    pub fn _100(self) -> &'a mut W {
668        self.variant(M0W::_100)
669    }
670    #[doc = "This master has level 6 priority when accessing the slave port."]
671    #[inline]
672    pub fn _101(self) -> &'a mut W {
673        self.variant(M0W::_101)
674    }
675    #[doc = "This master has level 7 priority when accessing the slave port."]
676    #[inline]
677    pub fn _110(self) -> &'a mut W {
678        self.variant(M0W::_110)
679    }
680    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
681    #[inline]
682    pub fn _111(self) -> &'a mut W {
683        self.variant(M0W::_111)
684    }
685    #[doc = r" Writes raw bits to the field"]
686    #[inline]
687    pub fn bits(self, value: u8) -> &'a mut W {
688        const MASK: u8 = 7;
689        const OFFSET: u8 = 0;
690        self.w.bits &= !((MASK as u32) << OFFSET);
691        self.w.bits |= ((value & MASK) as u32) << OFFSET;
692        self.w
693    }
694}
695#[doc = "Values that can be written to the field `M1`"]
696pub enum M1W {
697    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
698    _000,
699    #[doc = "This master has level 2 priority when accessing the slave port."]
700    _001,
701    #[doc = "This master has level 3 priority when accessing the slave port."]
702    _010,
703    #[doc = "This master has level 4 priority when accessing the slave port."]
704    _011,
705    #[doc = "This master has level 5 priority when accessing the slave port."]
706    _100,
707    #[doc = "This master has level 6 priority when accessing the slave port."]
708    _101,
709    #[doc = "This master has level 7 priority when accessing the slave port."]
710    _110,
711    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
712    _111,
713}
714impl M1W {
715    #[allow(missing_docs)]
716    #[doc(hidden)]
717    #[inline]
718    pub fn _bits(&self) -> u8 {
719        match *self {
720            M1W::_000 => 0,
721            M1W::_001 => 1,
722            M1W::_010 => 2,
723            M1W::_011 => 3,
724            M1W::_100 => 4,
725            M1W::_101 => 5,
726            M1W::_110 => 6,
727            M1W::_111 => 7,
728        }
729    }
730}
731#[doc = r" Proxy"]
732pub struct _M1W<'a> {
733    w: &'a mut W,
734}
735impl<'a> _M1W<'a> {
736    #[doc = r" Writes `variant` to the field"]
737    #[inline]
738    pub fn variant(self, variant: M1W) -> &'a mut W {
739        {
740            self.bits(variant._bits())
741        }
742    }
743    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
744    #[inline]
745    pub fn _000(self) -> &'a mut W {
746        self.variant(M1W::_000)
747    }
748    #[doc = "This master has level 2 priority when accessing the slave port."]
749    #[inline]
750    pub fn _001(self) -> &'a mut W {
751        self.variant(M1W::_001)
752    }
753    #[doc = "This master has level 3 priority when accessing the slave port."]
754    #[inline]
755    pub fn _010(self) -> &'a mut W {
756        self.variant(M1W::_010)
757    }
758    #[doc = "This master has level 4 priority when accessing the slave port."]
759    #[inline]
760    pub fn _011(self) -> &'a mut W {
761        self.variant(M1W::_011)
762    }
763    #[doc = "This master has level 5 priority when accessing the slave port."]
764    #[inline]
765    pub fn _100(self) -> &'a mut W {
766        self.variant(M1W::_100)
767    }
768    #[doc = "This master has level 6 priority when accessing the slave port."]
769    #[inline]
770    pub fn _101(self) -> &'a mut W {
771        self.variant(M1W::_101)
772    }
773    #[doc = "This master has level 7 priority when accessing the slave port."]
774    #[inline]
775    pub fn _110(self) -> &'a mut W {
776        self.variant(M1W::_110)
777    }
778    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
779    #[inline]
780    pub fn _111(self) -> &'a mut W {
781        self.variant(M1W::_111)
782    }
783    #[doc = r" Writes raw bits to the field"]
784    #[inline]
785    pub fn bits(self, value: u8) -> &'a mut W {
786        const MASK: u8 = 7;
787        const OFFSET: u8 = 4;
788        self.w.bits &= !((MASK as u32) << OFFSET);
789        self.w.bits |= ((value & MASK) as u32) << OFFSET;
790        self.w
791    }
792}
793#[doc = "Values that can be written to the field `M2`"]
794pub enum M2W {
795    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
796    _000,
797    #[doc = "This master has level 2 priority when accessing the slave port."]
798    _001,
799    #[doc = "This master has level 3 priority when accessing the slave port."]
800    _010,
801    #[doc = "This master has level 4 priority when accessing the slave port."]
802    _011,
803    #[doc = "This master has level 5 priority when accessing the slave port."]
804    _100,
805    #[doc = "This master has level 6 priority when accessing the slave port."]
806    _101,
807    #[doc = "This master has level 7 priority when accessing the slave port."]
808    _110,
809    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
810    _111,
811}
812impl M2W {
813    #[allow(missing_docs)]
814    #[doc(hidden)]
815    #[inline]
816    pub fn _bits(&self) -> u8 {
817        match *self {
818            M2W::_000 => 0,
819            M2W::_001 => 1,
820            M2W::_010 => 2,
821            M2W::_011 => 3,
822            M2W::_100 => 4,
823            M2W::_101 => 5,
824            M2W::_110 => 6,
825            M2W::_111 => 7,
826        }
827    }
828}
829#[doc = r" Proxy"]
830pub struct _M2W<'a> {
831    w: &'a mut W,
832}
833impl<'a> _M2W<'a> {
834    #[doc = r" Writes `variant` to the field"]
835    #[inline]
836    pub fn variant(self, variant: M2W) -> &'a mut W {
837        {
838            self.bits(variant._bits())
839        }
840    }
841    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
842    #[inline]
843    pub fn _000(self) -> &'a mut W {
844        self.variant(M2W::_000)
845    }
846    #[doc = "This master has level 2 priority when accessing the slave port."]
847    #[inline]
848    pub fn _001(self) -> &'a mut W {
849        self.variant(M2W::_001)
850    }
851    #[doc = "This master has level 3 priority when accessing the slave port."]
852    #[inline]
853    pub fn _010(self) -> &'a mut W {
854        self.variant(M2W::_010)
855    }
856    #[doc = "This master has level 4 priority when accessing the slave port."]
857    #[inline]
858    pub fn _011(self) -> &'a mut W {
859        self.variant(M2W::_011)
860    }
861    #[doc = "This master has level 5 priority when accessing the slave port."]
862    #[inline]
863    pub fn _100(self) -> &'a mut W {
864        self.variant(M2W::_100)
865    }
866    #[doc = "This master has level 6 priority when accessing the slave port."]
867    #[inline]
868    pub fn _101(self) -> &'a mut W {
869        self.variant(M2W::_101)
870    }
871    #[doc = "This master has level 7 priority when accessing the slave port."]
872    #[inline]
873    pub fn _110(self) -> &'a mut W {
874        self.variant(M2W::_110)
875    }
876    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
877    #[inline]
878    pub fn _111(self) -> &'a mut W {
879        self.variant(M2W::_111)
880    }
881    #[doc = r" Writes raw bits to the field"]
882    #[inline]
883    pub fn bits(self, value: u8) -> &'a mut W {
884        const MASK: u8 = 7;
885        const OFFSET: u8 = 8;
886        self.w.bits &= !((MASK as u32) << OFFSET);
887        self.w.bits |= ((value & MASK) as u32) << OFFSET;
888        self.w
889    }
890}
891#[doc = "Values that can be written to the field `M3`"]
892pub enum M3W {
893    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
894    _000,
895    #[doc = "This master has level 2 priority when accessing the slave port."]
896    _001,
897    #[doc = "This master has level 3 priority when accessing the slave port."]
898    _010,
899    #[doc = "This master has level 4 priority when accessing the slave port."]
900    _011,
901    #[doc = "This master has level 5 priority when accessing the slave port."]
902    _100,
903    #[doc = "This master has level 6 priority when accessing the slave port."]
904    _101,
905    #[doc = "This master has level 7 priority when accessing the slave port."]
906    _110,
907    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
908    _111,
909}
910impl M3W {
911    #[allow(missing_docs)]
912    #[doc(hidden)]
913    #[inline]
914    pub fn _bits(&self) -> u8 {
915        match *self {
916            M3W::_000 => 0,
917            M3W::_001 => 1,
918            M3W::_010 => 2,
919            M3W::_011 => 3,
920            M3W::_100 => 4,
921            M3W::_101 => 5,
922            M3W::_110 => 6,
923            M3W::_111 => 7,
924        }
925    }
926}
927#[doc = r" Proxy"]
928pub struct _M3W<'a> {
929    w: &'a mut W,
930}
931impl<'a> _M3W<'a> {
932    #[doc = r" Writes `variant` to the field"]
933    #[inline]
934    pub fn variant(self, variant: M3W) -> &'a mut W {
935        {
936            self.bits(variant._bits())
937        }
938    }
939    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
940    #[inline]
941    pub fn _000(self) -> &'a mut W {
942        self.variant(M3W::_000)
943    }
944    #[doc = "This master has level 2 priority when accessing the slave port."]
945    #[inline]
946    pub fn _001(self) -> &'a mut W {
947        self.variant(M3W::_001)
948    }
949    #[doc = "This master has level 3 priority when accessing the slave port."]
950    #[inline]
951    pub fn _010(self) -> &'a mut W {
952        self.variant(M3W::_010)
953    }
954    #[doc = "This master has level 4 priority when accessing the slave port."]
955    #[inline]
956    pub fn _011(self) -> &'a mut W {
957        self.variant(M3W::_011)
958    }
959    #[doc = "This master has level 5 priority when accessing the slave port."]
960    #[inline]
961    pub fn _100(self) -> &'a mut W {
962        self.variant(M3W::_100)
963    }
964    #[doc = "This master has level 6 priority when accessing the slave port."]
965    #[inline]
966    pub fn _101(self) -> &'a mut W {
967        self.variant(M3W::_101)
968    }
969    #[doc = "This master has level 7 priority when accessing the slave port."]
970    #[inline]
971    pub fn _110(self) -> &'a mut W {
972        self.variant(M3W::_110)
973    }
974    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
975    #[inline]
976    pub fn _111(self) -> &'a mut W {
977        self.variant(M3W::_111)
978    }
979    #[doc = r" Writes raw bits to the field"]
980    #[inline]
981    pub fn bits(self, value: u8) -> &'a mut W {
982        const MASK: u8 = 7;
983        const OFFSET: u8 = 12;
984        self.w.bits &= !((MASK as u32) << OFFSET);
985        self.w.bits |= ((value & MASK) as u32) << OFFSET;
986        self.w
987    }
988}
989#[doc = "Values that can be written to the field `M4`"]
990pub enum M4W {
991    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
992    _000,
993    #[doc = "This master has level 2 priority when accessing the slave port."]
994    _001,
995    #[doc = "This master has level 3 priority when accessing the slave port."]
996    _010,
997    #[doc = "This master has level 4 priority when accessing the slave port."]
998    _011,
999    #[doc = "This master has level 5 priority when accessing the slave port."]
1000    _100,
1001    #[doc = "This master has level 6 priority when accessing the slave port."]
1002    _101,
1003    #[doc = "This master has level 7 priority when accessing the slave port."]
1004    _110,
1005    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1006    _111,
1007}
1008impl M4W {
1009    #[allow(missing_docs)]
1010    #[doc(hidden)]
1011    #[inline]
1012    pub fn _bits(&self) -> u8 {
1013        match *self {
1014            M4W::_000 => 0,
1015            M4W::_001 => 1,
1016            M4W::_010 => 2,
1017            M4W::_011 => 3,
1018            M4W::_100 => 4,
1019            M4W::_101 => 5,
1020            M4W::_110 => 6,
1021            M4W::_111 => 7,
1022        }
1023    }
1024}
1025#[doc = r" Proxy"]
1026pub struct _M4W<'a> {
1027    w: &'a mut W,
1028}
1029impl<'a> _M4W<'a> {
1030    #[doc = r" Writes `variant` to the field"]
1031    #[inline]
1032    pub fn variant(self, variant: M4W) -> &'a mut W {
1033        {
1034            self.bits(variant._bits())
1035        }
1036    }
1037    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1038    #[inline]
1039    pub fn _000(self) -> &'a mut W {
1040        self.variant(M4W::_000)
1041    }
1042    #[doc = "This master has level 2 priority when accessing the slave port."]
1043    #[inline]
1044    pub fn _001(self) -> &'a mut W {
1045        self.variant(M4W::_001)
1046    }
1047    #[doc = "This master has level 3 priority when accessing the slave port."]
1048    #[inline]
1049    pub fn _010(self) -> &'a mut W {
1050        self.variant(M4W::_010)
1051    }
1052    #[doc = "This master has level 4 priority when accessing the slave port."]
1053    #[inline]
1054    pub fn _011(self) -> &'a mut W {
1055        self.variant(M4W::_011)
1056    }
1057    #[doc = "This master has level 5 priority when accessing the slave port."]
1058    #[inline]
1059    pub fn _100(self) -> &'a mut W {
1060        self.variant(M4W::_100)
1061    }
1062    #[doc = "This master has level 6 priority when accessing the slave port."]
1063    #[inline]
1064    pub fn _101(self) -> &'a mut W {
1065        self.variant(M4W::_101)
1066    }
1067    #[doc = "This master has level 7 priority when accessing the slave port."]
1068    #[inline]
1069    pub fn _110(self) -> &'a mut W {
1070        self.variant(M4W::_110)
1071    }
1072    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1073    #[inline]
1074    pub fn _111(self) -> &'a mut W {
1075        self.variant(M4W::_111)
1076    }
1077    #[doc = r" Writes raw bits to the field"]
1078    #[inline]
1079    pub fn bits(self, value: u8) -> &'a mut W {
1080        const MASK: u8 = 7;
1081        const OFFSET: u8 = 16;
1082        self.w.bits &= !((MASK as u32) << OFFSET);
1083        self.w.bits |= ((value & MASK) as u32) << OFFSET;
1084        self.w
1085    }
1086}
1087#[doc = "Values that can be written to the field `M5`"]
1088pub enum M5W {
1089    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1090    _000,
1091    #[doc = "This master has level 2 priority when accessing the slave port."]
1092    _001,
1093    #[doc = "This master has level 3 priority when accessing the slave port."]
1094    _010,
1095    #[doc = "This master has level 4 priority when accessing the slave port."]
1096    _011,
1097    #[doc = "This master has level 5 priority when accessing the slave port."]
1098    _100,
1099    #[doc = "This master has level 6 priority when accessing the slave port."]
1100    _101,
1101    #[doc = "This master has level 7 priority when accessing the slave port."]
1102    _110,
1103    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1104    _111,
1105}
1106impl M5W {
1107    #[allow(missing_docs)]
1108    #[doc(hidden)]
1109    #[inline]
1110    pub fn _bits(&self) -> u8 {
1111        match *self {
1112            M5W::_000 => 0,
1113            M5W::_001 => 1,
1114            M5W::_010 => 2,
1115            M5W::_011 => 3,
1116            M5W::_100 => 4,
1117            M5W::_101 => 5,
1118            M5W::_110 => 6,
1119            M5W::_111 => 7,
1120        }
1121    }
1122}
1123#[doc = r" Proxy"]
1124pub struct _M5W<'a> {
1125    w: &'a mut W,
1126}
1127impl<'a> _M5W<'a> {
1128    #[doc = r" Writes `variant` to the field"]
1129    #[inline]
1130    pub fn variant(self, variant: M5W) -> &'a mut W {
1131        {
1132            self.bits(variant._bits())
1133        }
1134    }
1135    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1136    #[inline]
1137    pub fn _000(self) -> &'a mut W {
1138        self.variant(M5W::_000)
1139    }
1140    #[doc = "This master has level 2 priority when accessing the slave port."]
1141    #[inline]
1142    pub fn _001(self) -> &'a mut W {
1143        self.variant(M5W::_001)
1144    }
1145    #[doc = "This master has level 3 priority when accessing the slave port."]
1146    #[inline]
1147    pub fn _010(self) -> &'a mut W {
1148        self.variant(M5W::_010)
1149    }
1150    #[doc = "This master has level 4 priority when accessing the slave port."]
1151    #[inline]
1152    pub fn _011(self) -> &'a mut W {
1153        self.variant(M5W::_011)
1154    }
1155    #[doc = "This master has level 5 priority when accessing the slave port."]
1156    #[inline]
1157    pub fn _100(self) -> &'a mut W {
1158        self.variant(M5W::_100)
1159    }
1160    #[doc = "This master has level 6 priority when accessing the slave port."]
1161    #[inline]
1162    pub fn _101(self) -> &'a mut W {
1163        self.variant(M5W::_101)
1164    }
1165    #[doc = "This master has level 7 priority when accessing the slave port."]
1166    #[inline]
1167    pub fn _110(self) -> &'a mut W {
1168        self.variant(M5W::_110)
1169    }
1170    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1171    #[inline]
1172    pub fn _111(self) -> &'a mut W {
1173        self.variant(M5W::_111)
1174    }
1175    #[doc = r" Writes raw bits to the field"]
1176    #[inline]
1177    pub fn bits(self, value: u8) -> &'a mut W {
1178        const MASK: u8 = 7;
1179        const OFFSET: u8 = 20;
1180        self.w.bits &= !((MASK as u32) << OFFSET);
1181        self.w.bits |= ((value & MASK) as u32) << OFFSET;
1182        self.w
1183    }
1184}
1185impl R {
1186    #[doc = r" Value of the register as raw bits"]
1187    #[inline]
1188    pub fn bits(&self) -> u32 {
1189        self.bits
1190    }
1191    #[doc = "Bits 0:2 - Master 0 Priority. Sets the arbitration priority for this port on the associated slave port."]
1192    #[inline]
1193    pub fn m0(&self) -> M0R {
1194        M0R::_from({
1195            const MASK: u8 = 7;
1196            const OFFSET: u8 = 0;
1197            ((self.bits >> OFFSET) & MASK as u32) as u8
1198        })
1199    }
1200    #[doc = "Bits 4:6 - Master 1 Priority. Sets the arbitration priority for this port on the associated slave port."]
1201    #[inline]
1202    pub fn m1(&self) -> M1R {
1203        M1R::_from({
1204            const MASK: u8 = 7;
1205            const OFFSET: u8 = 4;
1206            ((self.bits >> OFFSET) & MASK as u32) as u8
1207        })
1208    }
1209    #[doc = "Bits 8:10 - Master 2 Priority. Sets the arbitration priority for this port on the associated slave port."]
1210    #[inline]
1211    pub fn m2(&self) -> M2R {
1212        M2R::_from({
1213            const MASK: u8 = 7;
1214            const OFFSET: u8 = 8;
1215            ((self.bits >> OFFSET) & MASK as u32) as u8
1216        })
1217    }
1218    #[doc = "Bits 12:14 - Master 3 Priority. Sets the arbitration priority for this port on the associated slave port."]
1219    #[inline]
1220    pub fn m3(&self) -> M3R {
1221        M3R::_from({
1222            const MASK: u8 = 7;
1223            const OFFSET: u8 = 12;
1224            ((self.bits >> OFFSET) & MASK as u32) as u8
1225        })
1226    }
1227    #[doc = "Bits 16:18 - Master 4 Priority. Sets the arbitration priority for this port on the associated slave port."]
1228    #[inline]
1229    pub fn m4(&self) -> M4R {
1230        M4R::_from({
1231            const MASK: u8 = 7;
1232            const OFFSET: u8 = 16;
1233            ((self.bits >> OFFSET) & MASK as u32) as u8
1234        })
1235    }
1236    #[doc = "Bits 20:22 - Master 5 Priority. Sets the arbitration priority for this port on the associated slave port."]
1237    #[inline]
1238    pub fn m5(&self) -> M5R {
1239        M5R::_from({
1240            const MASK: u8 = 7;
1241            const OFFSET: u8 = 20;
1242            ((self.bits >> OFFSET) & MASK as u32) as u8
1243        })
1244    }
1245}
1246impl W {
1247    #[doc = r" Reset value of the register"]
1248    #[inline]
1249    pub fn reset_value() -> W {
1250        W { bits: 5517840 }
1251    }
1252    #[doc = r" Writes raw bits to the register"]
1253    #[inline]
1254    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1255        self.bits = bits;
1256        self
1257    }
1258    #[doc = "Bits 0:2 - Master 0 Priority. Sets the arbitration priority for this port on the associated slave port."]
1259    #[inline]
1260    pub fn m0(&mut self) -> _M0W {
1261        _M0W { w: self }
1262    }
1263    #[doc = "Bits 4:6 - Master 1 Priority. Sets the arbitration priority for this port on the associated slave port."]
1264    #[inline]
1265    pub fn m1(&mut self) -> _M1W {
1266        _M1W { w: self }
1267    }
1268    #[doc = "Bits 8:10 - Master 2 Priority. Sets the arbitration priority for this port on the associated slave port."]
1269    #[inline]
1270    pub fn m2(&mut self) -> _M2W {
1271        _M2W { w: self }
1272    }
1273    #[doc = "Bits 12:14 - Master 3 Priority. Sets the arbitration priority for this port on the associated slave port."]
1274    #[inline]
1275    pub fn m3(&mut self) -> _M3W {
1276        _M3W { w: self }
1277    }
1278    #[doc = "Bits 16:18 - Master 4 Priority. Sets the arbitration priority for this port on the associated slave port."]
1279    #[inline]
1280    pub fn m4(&mut self) -> _M4W {
1281        _M4W { w: self }
1282    }
1283    #[doc = "Bits 20:22 - Master 5 Priority. Sets the arbitration priority for this port on the associated slave port."]
1284    #[inline]
1285    pub fn m5(&mut self) -> _M5W {
1286        _M5W { w: self }
1287    }
1288}