atsamd51p/dmac/
pendch.rs
1#[doc = "Register `PENDCH` reader"]
2pub type R = crate::R<PendchSpec>;
3#[doc = "Field `PENDCH0` reader - Pending Channel 0"]
4pub type Pendch0R = crate::BitReader;
5#[doc = "Field `PENDCH1` reader - Pending Channel 1"]
6pub type Pendch1R = crate::BitReader;
7#[doc = "Field `PENDCH2` reader - Pending Channel 2"]
8pub type Pendch2R = crate::BitReader;
9#[doc = "Field `PENDCH3` reader - Pending Channel 3"]
10pub type Pendch3R = crate::BitReader;
11#[doc = "Field `PENDCH4` reader - Pending Channel 4"]
12pub type Pendch4R = crate::BitReader;
13#[doc = "Field `PENDCH5` reader - Pending Channel 5"]
14pub type Pendch5R = crate::BitReader;
15#[doc = "Field `PENDCH6` reader - Pending Channel 6"]
16pub type Pendch6R = crate::BitReader;
17#[doc = "Field `PENDCH7` reader - Pending Channel 7"]
18pub type Pendch7R = crate::BitReader;
19#[doc = "Field `PENDCH8` reader - Pending Channel 8"]
20pub type Pendch8R = crate::BitReader;
21#[doc = "Field `PENDCH9` reader - Pending Channel 9"]
22pub type Pendch9R = crate::BitReader;
23#[doc = "Field `PENDCH10` reader - Pending Channel 10"]
24pub type Pendch10R = crate::BitReader;
25#[doc = "Field `PENDCH11` reader - Pending Channel 11"]
26pub type Pendch11R = crate::BitReader;
27#[doc = "Field `PENDCH12` reader - Pending Channel 12"]
28pub type Pendch12R = crate::BitReader;
29#[doc = "Field `PENDCH13` reader - Pending Channel 13"]
30pub type Pendch13R = crate::BitReader;
31#[doc = "Field `PENDCH14` reader - Pending Channel 14"]
32pub type Pendch14R = crate::BitReader;
33#[doc = "Field `PENDCH15` reader - Pending Channel 15"]
34pub type Pendch15R = crate::BitReader;
35#[doc = "Field `PENDCH16` reader - Pending Channel 16"]
36pub type Pendch16R = crate::BitReader;
37#[doc = "Field `PENDCH17` reader - Pending Channel 17"]
38pub type Pendch17R = crate::BitReader;
39#[doc = "Field `PENDCH18` reader - Pending Channel 18"]
40pub type Pendch18R = crate::BitReader;
41#[doc = "Field `PENDCH19` reader - Pending Channel 19"]
42pub type Pendch19R = crate::BitReader;
43#[doc = "Field `PENDCH20` reader - Pending Channel 20"]
44pub type Pendch20R = crate::BitReader;
45#[doc = "Field `PENDCH21` reader - Pending Channel 21"]
46pub type Pendch21R = crate::BitReader;
47#[doc = "Field `PENDCH22` reader - Pending Channel 22"]
48pub type Pendch22R = crate::BitReader;
49#[doc = "Field `PENDCH23` reader - Pending Channel 23"]
50pub type Pendch23R = crate::BitReader;
51#[doc = "Field `PENDCH24` reader - Pending Channel 24"]
52pub type Pendch24R = crate::BitReader;
53#[doc = "Field `PENDCH25` reader - Pending Channel 25"]
54pub type Pendch25R = crate::BitReader;
55#[doc = "Field `PENDCH26` reader - Pending Channel 26"]
56pub type Pendch26R = crate::BitReader;
57#[doc = "Field `PENDCH27` reader - Pending Channel 27"]
58pub type Pendch27R = crate::BitReader;
59#[doc = "Field `PENDCH28` reader - Pending Channel 28"]
60pub type Pendch28R = crate::BitReader;
61#[doc = "Field `PENDCH29` reader - Pending Channel 29"]
62pub type Pendch29R = crate::BitReader;
63#[doc = "Field `PENDCH30` reader - Pending Channel 30"]
64pub type Pendch30R = crate::BitReader;
65#[doc = "Field `PENDCH31` reader - Pending Channel 31"]
66pub type Pendch31R = crate::BitReader;
67impl R {
68 #[doc = "Bit 0 - Pending Channel 0"]
69 #[inline(always)]
70 pub fn pendch0(&self) -> Pendch0R {
71 Pendch0R::new((self.bits & 1) != 0)
72 }
73 #[doc = "Bit 1 - Pending Channel 1"]
74 #[inline(always)]
75 pub fn pendch1(&self) -> Pendch1R {
76 Pendch1R::new(((self.bits >> 1) & 1) != 0)
77 }
78 #[doc = "Bit 2 - Pending Channel 2"]
79 #[inline(always)]
80 pub fn pendch2(&self) -> Pendch2R {
81 Pendch2R::new(((self.bits >> 2) & 1) != 0)
82 }
83 #[doc = "Bit 3 - Pending Channel 3"]
84 #[inline(always)]
85 pub fn pendch3(&self) -> Pendch3R {
86 Pendch3R::new(((self.bits >> 3) & 1) != 0)
87 }
88 #[doc = "Bit 4 - Pending Channel 4"]
89 #[inline(always)]
90 pub fn pendch4(&self) -> Pendch4R {
91 Pendch4R::new(((self.bits >> 4) & 1) != 0)
92 }
93 #[doc = "Bit 5 - Pending Channel 5"]
94 #[inline(always)]
95 pub fn pendch5(&self) -> Pendch5R {
96 Pendch5R::new(((self.bits >> 5) & 1) != 0)
97 }
98 #[doc = "Bit 6 - Pending Channel 6"]
99 #[inline(always)]
100 pub fn pendch6(&self) -> Pendch6R {
101 Pendch6R::new(((self.bits >> 6) & 1) != 0)
102 }
103 #[doc = "Bit 7 - Pending Channel 7"]
104 #[inline(always)]
105 pub fn pendch7(&self) -> Pendch7R {
106 Pendch7R::new(((self.bits >> 7) & 1) != 0)
107 }
108 #[doc = "Bit 8 - Pending Channel 8"]
109 #[inline(always)]
110 pub fn pendch8(&self) -> Pendch8R {
111 Pendch8R::new(((self.bits >> 8) & 1) != 0)
112 }
113 #[doc = "Bit 9 - Pending Channel 9"]
114 #[inline(always)]
115 pub fn pendch9(&self) -> Pendch9R {
116 Pendch9R::new(((self.bits >> 9) & 1) != 0)
117 }
118 #[doc = "Bit 10 - Pending Channel 10"]
119 #[inline(always)]
120 pub fn pendch10(&self) -> Pendch10R {
121 Pendch10R::new(((self.bits >> 10) & 1) != 0)
122 }
123 #[doc = "Bit 11 - Pending Channel 11"]
124 #[inline(always)]
125 pub fn pendch11(&self) -> Pendch11R {
126 Pendch11R::new(((self.bits >> 11) & 1) != 0)
127 }
128 #[doc = "Bit 12 - Pending Channel 12"]
129 #[inline(always)]
130 pub fn pendch12(&self) -> Pendch12R {
131 Pendch12R::new(((self.bits >> 12) & 1) != 0)
132 }
133 #[doc = "Bit 13 - Pending Channel 13"]
134 #[inline(always)]
135 pub fn pendch13(&self) -> Pendch13R {
136 Pendch13R::new(((self.bits >> 13) & 1) != 0)
137 }
138 #[doc = "Bit 14 - Pending Channel 14"]
139 #[inline(always)]
140 pub fn pendch14(&self) -> Pendch14R {
141 Pendch14R::new(((self.bits >> 14) & 1) != 0)
142 }
143 #[doc = "Bit 15 - Pending Channel 15"]
144 #[inline(always)]
145 pub fn pendch15(&self) -> Pendch15R {
146 Pendch15R::new(((self.bits >> 15) & 1) != 0)
147 }
148 #[doc = "Bit 16 - Pending Channel 16"]
149 #[inline(always)]
150 pub fn pendch16(&self) -> Pendch16R {
151 Pendch16R::new(((self.bits >> 16) & 1) != 0)
152 }
153 #[doc = "Bit 17 - Pending Channel 17"]
154 #[inline(always)]
155 pub fn pendch17(&self) -> Pendch17R {
156 Pendch17R::new(((self.bits >> 17) & 1) != 0)
157 }
158 #[doc = "Bit 18 - Pending Channel 18"]
159 #[inline(always)]
160 pub fn pendch18(&self) -> Pendch18R {
161 Pendch18R::new(((self.bits >> 18) & 1) != 0)
162 }
163 #[doc = "Bit 19 - Pending Channel 19"]
164 #[inline(always)]
165 pub fn pendch19(&self) -> Pendch19R {
166 Pendch19R::new(((self.bits >> 19) & 1) != 0)
167 }
168 #[doc = "Bit 20 - Pending Channel 20"]
169 #[inline(always)]
170 pub fn pendch20(&self) -> Pendch20R {
171 Pendch20R::new(((self.bits >> 20) & 1) != 0)
172 }
173 #[doc = "Bit 21 - Pending Channel 21"]
174 #[inline(always)]
175 pub fn pendch21(&self) -> Pendch21R {
176 Pendch21R::new(((self.bits >> 21) & 1) != 0)
177 }
178 #[doc = "Bit 22 - Pending Channel 22"]
179 #[inline(always)]
180 pub fn pendch22(&self) -> Pendch22R {
181 Pendch22R::new(((self.bits >> 22) & 1) != 0)
182 }
183 #[doc = "Bit 23 - Pending Channel 23"]
184 #[inline(always)]
185 pub fn pendch23(&self) -> Pendch23R {
186 Pendch23R::new(((self.bits >> 23) & 1) != 0)
187 }
188 #[doc = "Bit 24 - Pending Channel 24"]
189 #[inline(always)]
190 pub fn pendch24(&self) -> Pendch24R {
191 Pendch24R::new(((self.bits >> 24) & 1) != 0)
192 }
193 #[doc = "Bit 25 - Pending Channel 25"]
194 #[inline(always)]
195 pub fn pendch25(&self) -> Pendch25R {
196 Pendch25R::new(((self.bits >> 25) & 1) != 0)
197 }
198 #[doc = "Bit 26 - Pending Channel 26"]
199 #[inline(always)]
200 pub fn pendch26(&self) -> Pendch26R {
201 Pendch26R::new(((self.bits >> 26) & 1) != 0)
202 }
203 #[doc = "Bit 27 - Pending Channel 27"]
204 #[inline(always)]
205 pub fn pendch27(&self) -> Pendch27R {
206 Pendch27R::new(((self.bits >> 27) & 1) != 0)
207 }
208 #[doc = "Bit 28 - Pending Channel 28"]
209 #[inline(always)]
210 pub fn pendch28(&self) -> Pendch28R {
211 Pendch28R::new(((self.bits >> 28) & 1) != 0)
212 }
213 #[doc = "Bit 29 - Pending Channel 29"]
214 #[inline(always)]
215 pub fn pendch29(&self) -> Pendch29R {
216 Pendch29R::new(((self.bits >> 29) & 1) != 0)
217 }
218 #[doc = "Bit 30 - Pending Channel 30"]
219 #[inline(always)]
220 pub fn pendch30(&self) -> Pendch30R {
221 Pendch30R::new(((self.bits >> 30) & 1) != 0)
222 }
223 #[doc = "Bit 31 - Pending Channel 31"]
224 #[inline(always)]
225 pub fn pendch31(&self) -> Pendch31R {
226 Pendch31R::new(((self.bits >> 31) & 1) != 0)
227 }
228}
229#[doc = "Pending Channels\n\nYou can [`read`](crate::Reg::read) this register and get [`pendch::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
230pub struct PendchSpec;
231impl crate::RegisterSpec for PendchSpec {
232 type Ux = u32;
233}
234#[doc = "`read()` method returns [`pendch::R`](R) reader structure"]
235impl crate::Readable for PendchSpec {}
236#[doc = "`reset()` method sets PENDCH to value 0"]
237impl crate::Resettable for PendchSpec {
238 const RESET_VALUE: u32 = 0;
239}