alt_sam3x8e/pioc/pusr/
mod.rs1#[doc = "Reader of register PUSR"]
2pub type R = crate::R<u32, super::PUSR>;
3#[doc = "Reader of field `P0`"]
4pub type P0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `P1`"]
6pub type P1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `P2`"]
8pub type P2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `P3`"]
10pub type P3_R = crate::R<bool, bool>;
11#[doc = "Reader of field `P4`"]
12pub type P4_R = crate::R<bool, bool>;
13#[doc = "Reader of field `P5`"]
14pub type P5_R = crate::R<bool, bool>;
15#[doc = "Reader of field `P6`"]
16pub type P6_R = crate::R<bool, bool>;
17#[doc = "Reader of field `P7`"]
18pub type P7_R = crate::R<bool, bool>;
19#[doc = "Reader of field `P8`"]
20pub type P8_R = crate::R<bool, bool>;
21#[doc = "Reader of field `P9`"]
22pub type P9_R = crate::R<bool, bool>;
23#[doc = "Reader of field `P10`"]
24pub type P10_R = crate::R<bool, bool>;
25#[doc = "Reader of field `P11`"]
26pub type P11_R = crate::R<bool, bool>;
27#[doc = "Reader of field `P12`"]
28pub type P12_R = crate::R<bool, bool>;
29#[doc = "Reader of field `P13`"]
30pub type P13_R = crate::R<bool, bool>;
31#[doc = "Reader of field `P14`"]
32pub type P14_R = crate::R<bool, bool>;
33#[doc = "Reader of field `P15`"]
34pub type P15_R = crate::R<bool, bool>;
35#[doc = "Reader of field `P16`"]
36pub type P16_R = crate::R<bool, bool>;
37#[doc = "Reader of field `P17`"]
38pub type P17_R = crate::R<bool, bool>;
39#[doc = "Reader of field `P18`"]
40pub type P18_R = crate::R<bool, bool>;
41#[doc = "Reader of field `P19`"]
42pub type P19_R = crate::R<bool, bool>;
43#[doc = "Reader of field `P20`"]
44pub type P20_R = crate::R<bool, bool>;
45#[doc = "Reader of field `P21`"]
46pub type P21_R = crate::R<bool, bool>;
47#[doc = "Reader of field `P22`"]
48pub type P22_R = crate::R<bool, bool>;
49#[doc = "Reader of field `P23`"]
50pub type P23_R = crate::R<bool, bool>;
51#[doc = "Reader of field `P24`"]
52pub type P24_R = crate::R<bool, bool>;
53#[doc = "Reader of field `P25`"]
54pub type P25_R = crate::R<bool, bool>;
55#[doc = "Reader of field `P26`"]
56pub type P26_R = crate::R<bool, bool>;
57#[doc = "Reader of field `P27`"]
58pub type P27_R = crate::R<bool, bool>;
59#[doc = "Reader of field `P28`"]
60pub type P28_R = crate::R<bool, bool>;
61#[doc = "Reader of field `P29`"]
62pub type P29_R = crate::R<bool, bool>;
63#[doc = "Reader of field `P30`"]
64pub type P30_R = crate::R<bool, bool>;
65#[doc = "Reader of field `P31`"]
66pub type P31_R = crate::R<bool, bool>;
67impl R {
68 #[doc = "Bit 0 - Pull Up Status."]
69 #[inline(always)]
70 pub fn p0(&self) -> P0_R {
71 P0_R::new((self.bits & 0x01) != 0)
72 }
73 #[doc = "Bit 1 - Pull Up Status."]
74 #[inline(always)]
75 pub fn p1(&self) -> P1_R {
76 P1_R::new(((self.bits >> 1) & 0x01) != 0)
77 }
78 #[doc = "Bit 2 - Pull Up Status."]
79 #[inline(always)]
80 pub fn p2(&self) -> P2_R {
81 P2_R::new(((self.bits >> 2) & 0x01) != 0)
82 }
83 #[doc = "Bit 3 - Pull Up Status."]
84 #[inline(always)]
85 pub fn p3(&self) -> P3_R {
86 P3_R::new(((self.bits >> 3) & 0x01) != 0)
87 }
88 #[doc = "Bit 4 - Pull Up Status."]
89 #[inline(always)]
90 pub fn p4(&self) -> P4_R {
91 P4_R::new(((self.bits >> 4) & 0x01) != 0)
92 }
93 #[doc = "Bit 5 - Pull Up Status."]
94 #[inline(always)]
95 pub fn p5(&self) -> P5_R {
96 P5_R::new(((self.bits >> 5) & 0x01) != 0)
97 }
98 #[doc = "Bit 6 - Pull Up Status."]
99 #[inline(always)]
100 pub fn p6(&self) -> P6_R {
101 P6_R::new(((self.bits >> 6) & 0x01) != 0)
102 }
103 #[doc = "Bit 7 - Pull Up Status."]
104 #[inline(always)]
105 pub fn p7(&self) -> P7_R {
106 P7_R::new(((self.bits >> 7) & 0x01) != 0)
107 }
108 #[doc = "Bit 8 - Pull Up Status."]
109 #[inline(always)]
110 pub fn p8(&self) -> P8_R {
111 P8_R::new(((self.bits >> 8) & 0x01) != 0)
112 }
113 #[doc = "Bit 9 - Pull Up Status."]
114 #[inline(always)]
115 pub fn p9(&self) -> P9_R {
116 P9_R::new(((self.bits >> 9) & 0x01) != 0)
117 }
118 #[doc = "Bit 10 - Pull Up Status."]
119 #[inline(always)]
120 pub fn p10(&self) -> P10_R {
121 P10_R::new(((self.bits >> 10) & 0x01) != 0)
122 }
123 #[doc = "Bit 11 - Pull Up Status."]
124 #[inline(always)]
125 pub fn p11(&self) -> P11_R {
126 P11_R::new(((self.bits >> 11) & 0x01) != 0)
127 }
128 #[doc = "Bit 12 - Pull Up Status."]
129 #[inline(always)]
130 pub fn p12(&self) -> P12_R {
131 P12_R::new(((self.bits >> 12) & 0x01) != 0)
132 }
133 #[doc = "Bit 13 - Pull Up Status."]
134 #[inline(always)]
135 pub fn p13(&self) -> P13_R {
136 P13_R::new(((self.bits >> 13) & 0x01) != 0)
137 }
138 #[doc = "Bit 14 - Pull Up Status."]
139 #[inline(always)]
140 pub fn p14(&self) -> P14_R {
141 P14_R::new(((self.bits >> 14) & 0x01) != 0)
142 }
143 #[doc = "Bit 15 - Pull Up Status."]
144 #[inline(always)]
145 pub fn p15(&self) -> P15_R {
146 P15_R::new(((self.bits >> 15) & 0x01) != 0)
147 }
148 #[doc = "Bit 16 - Pull Up Status."]
149 #[inline(always)]
150 pub fn p16(&self) -> P16_R {
151 P16_R::new(((self.bits >> 16) & 0x01) != 0)
152 }
153 #[doc = "Bit 17 - Pull Up Status."]
154 #[inline(always)]
155 pub fn p17(&self) -> P17_R {
156 P17_R::new(((self.bits >> 17) & 0x01) != 0)
157 }
158 #[doc = "Bit 18 - Pull Up Status."]
159 #[inline(always)]
160 pub fn p18(&self) -> P18_R {
161 P18_R::new(((self.bits >> 18) & 0x01) != 0)
162 }
163 #[doc = "Bit 19 - Pull Up Status."]
164 #[inline(always)]
165 pub fn p19(&self) -> P19_R {
166 P19_R::new(((self.bits >> 19) & 0x01) != 0)
167 }
168 #[doc = "Bit 20 - Pull Up Status."]
169 #[inline(always)]
170 pub fn p20(&self) -> P20_R {
171 P20_R::new(((self.bits >> 20) & 0x01) != 0)
172 }
173 #[doc = "Bit 21 - Pull Up Status."]
174 #[inline(always)]
175 pub fn p21(&self) -> P21_R {
176 P21_R::new(((self.bits >> 21) & 0x01) != 0)
177 }
178 #[doc = "Bit 22 - Pull Up Status."]
179 #[inline(always)]
180 pub fn p22(&self) -> P22_R {
181 P22_R::new(((self.bits >> 22) & 0x01) != 0)
182 }
183 #[doc = "Bit 23 - Pull Up Status."]
184 #[inline(always)]
185 pub fn p23(&self) -> P23_R {
186 P23_R::new(((self.bits >> 23) & 0x01) != 0)
187 }
188 #[doc = "Bit 24 - Pull Up Status."]
189 #[inline(always)]
190 pub fn p24(&self) -> P24_R {
191 P24_R::new(((self.bits >> 24) & 0x01) != 0)
192 }
193 #[doc = "Bit 25 - Pull Up Status."]
194 #[inline(always)]
195 pub fn p25(&self) -> P25_R {
196 P25_R::new(((self.bits >> 25) & 0x01) != 0)
197 }
198 #[doc = "Bit 26 - Pull Up Status."]
199 #[inline(always)]
200 pub fn p26(&self) -> P26_R {
201 P26_R::new(((self.bits >> 26) & 0x01) != 0)
202 }
203 #[doc = "Bit 27 - Pull Up Status."]
204 #[inline(always)]
205 pub fn p27(&self) -> P27_R {
206 P27_R::new(((self.bits >> 27) & 0x01) != 0)
207 }
208 #[doc = "Bit 28 - Pull Up Status."]
209 #[inline(always)]
210 pub fn p28(&self) -> P28_R {
211 P28_R::new(((self.bits >> 28) & 0x01) != 0)
212 }
213 #[doc = "Bit 29 - Pull Up Status."]
214 #[inline(always)]
215 pub fn p29(&self) -> P29_R {
216 P29_R::new(((self.bits >> 29) & 0x01) != 0)
217 }
218 #[doc = "Bit 30 - Pull Up Status."]
219 #[inline(always)]
220 pub fn p30(&self) -> P30_R {
221 P30_R::new(((self.bits >> 30) & 0x01) != 0)
222 }
223 #[doc = "Bit 31 - Pull Up Status."]
224 #[inline(always)]
225 pub fn p31(&self) -> P31_R {
226 P31_R::new(((self.bits >> 31) & 0x01) != 0)
227 }
228}