1#[doc = "Reader of register NVIC_IPR6"]
2pub type R = crate::R<u32, super::NVIC_IPR6>;
3#[doc = "Writer for register NVIC_IPR6"]
4pub type W = crate::W<u32, super::NVIC_IPR6>;
5#[doc = "Register NVIC_IPR6 `reset()`'s with value 0"]
6impl crate::ResetValue for super::NVIC_IPR6 {
7 type Type = u32;
8 #[inline(always)]
9 fn reset_value() -> Self::Type {
10 0
11 }
12}
13#[doc = "Reader of field `PRI_24`"]
14pub type PRI_24_R = crate::R<u8, u8>;
15#[doc = "Write proxy for field `PRI_24`"]
16pub struct PRI_24_W<'a> {
17 w: &'a mut W,
18}
19impl<'a> PRI_24_W<'a> {
20 #[doc = r"Writes raw bits to the field"]
21 #[inline(always)]
22 pub unsafe fn bits(self, value: u8) -> &'a mut W {
23 self.w.bits = (self.w.bits & !(0x03 << 6)) | (((value as u32) & 0x03) << 6);
24 self.w
25 }
26}
27#[doc = "Reader of field `PRI_25`"]
28pub type PRI_25_R = crate::R<u8, u8>;
29#[doc = "Write proxy for field `PRI_25`"]
30pub struct PRI_25_W<'a> {
31 w: &'a mut W,
32}
33impl<'a> PRI_25_W<'a> {
34 #[doc = r"Writes raw bits to the field"]
35 #[inline(always)]
36 pub unsafe fn bits(self, value: u8) -> &'a mut W {
37 self.w.bits = (self.w.bits & !(0x03 << 14)) | (((value as u32) & 0x03) << 14);
38 self.w
39 }
40}
41#[doc = "Reader of field `PRI_26`"]
42pub type PRI_26_R = crate::R<u8, u8>;
43#[doc = "Write proxy for field `PRI_26`"]
44pub struct PRI_26_W<'a> {
45 w: &'a mut W,
46}
47impl<'a> PRI_26_W<'a> {
48 #[doc = r"Writes raw bits to the field"]
49 #[inline(always)]
50 pub unsafe fn bits(self, value: u8) -> &'a mut W {
51 self.w.bits = (self.w.bits & !(0x03 << 22)) | (((value as u32) & 0x03) << 22);
52 self.w
53 }
54}
55#[doc = "Reader of field `PRI_27`"]
56pub type PRI_27_R = crate::R<u8, u8>;
57#[doc = "Write proxy for field `PRI_27`"]
58pub struct PRI_27_W<'a> {
59 w: &'a mut W,
60}
61impl<'a> PRI_27_W<'a> {
62 #[doc = r"Writes raw bits to the field"]
63 #[inline(always)]
64 pub unsafe fn bits(self, value: u8) -> &'a mut W {
65 self.w.bits = (self.w.bits & !(0x03 << 30)) | (((value as u32) & 0x03) << 30);
66 self.w
67 }
68}
69impl R {
70 #[doc = "Bits 6:7 - Priority of IRQ24 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
71 #[inline(always)]
72 pub fn pri_24(&self) -> PRI_24_R {
73 PRI_24_R::new(((self.bits >> 6) & 0x03) as u8)
74 }
75 #[doc = "Bits 14:15 - Priority of IRQ25 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
76 #[inline(always)]
77 pub fn pri_25(&self) -> PRI_25_R {
78 PRI_25_R::new(((self.bits >> 14) & 0x03) as u8)
79 }
80 #[doc = "Bits 22:23 - Priority of IRQ26 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
81 #[inline(always)]
82 pub fn pri_26(&self) -> PRI_26_R {
83 PRI_26_R::new(((self.bits >> 22) & 0x03) as u8)
84 }
85 #[doc = "Bits 30:31 - Priority of IRQ27 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
86 #[inline(always)]
87 pub fn pri_27(&self) -> PRI_27_R {
88 PRI_27_R::new(((self.bits >> 30) & 0x03) as u8)
89 }
90}
91impl W {
92 #[doc = "Bits 6:7 - Priority of IRQ24 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
93 #[inline(always)]
94 pub fn pri_24(&mut self) -> PRI_24_W {
95 PRI_24_W { w: self }
96 }
97 #[doc = "Bits 14:15 - Priority of IRQ25 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
98 #[inline(always)]
99 pub fn pri_25(&mut self) -> PRI_25_W {
100 PRI_25_W { w: self }
101 }
102 #[doc = "Bits 22:23 - Priority of IRQ26 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
103 #[inline(always)]
104 pub fn pri_26(&mut self) -> PRI_26_W {
105 PRI_26_W { w: self }
106 }
107 #[doc = "Bits 30:31 - Priority of IRQ27 \"0\" denotes the highest priority and \"3\" denotes lowest priority"]
108 #[inline(always)]
109 pub fn pri_27(&mut self) -> PRI_27_W {
110 PRI_27_W { w: self }
111 }
112}