1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#[doc = "Register `GPIOF_HWCFGR8` reader"]
pub struct R(crate::R<GPIOF_HWCFGR8_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<GPIOF_HWCFGR8_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<GPIOF_HWCFGR8_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<GPIOF_HWCFGR8_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `AF_PRIO8` reader - AF_PRIO8"]
pub type AF_PRIO8_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AF_PRIO9` reader - AF_PRIO9"]
pub type AF_PRIO9_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AF_PRIO10` reader - AF_PRIO10"]
pub type AF_PRIO10_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AF_PRIO11` reader - AF_PRIO11"]
pub type AF_PRIO11_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AF_PRIO12` reader - AF_PRIO12"]
pub type AF_PRIO12_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AF_PRIO13` reader - AF_PRIO13"]
pub type AF_PRIO13_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AF_PRIO14` reader - AF_PRIO14"]
pub type AF_PRIO14_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AF_PRIO15` reader - AF_PRIO15"]
pub type AF_PRIO15_R = crate::FieldReader<u8, u8>;
impl R {
    #[doc = "Bits 0:3 - AF_PRIO8"]
    #[inline(always)]
    pub fn af_prio8(&self) -> AF_PRIO8_R {
        AF_PRIO8_R::new((self.bits & 0x0f) as u8)
    }
    #[doc = "Bits 4:7 - AF_PRIO9"]
    #[inline(always)]
    pub fn af_prio9(&self) -> AF_PRIO9_R {
        AF_PRIO9_R::new(((self.bits >> 4) & 0x0f) as u8)
    }
    #[doc = "Bits 8:11 - AF_PRIO10"]
    #[inline(always)]
    pub fn af_prio10(&self) -> AF_PRIO10_R {
        AF_PRIO10_R::new(((self.bits >> 8) & 0x0f) as u8)
    }
    #[doc = "Bits 12:15 - AF_PRIO11"]
    #[inline(always)]
    pub fn af_prio11(&self) -> AF_PRIO11_R {
        AF_PRIO11_R::new(((self.bits >> 12) & 0x0f) as u8)
    }
    #[doc = "Bits 16:19 - AF_PRIO12"]
    #[inline(always)]
    pub fn af_prio12(&self) -> AF_PRIO12_R {
        AF_PRIO12_R::new(((self.bits >> 16) & 0x0f) as u8)
    }
    #[doc = "Bits 20:23 - AF_PRIO13"]
    #[inline(always)]
    pub fn af_prio13(&self) -> AF_PRIO13_R {
        AF_PRIO13_R::new(((self.bits >> 20) & 0x0f) as u8)
    }
    #[doc = "Bits 24:27 - AF_PRIO14"]
    #[inline(always)]
    pub fn af_prio14(&self) -> AF_PRIO14_R {
        AF_PRIO14_R::new(((self.bits >> 24) & 0x0f) as u8)
    }
    #[doc = "Bits 28:31 - AF_PRIO15"]
    #[inline(always)]
    pub fn af_prio15(&self) -> AF_PRIO15_R {
        AF_PRIO15_R::new(((self.bits >> 28) & 0x0f) as u8)
    }
}
#[doc = "For GPIOA, B, C, D, E, F, G, H, I, and GPIOJ: For GPIOK and GPIOZ:\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gpiof_hwcfgr8](index.html) module"]
pub struct GPIOF_HWCFGR8_SPEC;
impl crate::RegisterSpec for GPIOF_HWCFGR8_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [gpiof_hwcfgr8::R](R) reader structure"]
impl crate::Readable for GPIOF_HWCFGR8_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets GPIOF_HWCFGR8 to value 0"]
impl crate::Resettable for GPIOF_HWCFGR8_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}