1#[doc = "Reader of register DC4"]
2pub type R = crate::R<u32, super::DC4>;
3#[doc = "Reader of field `GPIOA`"]
4pub type GPIOA_R = crate::R<bool, bool>;
5#[doc = "Reader of field `GPIOB`"]
6pub type GPIOB_R = crate::R<bool, bool>;
7#[doc = "Reader of field `GPIOC`"]
8pub type GPIOC_R = crate::R<bool, bool>;
9#[doc = "Reader of field `GPIOD`"]
10pub type GPIOD_R = crate::R<bool, bool>;
11#[doc = "Reader of field `GPIOE`"]
12pub type GPIOE_R = crate::R<bool, bool>;
13#[doc = "Reader of field `GPIOF`"]
14pub type GPIOF_R = crate::R<bool, bool>;
15#[doc = "Reader of field `GPIOG`"]
16pub type GPIOG_R = crate::R<bool, bool>;
17#[doc = "Reader of field `GPIOH`"]
18pub type GPIOH_R = crate::R<bool, bool>;
19#[doc = "Reader of field `GPIOJ`"]
20pub type GPIOJ_R = crate::R<bool, bool>;
21#[doc = "Reader of field `ROM`"]
22pub type ROM_R = crate::R<bool, bool>;
23#[doc = "Reader of field `UDMA`"]
24pub type UDMA_R = crate::R<bool, bool>;
25#[doc = "Reader of field `CCP6`"]
26pub type CCP6_R = crate::R<bool, bool>;
27#[doc = "Reader of field `CCP7`"]
28pub type CCP7_R = crate::R<bool, bool>;
29#[doc = "Reader of field `PICAL`"]
30pub type PICAL_R = crate::R<bool, bool>;
31#[doc = "Reader of field `E1588`"]
32pub type E1588_R = crate::R<bool, bool>;
33#[doc = "Reader of field `EMAC0`"]
34pub type EMAC0_R = crate::R<bool, bool>;
35#[doc = "Reader of field `EPHY0`"]
36pub type EPHY0_R = crate::R<bool, bool>;
37impl R {
38 #[doc = "Bit 0 - GPIO Port A Present"]
39 #[inline(always)]
40 pub fn gpioa(&self) -> GPIOA_R {
41 GPIOA_R::new((self.bits & 0x01) != 0)
42 }
43 #[doc = "Bit 1 - GPIO Port B Present"]
44 #[inline(always)]
45 pub fn gpiob(&self) -> GPIOB_R {
46 GPIOB_R::new(((self.bits >> 1) & 0x01) != 0)
47 }
48 #[doc = "Bit 2 - GPIO Port C Present"]
49 #[inline(always)]
50 pub fn gpioc(&self) -> GPIOC_R {
51 GPIOC_R::new(((self.bits >> 2) & 0x01) != 0)
52 }
53 #[doc = "Bit 3 - GPIO Port D Present"]
54 #[inline(always)]
55 pub fn gpiod(&self) -> GPIOD_R {
56 GPIOD_R::new(((self.bits >> 3) & 0x01) != 0)
57 }
58 #[doc = "Bit 4 - GPIO Port E Present"]
59 #[inline(always)]
60 pub fn gpioe(&self) -> GPIOE_R {
61 GPIOE_R::new(((self.bits >> 4) & 0x01) != 0)
62 }
63 #[doc = "Bit 5 - GPIO Port F Present"]
64 #[inline(always)]
65 pub fn gpiof(&self) -> GPIOF_R {
66 GPIOF_R::new(((self.bits >> 5) & 0x01) != 0)
67 }
68 #[doc = "Bit 6 - GPIO Port G Present"]
69 #[inline(always)]
70 pub fn gpiog(&self) -> GPIOG_R {
71 GPIOG_R::new(((self.bits >> 6) & 0x01) != 0)
72 }
73 #[doc = "Bit 7 - GPIO Port H Present"]
74 #[inline(always)]
75 pub fn gpioh(&self) -> GPIOH_R {
76 GPIOH_R::new(((self.bits >> 7) & 0x01) != 0)
77 }
78 #[doc = "Bit 8 - GPIO Port J Present"]
79 #[inline(always)]
80 pub fn gpioj(&self) -> GPIOJ_R {
81 GPIOJ_R::new(((self.bits >> 8) & 0x01) != 0)
82 }
83 #[doc = "Bit 12 - Internal Code ROM Present"]
84 #[inline(always)]
85 pub fn rom(&self) -> ROM_R {
86 ROM_R::new(((self.bits >> 12) & 0x01) != 0)
87 }
88 #[doc = "Bit 13 - Micro-DMA Module Present"]
89 #[inline(always)]
90 pub fn udma(&self) -> UDMA_R {
91 UDMA_R::new(((self.bits >> 13) & 0x01) != 0)
92 }
93 #[doc = "Bit 14 - T3CCP0 Pin Present"]
94 #[inline(always)]
95 pub fn ccp6(&self) -> CCP6_R {
96 CCP6_R::new(((self.bits >> 14) & 0x01) != 0)
97 }
98 #[doc = "Bit 15 - T3CCP1 Pin Present"]
99 #[inline(always)]
100 pub fn ccp7(&self) -> CCP7_R {
101 CCP7_R::new(((self.bits >> 15) & 0x01) != 0)
102 }
103 #[doc = "Bit 18 - PIOSC Calibrate"]
104 #[inline(always)]
105 pub fn pical(&self) -> PICAL_R {
106 PICAL_R::new(((self.bits >> 18) & 0x01) != 0)
107 }
108 #[doc = "Bit 24 - 1588 Capable"]
109 #[inline(always)]
110 pub fn e1588(&self) -> E1588_R {
111 E1588_R::new(((self.bits >> 24) & 0x01) != 0)
112 }
113 #[doc = "Bit 28 - Ethernet MAC Layer 0 Present"]
114 #[inline(always)]
115 pub fn emac0(&self) -> EMAC0_R {
116 EMAC0_R::new(((self.bits >> 28) & 0x01) != 0)
117 }
118 #[doc = "Bit 30 - Ethernet PHY Layer 0 Present"]
119 #[inline(always)]
120 pub fn ephy0(&self) -> EPHY0_R {
121 EPHY0_R::new(((self.bits >> 30) & 0x01) != 0)
122 }
123}