k66/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 = "Possible values of the field `M6`"]
598#[derive(Clone, Copy, Debug, PartialEq)]
599pub enum M6R {
600    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
601    _000,
602    #[doc = "This master has level 2 priority when accessing the slave port."]
603    _001,
604    #[doc = "This master has level 3 priority when accessing the slave port."]
605    _010,
606    #[doc = "This master has level 4 priority when accessing the slave port."]
607    _011,
608    #[doc = "This master has level 5 priority when accessing the slave port."]
609    _100,
610    #[doc = "This master has level 6 priority when accessing the slave port."]
611    _101,
612    #[doc = "This master has level 7 priority when accessing the slave port."]
613    _110,
614    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
615    _111,
616}
617impl M6R {
618    #[doc = r" Value of the field as raw bits"]
619    #[inline]
620    pub fn bits(&self) -> u8 {
621        match *self {
622            M6R::_000 => 0,
623            M6R::_001 => 1,
624            M6R::_010 => 2,
625            M6R::_011 => 3,
626            M6R::_100 => 4,
627            M6R::_101 => 5,
628            M6R::_110 => 6,
629            M6R::_111 => 7,
630        }
631    }
632    #[allow(missing_docs)]
633    #[doc(hidden)]
634    #[inline]
635    pub fn _from(value: u8) -> M6R {
636        match value {
637            0 => M6R::_000,
638            1 => M6R::_001,
639            2 => M6R::_010,
640            3 => M6R::_011,
641            4 => M6R::_100,
642            5 => M6R::_101,
643            6 => M6R::_110,
644            7 => M6R::_111,
645            _ => unreachable!(),
646        }
647    }
648    #[doc = "Checks if the value of the field is `_000`"]
649    #[inline]
650    pub fn is_000(&self) -> bool {
651        *self == M6R::_000
652    }
653    #[doc = "Checks if the value of the field is `_001`"]
654    #[inline]
655    pub fn is_001(&self) -> bool {
656        *self == M6R::_001
657    }
658    #[doc = "Checks if the value of the field is `_010`"]
659    #[inline]
660    pub fn is_010(&self) -> bool {
661        *self == M6R::_010
662    }
663    #[doc = "Checks if the value of the field is `_011`"]
664    #[inline]
665    pub fn is_011(&self) -> bool {
666        *self == M6R::_011
667    }
668    #[doc = "Checks if the value of the field is `_100`"]
669    #[inline]
670    pub fn is_100(&self) -> bool {
671        *self == M6R::_100
672    }
673    #[doc = "Checks if the value of the field is `_101`"]
674    #[inline]
675    pub fn is_101(&self) -> bool {
676        *self == M6R::_101
677    }
678    #[doc = "Checks if the value of the field is `_110`"]
679    #[inline]
680    pub fn is_110(&self) -> bool {
681        *self == M6R::_110
682    }
683    #[doc = "Checks if the value of the field is `_111`"]
684    #[inline]
685    pub fn is_111(&self) -> bool {
686        *self == M6R::_111
687    }
688}
689#[doc = "Values that can be written to the field `M0`"]
690pub enum M0W {
691    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
692    _000,
693    #[doc = "This master has level 2 priority when accessing the slave port."]
694    _001,
695    #[doc = "This master has level 3 priority when accessing the slave port."]
696    _010,
697    #[doc = "This master has level 4 priority when accessing the slave port."]
698    _011,
699    #[doc = "This master has level 5 priority when accessing the slave port."]
700    _100,
701    #[doc = "This master has level 6 priority when accessing the slave port."]
702    _101,
703    #[doc = "This master has level 7 priority when accessing the slave port."]
704    _110,
705    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
706    _111,
707}
708impl M0W {
709    #[allow(missing_docs)]
710    #[doc(hidden)]
711    #[inline]
712    pub fn _bits(&self) -> u8 {
713        match *self {
714            M0W::_000 => 0,
715            M0W::_001 => 1,
716            M0W::_010 => 2,
717            M0W::_011 => 3,
718            M0W::_100 => 4,
719            M0W::_101 => 5,
720            M0W::_110 => 6,
721            M0W::_111 => 7,
722        }
723    }
724}
725#[doc = r" Proxy"]
726pub struct _M0W<'a> {
727    w: &'a mut W,
728}
729impl<'a> _M0W<'a> {
730    #[doc = r" Writes `variant` to the field"]
731    #[inline]
732    pub fn variant(self, variant: M0W) -> &'a mut W {
733        {
734            self.bits(variant._bits())
735        }
736    }
737    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
738    #[inline]
739    pub fn _000(self) -> &'a mut W {
740        self.variant(M0W::_000)
741    }
742    #[doc = "This master has level 2 priority when accessing the slave port."]
743    #[inline]
744    pub fn _001(self) -> &'a mut W {
745        self.variant(M0W::_001)
746    }
747    #[doc = "This master has level 3 priority when accessing the slave port."]
748    #[inline]
749    pub fn _010(self) -> &'a mut W {
750        self.variant(M0W::_010)
751    }
752    #[doc = "This master has level 4 priority when accessing the slave port."]
753    #[inline]
754    pub fn _011(self) -> &'a mut W {
755        self.variant(M0W::_011)
756    }
757    #[doc = "This master has level 5 priority when accessing the slave port."]
758    #[inline]
759    pub fn _100(self) -> &'a mut W {
760        self.variant(M0W::_100)
761    }
762    #[doc = "This master has level 6 priority when accessing the slave port."]
763    #[inline]
764    pub fn _101(self) -> &'a mut W {
765        self.variant(M0W::_101)
766    }
767    #[doc = "This master has level 7 priority when accessing the slave port."]
768    #[inline]
769    pub fn _110(self) -> &'a mut W {
770        self.variant(M0W::_110)
771    }
772    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
773    #[inline]
774    pub fn _111(self) -> &'a mut W {
775        self.variant(M0W::_111)
776    }
777    #[doc = r" Writes raw bits to the field"]
778    #[inline]
779    pub fn bits(self, value: u8) -> &'a mut W {
780        const MASK: u8 = 7;
781        const OFFSET: u8 = 0;
782        self.w.bits &= !((MASK as u32) << OFFSET);
783        self.w.bits |= ((value & MASK) as u32) << OFFSET;
784        self.w
785    }
786}
787#[doc = "Values that can be written to the field `M1`"]
788pub enum M1W {
789    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
790    _000,
791    #[doc = "This master has level 2 priority when accessing the slave port."]
792    _001,
793    #[doc = "This master has level 3 priority when accessing the slave port."]
794    _010,
795    #[doc = "This master has level 4 priority when accessing the slave port."]
796    _011,
797    #[doc = "This master has level 5 priority when accessing the slave port."]
798    _100,
799    #[doc = "This master has level 6 priority when accessing the slave port."]
800    _101,
801    #[doc = "This master has level 7 priority when accessing the slave port."]
802    _110,
803    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
804    _111,
805}
806impl M1W {
807    #[allow(missing_docs)]
808    #[doc(hidden)]
809    #[inline]
810    pub fn _bits(&self) -> u8 {
811        match *self {
812            M1W::_000 => 0,
813            M1W::_001 => 1,
814            M1W::_010 => 2,
815            M1W::_011 => 3,
816            M1W::_100 => 4,
817            M1W::_101 => 5,
818            M1W::_110 => 6,
819            M1W::_111 => 7,
820        }
821    }
822}
823#[doc = r" Proxy"]
824pub struct _M1W<'a> {
825    w: &'a mut W,
826}
827impl<'a> _M1W<'a> {
828    #[doc = r" Writes `variant` to the field"]
829    #[inline]
830    pub fn variant(self, variant: M1W) -> &'a mut W {
831        {
832            self.bits(variant._bits())
833        }
834    }
835    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
836    #[inline]
837    pub fn _000(self) -> &'a mut W {
838        self.variant(M1W::_000)
839    }
840    #[doc = "This master has level 2 priority when accessing the slave port."]
841    #[inline]
842    pub fn _001(self) -> &'a mut W {
843        self.variant(M1W::_001)
844    }
845    #[doc = "This master has level 3 priority when accessing the slave port."]
846    #[inline]
847    pub fn _010(self) -> &'a mut W {
848        self.variant(M1W::_010)
849    }
850    #[doc = "This master has level 4 priority when accessing the slave port."]
851    #[inline]
852    pub fn _011(self) -> &'a mut W {
853        self.variant(M1W::_011)
854    }
855    #[doc = "This master has level 5 priority when accessing the slave port."]
856    #[inline]
857    pub fn _100(self) -> &'a mut W {
858        self.variant(M1W::_100)
859    }
860    #[doc = "This master has level 6 priority when accessing the slave port."]
861    #[inline]
862    pub fn _101(self) -> &'a mut W {
863        self.variant(M1W::_101)
864    }
865    #[doc = "This master has level 7 priority when accessing the slave port."]
866    #[inline]
867    pub fn _110(self) -> &'a mut W {
868        self.variant(M1W::_110)
869    }
870    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
871    #[inline]
872    pub fn _111(self) -> &'a mut W {
873        self.variant(M1W::_111)
874    }
875    #[doc = r" Writes raw bits to the field"]
876    #[inline]
877    pub fn bits(self, value: u8) -> &'a mut W {
878        const MASK: u8 = 7;
879        const OFFSET: u8 = 4;
880        self.w.bits &= !((MASK as u32) << OFFSET);
881        self.w.bits |= ((value & MASK) as u32) << OFFSET;
882        self.w
883    }
884}
885#[doc = "Values that can be written to the field `M2`"]
886pub enum M2W {
887    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
888    _000,
889    #[doc = "This master has level 2 priority when accessing the slave port."]
890    _001,
891    #[doc = "This master has level 3 priority when accessing the slave port."]
892    _010,
893    #[doc = "This master has level 4 priority when accessing the slave port."]
894    _011,
895    #[doc = "This master has level 5 priority when accessing the slave port."]
896    _100,
897    #[doc = "This master has level 6 priority when accessing the slave port."]
898    _101,
899    #[doc = "This master has level 7 priority when accessing the slave port."]
900    _110,
901    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
902    _111,
903}
904impl M2W {
905    #[allow(missing_docs)]
906    #[doc(hidden)]
907    #[inline]
908    pub fn _bits(&self) -> u8 {
909        match *self {
910            M2W::_000 => 0,
911            M2W::_001 => 1,
912            M2W::_010 => 2,
913            M2W::_011 => 3,
914            M2W::_100 => 4,
915            M2W::_101 => 5,
916            M2W::_110 => 6,
917            M2W::_111 => 7,
918        }
919    }
920}
921#[doc = r" Proxy"]
922pub struct _M2W<'a> {
923    w: &'a mut W,
924}
925impl<'a> _M2W<'a> {
926    #[doc = r" Writes `variant` to the field"]
927    #[inline]
928    pub fn variant(self, variant: M2W) -> &'a mut W {
929        {
930            self.bits(variant._bits())
931        }
932    }
933    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
934    #[inline]
935    pub fn _000(self) -> &'a mut W {
936        self.variant(M2W::_000)
937    }
938    #[doc = "This master has level 2 priority when accessing the slave port."]
939    #[inline]
940    pub fn _001(self) -> &'a mut W {
941        self.variant(M2W::_001)
942    }
943    #[doc = "This master has level 3 priority when accessing the slave port."]
944    #[inline]
945    pub fn _010(self) -> &'a mut W {
946        self.variant(M2W::_010)
947    }
948    #[doc = "This master has level 4 priority when accessing the slave port."]
949    #[inline]
950    pub fn _011(self) -> &'a mut W {
951        self.variant(M2W::_011)
952    }
953    #[doc = "This master has level 5 priority when accessing the slave port."]
954    #[inline]
955    pub fn _100(self) -> &'a mut W {
956        self.variant(M2W::_100)
957    }
958    #[doc = "This master has level 6 priority when accessing the slave port."]
959    #[inline]
960    pub fn _101(self) -> &'a mut W {
961        self.variant(M2W::_101)
962    }
963    #[doc = "This master has level 7 priority when accessing the slave port."]
964    #[inline]
965    pub fn _110(self) -> &'a mut W {
966        self.variant(M2W::_110)
967    }
968    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
969    #[inline]
970    pub fn _111(self) -> &'a mut W {
971        self.variant(M2W::_111)
972    }
973    #[doc = r" Writes raw bits to the field"]
974    #[inline]
975    pub fn bits(self, value: u8) -> &'a mut W {
976        const MASK: u8 = 7;
977        const OFFSET: u8 = 8;
978        self.w.bits &= !((MASK as u32) << OFFSET);
979        self.w.bits |= ((value & MASK) as u32) << OFFSET;
980        self.w
981    }
982}
983#[doc = "Values that can be written to the field `M3`"]
984pub enum M3W {
985    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
986    _000,
987    #[doc = "This master has level 2 priority when accessing the slave port."]
988    _001,
989    #[doc = "This master has level 3 priority when accessing the slave port."]
990    _010,
991    #[doc = "This master has level 4 priority when accessing the slave port."]
992    _011,
993    #[doc = "This master has level 5 priority when accessing the slave port."]
994    _100,
995    #[doc = "This master has level 6 priority when accessing the slave port."]
996    _101,
997    #[doc = "This master has level 7 priority when accessing the slave port."]
998    _110,
999    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1000    _111,
1001}
1002impl M3W {
1003    #[allow(missing_docs)]
1004    #[doc(hidden)]
1005    #[inline]
1006    pub fn _bits(&self) -> u8 {
1007        match *self {
1008            M3W::_000 => 0,
1009            M3W::_001 => 1,
1010            M3W::_010 => 2,
1011            M3W::_011 => 3,
1012            M3W::_100 => 4,
1013            M3W::_101 => 5,
1014            M3W::_110 => 6,
1015            M3W::_111 => 7,
1016        }
1017    }
1018}
1019#[doc = r" Proxy"]
1020pub struct _M3W<'a> {
1021    w: &'a mut W,
1022}
1023impl<'a> _M3W<'a> {
1024    #[doc = r" Writes `variant` to the field"]
1025    #[inline]
1026    pub fn variant(self, variant: M3W) -> &'a mut W {
1027        {
1028            self.bits(variant._bits())
1029        }
1030    }
1031    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1032    #[inline]
1033    pub fn _000(self) -> &'a mut W {
1034        self.variant(M3W::_000)
1035    }
1036    #[doc = "This master has level 2 priority when accessing the slave port."]
1037    #[inline]
1038    pub fn _001(self) -> &'a mut W {
1039        self.variant(M3W::_001)
1040    }
1041    #[doc = "This master has level 3 priority when accessing the slave port."]
1042    #[inline]
1043    pub fn _010(self) -> &'a mut W {
1044        self.variant(M3W::_010)
1045    }
1046    #[doc = "This master has level 4 priority when accessing the slave port."]
1047    #[inline]
1048    pub fn _011(self) -> &'a mut W {
1049        self.variant(M3W::_011)
1050    }
1051    #[doc = "This master has level 5 priority when accessing the slave port."]
1052    #[inline]
1053    pub fn _100(self) -> &'a mut W {
1054        self.variant(M3W::_100)
1055    }
1056    #[doc = "This master has level 6 priority when accessing the slave port."]
1057    #[inline]
1058    pub fn _101(self) -> &'a mut W {
1059        self.variant(M3W::_101)
1060    }
1061    #[doc = "This master has level 7 priority when accessing the slave port."]
1062    #[inline]
1063    pub fn _110(self) -> &'a mut W {
1064        self.variant(M3W::_110)
1065    }
1066    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1067    #[inline]
1068    pub fn _111(self) -> &'a mut W {
1069        self.variant(M3W::_111)
1070    }
1071    #[doc = r" Writes raw bits to the field"]
1072    #[inline]
1073    pub fn bits(self, value: u8) -> &'a mut W {
1074        const MASK: u8 = 7;
1075        const OFFSET: u8 = 12;
1076        self.w.bits &= !((MASK as u32) << OFFSET);
1077        self.w.bits |= ((value & MASK) as u32) << OFFSET;
1078        self.w
1079    }
1080}
1081#[doc = "Values that can be written to the field `M4`"]
1082pub enum M4W {
1083    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1084    _000,
1085    #[doc = "This master has level 2 priority when accessing the slave port."]
1086    _001,
1087    #[doc = "This master has level 3 priority when accessing the slave port."]
1088    _010,
1089    #[doc = "This master has level 4 priority when accessing the slave port."]
1090    _011,
1091    #[doc = "This master has level 5 priority when accessing the slave port."]
1092    _100,
1093    #[doc = "This master has level 6 priority when accessing the slave port."]
1094    _101,
1095    #[doc = "This master has level 7 priority when accessing the slave port."]
1096    _110,
1097    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1098    _111,
1099}
1100impl M4W {
1101    #[allow(missing_docs)]
1102    #[doc(hidden)]
1103    #[inline]
1104    pub fn _bits(&self) -> u8 {
1105        match *self {
1106            M4W::_000 => 0,
1107            M4W::_001 => 1,
1108            M4W::_010 => 2,
1109            M4W::_011 => 3,
1110            M4W::_100 => 4,
1111            M4W::_101 => 5,
1112            M4W::_110 => 6,
1113            M4W::_111 => 7,
1114        }
1115    }
1116}
1117#[doc = r" Proxy"]
1118pub struct _M4W<'a> {
1119    w: &'a mut W,
1120}
1121impl<'a> _M4W<'a> {
1122    #[doc = r" Writes `variant` to the field"]
1123    #[inline]
1124    pub fn variant(self, variant: M4W) -> &'a mut W {
1125        {
1126            self.bits(variant._bits())
1127        }
1128    }
1129    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1130    #[inline]
1131    pub fn _000(self) -> &'a mut W {
1132        self.variant(M4W::_000)
1133    }
1134    #[doc = "This master has level 2 priority when accessing the slave port."]
1135    #[inline]
1136    pub fn _001(self) -> &'a mut W {
1137        self.variant(M4W::_001)
1138    }
1139    #[doc = "This master has level 3 priority when accessing the slave port."]
1140    #[inline]
1141    pub fn _010(self) -> &'a mut W {
1142        self.variant(M4W::_010)
1143    }
1144    #[doc = "This master has level 4 priority when accessing the slave port."]
1145    #[inline]
1146    pub fn _011(self) -> &'a mut W {
1147        self.variant(M4W::_011)
1148    }
1149    #[doc = "This master has level 5 priority when accessing the slave port."]
1150    #[inline]
1151    pub fn _100(self) -> &'a mut W {
1152        self.variant(M4W::_100)
1153    }
1154    #[doc = "This master has level 6 priority when accessing the slave port."]
1155    #[inline]
1156    pub fn _101(self) -> &'a mut W {
1157        self.variant(M4W::_101)
1158    }
1159    #[doc = "This master has level 7 priority when accessing the slave port."]
1160    #[inline]
1161    pub fn _110(self) -> &'a mut W {
1162        self.variant(M4W::_110)
1163    }
1164    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1165    #[inline]
1166    pub fn _111(self) -> &'a mut W {
1167        self.variant(M4W::_111)
1168    }
1169    #[doc = r" Writes raw bits to the field"]
1170    #[inline]
1171    pub fn bits(self, value: u8) -> &'a mut W {
1172        const MASK: u8 = 7;
1173        const OFFSET: u8 = 16;
1174        self.w.bits &= !((MASK as u32) << OFFSET);
1175        self.w.bits |= ((value & MASK) as u32) << OFFSET;
1176        self.w
1177    }
1178}
1179#[doc = "Values that can be written to the field `M5`"]
1180pub enum M5W {
1181    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1182    _000,
1183    #[doc = "This master has level 2 priority when accessing the slave port."]
1184    _001,
1185    #[doc = "This master has level 3 priority when accessing the slave port."]
1186    _010,
1187    #[doc = "This master has level 4 priority when accessing the slave port."]
1188    _011,
1189    #[doc = "This master has level 5 priority when accessing the slave port."]
1190    _100,
1191    #[doc = "This master has level 6 priority when accessing the slave port."]
1192    _101,
1193    #[doc = "This master has level 7 priority when accessing the slave port."]
1194    _110,
1195    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1196    _111,
1197}
1198impl M5W {
1199    #[allow(missing_docs)]
1200    #[doc(hidden)]
1201    #[inline]
1202    pub fn _bits(&self) -> u8 {
1203        match *self {
1204            M5W::_000 => 0,
1205            M5W::_001 => 1,
1206            M5W::_010 => 2,
1207            M5W::_011 => 3,
1208            M5W::_100 => 4,
1209            M5W::_101 => 5,
1210            M5W::_110 => 6,
1211            M5W::_111 => 7,
1212        }
1213    }
1214}
1215#[doc = r" Proxy"]
1216pub struct _M5W<'a> {
1217    w: &'a mut W,
1218}
1219impl<'a> _M5W<'a> {
1220    #[doc = r" Writes `variant` to the field"]
1221    #[inline]
1222    pub fn variant(self, variant: M5W) -> &'a mut W {
1223        {
1224            self.bits(variant._bits())
1225        }
1226    }
1227    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1228    #[inline]
1229    pub fn _000(self) -> &'a mut W {
1230        self.variant(M5W::_000)
1231    }
1232    #[doc = "This master has level 2 priority when accessing the slave port."]
1233    #[inline]
1234    pub fn _001(self) -> &'a mut W {
1235        self.variant(M5W::_001)
1236    }
1237    #[doc = "This master has level 3 priority when accessing the slave port."]
1238    #[inline]
1239    pub fn _010(self) -> &'a mut W {
1240        self.variant(M5W::_010)
1241    }
1242    #[doc = "This master has level 4 priority when accessing the slave port."]
1243    #[inline]
1244    pub fn _011(self) -> &'a mut W {
1245        self.variant(M5W::_011)
1246    }
1247    #[doc = "This master has level 5 priority when accessing the slave port."]
1248    #[inline]
1249    pub fn _100(self) -> &'a mut W {
1250        self.variant(M5W::_100)
1251    }
1252    #[doc = "This master has level 6 priority when accessing the slave port."]
1253    #[inline]
1254    pub fn _101(self) -> &'a mut W {
1255        self.variant(M5W::_101)
1256    }
1257    #[doc = "This master has level 7 priority when accessing the slave port."]
1258    #[inline]
1259    pub fn _110(self) -> &'a mut W {
1260        self.variant(M5W::_110)
1261    }
1262    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1263    #[inline]
1264    pub fn _111(self) -> &'a mut W {
1265        self.variant(M5W::_111)
1266    }
1267    #[doc = r" Writes raw bits to the field"]
1268    #[inline]
1269    pub fn bits(self, value: u8) -> &'a mut W {
1270        const MASK: u8 = 7;
1271        const OFFSET: u8 = 20;
1272        self.w.bits &= !((MASK as u32) << OFFSET);
1273        self.w.bits |= ((value & MASK) as u32) << OFFSET;
1274        self.w
1275    }
1276}
1277#[doc = "Values that can be written to the field `M6`"]
1278pub enum M6W {
1279    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1280    _000,
1281    #[doc = "This master has level 2 priority when accessing the slave port."]
1282    _001,
1283    #[doc = "This master has level 3 priority when accessing the slave port."]
1284    _010,
1285    #[doc = "This master has level 4 priority when accessing the slave port."]
1286    _011,
1287    #[doc = "This master has level 5 priority when accessing the slave port."]
1288    _100,
1289    #[doc = "This master has level 6 priority when accessing the slave port."]
1290    _101,
1291    #[doc = "This master has level 7 priority when accessing the slave port."]
1292    _110,
1293    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1294    _111,
1295}
1296impl M6W {
1297    #[allow(missing_docs)]
1298    #[doc(hidden)]
1299    #[inline]
1300    pub fn _bits(&self) -> u8 {
1301        match *self {
1302            M6W::_000 => 0,
1303            M6W::_001 => 1,
1304            M6W::_010 => 2,
1305            M6W::_011 => 3,
1306            M6W::_100 => 4,
1307            M6W::_101 => 5,
1308            M6W::_110 => 6,
1309            M6W::_111 => 7,
1310        }
1311    }
1312}
1313#[doc = r" Proxy"]
1314pub struct _M6W<'a> {
1315    w: &'a mut W,
1316}
1317impl<'a> _M6W<'a> {
1318    #[doc = r" Writes `variant` to the field"]
1319    #[inline]
1320    pub fn variant(self, variant: M6W) -> &'a mut W {
1321        {
1322            self.bits(variant._bits())
1323        }
1324    }
1325    #[doc = "This master has level 1, or highest, priority when accessing the slave port."]
1326    #[inline]
1327    pub fn _000(self) -> &'a mut W {
1328        self.variant(M6W::_000)
1329    }
1330    #[doc = "This master has level 2 priority when accessing the slave port."]
1331    #[inline]
1332    pub fn _001(self) -> &'a mut W {
1333        self.variant(M6W::_001)
1334    }
1335    #[doc = "This master has level 3 priority when accessing the slave port."]
1336    #[inline]
1337    pub fn _010(self) -> &'a mut W {
1338        self.variant(M6W::_010)
1339    }
1340    #[doc = "This master has level 4 priority when accessing the slave port."]
1341    #[inline]
1342    pub fn _011(self) -> &'a mut W {
1343        self.variant(M6W::_011)
1344    }
1345    #[doc = "This master has level 5 priority when accessing the slave port."]
1346    #[inline]
1347    pub fn _100(self) -> &'a mut W {
1348        self.variant(M6W::_100)
1349    }
1350    #[doc = "This master has level 6 priority when accessing the slave port."]
1351    #[inline]
1352    pub fn _101(self) -> &'a mut W {
1353        self.variant(M6W::_101)
1354    }
1355    #[doc = "This master has level 7 priority when accessing the slave port."]
1356    #[inline]
1357    pub fn _110(self) -> &'a mut W {
1358        self.variant(M6W::_110)
1359    }
1360    #[doc = "This master has level 8, or lowest, priority when accessing the slave port."]
1361    #[inline]
1362    pub fn _111(self) -> &'a mut W {
1363        self.variant(M6W::_111)
1364    }
1365    #[doc = r" Writes raw bits to the field"]
1366    #[inline]
1367    pub fn bits(self, value: u8) -> &'a mut W {
1368        const MASK: u8 = 7;
1369        const OFFSET: u8 = 24;
1370        self.w.bits &= !((MASK as u32) << OFFSET);
1371        self.w.bits |= ((value & MASK) as u32) << OFFSET;
1372        self.w
1373    }
1374}
1375impl R {
1376    #[doc = r" Value of the register as raw bits"]
1377    #[inline]
1378    pub fn bits(&self) -> u32 {
1379        self.bits
1380    }
1381    #[doc = "Bits 0:2 - Master 0 Priority. Sets the arbitration priority for this port on the associated slave port."]
1382    #[inline]
1383    pub fn m0(&self) -> M0R {
1384        M0R::_from({
1385            const MASK: u8 = 7;
1386            const OFFSET: u8 = 0;
1387            ((self.bits >> OFFSET) & MASK as u32) as u8
1388        })
1389    }
1390    #[doc = "Bits 4:6 - Master 1 Priority. Sets the arbitration priority for this port on the associated slave port."]
1391    #[inline]
1392    pub fn m1(&self) -> M1R {
1393        M1R::_from({
1394            const MASK: u8 = 7;
1395            const OFFSET: u8 = 4;
1396            ((self.bits >> OFFSET) & MASK as u32) as u8
1397        })
1398    }
1399    #[doc = "Bits 8:10 - Master 2 Priority. Sets the arbitration priority for this port on the associated slave port."]
1400    #[inline]
1401    pub fn m2(&self) -> M2R {
1402        M2R::_from({
1403            const MASK: u8 = 7;
1404            const OFFSET: u8 = 8;
1405            ((self.bits >> OFFSET) & MASK as u32) as u8
1406        })
1407    }
1408    #[doc = "Bits 12:14 - Master 3 Priority. Sets the arbitration priority for this port on the associated slave port."]
1409    #[inline]
1410    pub fn m3(&self) -> M3R {
1411        M3R::_from({
1412            const MASK: u8 = 7;
1413            const OFFSET: u8 = 12;
1414            ((self.bits >> OFFSET) & MASK as u32) as u8
1415        })
1416    }
1417    #[doc = "Bits 16:18 - Master 4 Priority. Sets the arbitration priority for this port on the associated slave port."]
1418    #[inline]
1419    pub fn m4(&self) -> M4R {
1420        M4R::_from({
1421            const MASK: u8 = 7;
1422            const OFFSET: u8 = 16;
1423            ((self.bits >> OFFSET) & MASK as u32) as u8
1424        })
1425    }
1426    #[doc = "Bits 20:22 - Master 5 Priority. Sets the arbitration priority for this port on the associated slave port."]
1427    #[inline]
1428    pub fn m5(&self) -> M5R {
1429        M5R::_from({
1430            const MASK: u8 = 7;
1431            const OFFSET: u8 = 20;
1432            ((self.bits >> OFFSET) & MASK as u32) as u8
1433        })
1434    }
1435    #[doc = "Bits 24:26 - Master 6 Priority. Sets the arbitration priority for this port on the associated slave port."]
1436    #[inline]
1437    pub fn m6(&self) -> M6R {
1438        M6R::_from({
1439            const MASK: u8 = 7;
1440            const OFFSET: u8 = 24;
1441            ((self.bits >> OFFSET) & MASK as u32) as u8
1442        })
1443    }
1444}
1445impl W {
1446    #[doc = r" Reset value of the register"]
1447    #[inline]
1448    pub fn reset_value() -> W {
1449        W { bits: 106181136 }
1450    }
1451    #[doc = r" Writes raw bits to the register"]
1452    #[inline]
1453    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1454        self.bits = bits;
1455        self
1456    }
1457    #[doc = "Bits 0:2 - Master 0 Priority. Sets the arbitration priority for this port on the associated slave port."]
1458    #[inline]
1459    pub fn m0(&mut self) -> _M0W {
1460        _M0W { w: self }
1461    }
1462    #[doc = "Bits 4:6 - Master 1 Priority. Sets the arbitration priority for this port on the associated slave port."]
1463    #[inline]
1464    pub fn m1(&mut self) -> _M1W {
1465        _M1W { w: self }
1466    }
1467    #[doc = "Bits 8:10 - Master 2 Priority. Sets the arbitration priority for this port on the associated slave port."]
1468    #[inline]
1469    pub fn m2(&mut self) -> _M2W {
1470        _M2W { w: self }
1471    }
1472    #[doc = "Bits 12:14 - Master 3 Priority. Sets the arbitration priority for this port on the associated slave port."]
1473    #[inline]
1474    pub fn m3(&mut self) -> _M3W {
1475        _M3W { w: self }
1476    }
1477    #[doc = "Bits 16:18 - Master 4 Priority. Sets the arbitration priority for this port on the associated slave port."]
1478    #[inline]
1479    pub fn m4(&mut self) -> _M4W {
1480        _M4W { w: self }
1481    }
1482    #[doc = "Bits 20:22 - Master 5 Priority. Sets the arbitration priority for this port on the associated slave port."]
1483    #[inline]
1484    pub fn m5(&mut self) -> _M5W {
1485        _M5W { w: self }
1486    }
1487    #[doc = "Bits 24:26 - Master 6 Priority. Sets the arbitration priority for this port on the associated slave port."]
1488    #[inline]
1489    pub fn m6(&mut self) -> _M6W {
1490        _M6W { w: self }
1491    }
1492}