1#[doc = "Reader of register SHPR3"]
2pub type R = crate::R<u32, super::SHPR3>;
3#[doc = "Writer for register SHPR3"]
4pub type W = crate::W<u32, super::SHPR3>;
5#[doc = "Register SHPR3 `reset()`'s with value 0"]
6impl crate::ResetValue for super::SHPR3 {
7 type Type = u32;
8 #[inline(always)]
9 fn reset_value() -> Self::Type {
10 0
11 }
12}
13#[doc = "Reader of field `PRI_15`"]
14pub type PRI_15_R = crate::R<u8, u8>;
15#[doc = "Write proxy for field `PRI_15`"]
16pub struct PRI_15_W<'a> {
17 w: &'a mut W,
18}
19impl<'a> PRI_15_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 << 30)) | (((value as u32) & 0x03) << 30);
24 self.w
25 }
26}
27#[doc = "Reader of field `PRI_14`"]
28pub type PRI_14_R = crate::R<u8, u8>;
29#[doc = "Write proxy for field `PRI_14`"]
30pub struct PRI_14_W<'a> {
31 w: &'a mut W,
32}
33impl<'a> PRI_14_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 << 22)) | (((value as u32) & 0x03) << 22);
38 self.w
39 }
40}
41impl R {
42 #[doc = "Bits 30:31 - Priority of system handler 15, SysTick"]
43 #[inline(always)]
44 pub fn pri_15(&self) -> PRI_15_R {
45 PRI_15_R::new(((self.bits >> 30) & 0x03) as u8)
46 }
47 #[doc = "Bits 22:23 - Priority of system handler 14, PendSV"]
48 #[inline(always)]
49 pub fn pri_14(&self) -> PRI_14_R {
50 PRI_14_R::new(((self.bits >> 22) & 0x03) as u8)
51 }
52}
53impl W {
54 #[doc = "Bits 30:31 - Priority of system handler 15, SysTick"]
55 #[inline(always)]
56 pub fn pri_15(&mut self) -> PRI_15_W {
57 PRI_15_W { w: self }
58 }
59 #[doc = "Bits 22:23 - Priority of system handler 14, PendSV"]
60 #[inline(always)]
61 pub fn pri_14(&mut self) -> PRI_14_W {
62 PRI_14_W { w: self }
63 }
64}