atsamd51p/dmac/
busych.rs

1#[doc = "Register `BUSYCH` reader"]
2pub type R = crate::R<BusychSpec>;
3#[doc = "Field `BUSYCH0` reader - Busy Channel 0"]
4pub type Busych0R = crate::BitReader;
5#[doc = "Field `BUSYCH1` reader - Busy Channel 1"]
6pub type Busych1R = crate::BitReader;
7#[doc = "Field `BUSYCH2` reader - Busy Channel 2"]
8pub type Busych2R = crate::BitReader;
9#[doc = "Field `BUSYCH3` reader - Busy Channel 3"]
10pub type Busych3R = crate::BitReader;
11#[doc = "Field `BUSYCH4` reader - Busy Channel 4"]
12pub type Busych4R = crate::BitReader;
13#[doc = "Field `BUSYCH5` reader - Busy Channel 5"]
14pub type Busych5R = crate::BitReader;
15#[doc = "Field `BUSYCH6` reader - Busy Channel 6"]
16pub type Busych6R = crate::BitReader;
17#[doc = "Field `BUSYCH7` reader - Busy Channel 7"]
18pub type Busych7R = crate::BitReader;
19#[doc = "Field `BUSYCH8` reader - Busy Channel 8"]
20pub type Busych8R = crate::BitReader;
21#[doc = "Field `BUSYCH9` reader - Busy Channel 9"]
22pub type Busych9R = crate::BitReader;
23#[doc = "Field `BUSYCH10` reader - Busy Channel 10"]
24pub type Busych10R = crate::BitReader;
25#[doc = "Field `BUSYCH11` reader - Busy Channel 11"]
26pub type Busych11R = crate::BitReader;
27#[doc = "Field `BUSYCH12` reader - Busy Channel 12"]
28pub type Busych12R = crate::BitReader;
29#[doc = "Field `BUSYCH13` reader - Busy Channel 13"]
30pub type Busych13R = crate::BitReader;
31#[doc = "Field `BUSYCH14` reader - Busy Channel 14"]
32pub type Busych14R = crate::BitReader;
33#[doc = "Field `BUSYCH15` reader - Busy Channel 15"]
34pub type Busych15R = crate::BitReader;
35#[doc = "Field `BUSYCH16` reader - Busy Channel 16"]
36pub type Busych16R = crate::BitReader;
37#[doc = "Field `BUSYCH17` reader - Busy Channel 17"]
38pub type Busych17R = crate::BitReader;
39#[doc = "Field `BUSYCH18` reader - Busy Channel 18"]
40pub type Busych18R = crate::BitReader;
41#[doc = "Field `BUSYCH19` reader - Busy Channel 19"]
42pub type Busych19R = crate::BitReader;
43#[doc = "Field `BUSYCH20` reader - Busy Channel 20"]
44pub type Busych20R = crate::BitReader;
45#[doc = "Field `BUSYCH21` reader - Busy Channel 21"]
46pub type Busych21R = crate::BitReader;
47#[doc = "Field `BUSYCH22` reader - Busy Channel 22"]
48pub type Busych22R = crate::BitReader;
49#[doc = "Field `BUSYCH23` reader - Busy Channel 23"]
50pub type Busych23R = crate::BitReader;
51#[doc = "Field `BUSYCH24` reader - Busy Channel 24"]
52pub type Busych24R = crate::BitReader;
53#[doc = "Field `BUSYCH25` reader - Busy Channel 25"]
54pub type Busych25R = crate::BitReader;
55#[doc = "Field `BUSYCH26` reader - Busy Channel 26"]
56pub type Busych26R = crate::BitReader;
57#[doc = "Field `BUSYCH27` reader - Busy Channel 27"]
58pub type Busych27R = crate::BitReader;
59#[doc = "Field `BUSYCH28` reader - Busy Channel 28"]
60pub type Busych28R = crate::BitReader;
61#[doc = "Field `BUSYCH29` reader - Busy Channel 29"]
62pub type Busych29R = crate::BitReader;
63#[doc = "Field `BUSYCH30` reader - Busy Channel 30"]
64pub type Busych30R = crate::BitReader;
65#[doc = "Field `BUSYCH31` reader - Busy Channel 31"]
66pub type Busych31R = crate::BitReader;
67impl R {
68    #[doc = "Bit 0 - Busy Channel 0"]
69    #[inline(always)]
70    pub fn busych0(&self) -> Busych0R {
71        Busych0R::new((self.bits & 1) != 0)
72    }
73    #[doc = "Bit 1 - Busy Channel 1"]
74    #[inline(always)]
75    pub fn busych1(&self) -> Busych1R {
76        Busych1R::new(((self.bits >> 1) & 1) != 0)
77    }
78    #[doc = "Bit 2 - Busy Channel 2"]
79    #[inline(always)]
80    pub fn busych2(&self) -> Busych2R {
81        Busych2R::new(((self.bits >> 2) & 1) != 0)
82    }
83    #[doc = "Bit 3 - Busy Channel 3"]
84    #[inline(always)]
85    pub fn busych3(&self) -> Busych3R {
86        Busych3R::new(((self.bits >> 3) & 1) != 0)
87    }
88    #[doc = "Bit 4 - Busy Channel 4"]
89    #[inline(always)]
90    pub fn busych4(&self) -> Busych4R {
91        Busych4R::new(((self.bits >> 4) & 1) != 0)
92    }
93    #[doc = "Bit 5 - Busy Channel 5"]
94    #[inline(always)]
95    pub fn busych5(&self) -> Busych5R {
96        Busych5R::new(((self.bits >> 5) & 1) != 0)
97    }
98    #[doc = "Bit 6 - Busy Channel 6"]
99    #[inline(always)]
100    pub fn busych6(&self) -> Busych6R {
101        Busych6R::new(((self.bits >> 6) & 1) != 0)
102    }
103    #[doc = "Bit 7 - Busy Channel 7"]
104    #[inline(always)]
105    pub fn busych7(&self) -> Busych7R {
106        Busych7R::new(((self.bits >> 7) & 1) != 0)
107    }
108    #[doc = "Bit 8 - Busy Channel 8"]
109    #[inline(always)]
110    pub fn busych8(&self) -> Busych8R {
111        Busych8R::new(((self.bits >> 8) & 1) != 0)
112    }
113    #[doc = "Bit 9 - Busy Channel 9"]
114    #[inline(always)]
115    pub fn busych9(&self) -> Busych9R {
116        Busych9R::new(((self.bits >> 9) & 1) != 0)
117    }
118    #[doc = "Bit 10 - Busy Channel 10"]
119    #[inline(always)]
120    pub fn busych10(&self) -> Busych10R {
121        Busych10R::new(((self.bits >> 10) & 1) != 0)
122    }
123    #[doc = "Bit 11 - Busy Channel 11"]
124    #[inline(always)]
125    pub fn busych11(&self) -> Busych11R {
126        Busych11R::new(((self.bits >> 11) & 1) != 0)
127    }
128    #[doc = "Bit 12 - Busy Channel 12"]
129    #[inline(always)]
130    pub fn busych12(&self) -> Busych12R {
131        Busych12R::new(((self.bits >> 12) & 1) != 0)
132    }
133    #[doc = "Bit 13 - Busy Channel 13"]
134    #[inline(always)]
135    pub fn busych13(&self) -> Busych13R {
136        Busych13R::new(((self.bits >> 13) & 1) != 0)
137    }
138    #[doc = "Bit 14 - Busy Channel 14"]
139    #[inline(always)]
140    pub fn busych14(&self) -> Busych14R {
141        Busych14R::new(((self.bits >> 14) & 1) != 0)
142    }
143    #[doc = "Bit 15 - Busy Channel 15"]
144    #[inline(always)]
145    pub fn busych15(&self) -> Busych15R {
146        Busych15R::new(((self.bits >> 15) & 1) != 0)
147    }
148    #[doc = "Bit 16 - Busy Channel 16"]
149    #[inline(always)]
150    pub fn busych16(&self) -> Busych16R {
151        Busych16R::new(((self.bits >> 16) & 1) != 0)
152    }
153    #[doc = "Bit 17 - Busy Channel 17"]
154    #[inline(always)]
155    pub fn busych17(&self) -> Busych17R {
156        Busych17R::new(((self.bits >> 17) & 1) != 0)
157    }
158    #[doc = "Bit 18 - Busy Channel 18"]
159    #[inline(always)]
160    pub fn busych18(&self) -> Busych18R {
161        Busych18R::new(((self.bits >> 18) & 1) != 0)
162    }
163    #[doc = "Bit 19 - Busy Channel 19"]
164    #[inline(always)]
165    pub fn busych19(&self) -> Busych19R {
166        Busych19R::new(((self.bits >> 19) & 1) != 0)
167    }
168    #[doc = "Bit 20 - Busy Channel 20"]
169    #[inline(always)]
170    pub fn busych20(&self) -> Busych20R {
171        Busych20R::new(((self.bits >> 20) & 1) != 0)
172    }
173    #[doc = "Bit 21 - Busy Channel 21"]
174    #[inline(always)]
175    pub fn busych21(&self) -> Busych21R {
176        Busych21R::new(((self.bits >> 21) & 1) != 0)
177    }
178    #[doc = "Bit 22 - Busy Channel 22"]
179    #[inline(always)]
180    pub fn busych22(&self) -> Busych22R {
181        Busych22R::new(((self.bits >> 22) & 1) != 0)
182    }
183    #[doc = "Bit 23 - Busy Channel 23"]
184    #[inline(always)]
185    pub fn busych23(&self) -> Busych23R {
186        Busych23R::new(((self.bits >> 23) & 1) != 0)
187    }
188    #[doc = "Bit 24 - Busy Channel 24"]
189    #[inline(always)]
190    pub fn busych24(&self) -> Busych24R {
191        Busych24R::new(((self.bits >> 24) & 1) != 0)
192    }
193    #[doc = "Bit 25 - Busy Channel 25"]
194    #[inline(always)]
195    pub fn busych25(&self) -> Busych25R {
196        Busych25R::new(((self.bits >> 25) & 1) != 0)
197    }
198    #[doc = "Bit 26 - Busy Channel 26"]
199    #[inline(always)]
200    pub fn busych26(&self) -> Busych26R {
201        Busych26R::new(((self.bits >> 26) & 1) != 0)
202    }
203    #[doc = "Bit 27 - Busy Channel 27"]
204    #[inline(always)]
205    pub fn busych27(&self) -> Busych27R {
206        Busych27R::new(((self.bits >> 27) & 1) != 0)
207    }
208    #[doc = "Bit 28 - Busy Channel 28"]
209    #[inline(always)]
210    pub fn busych28(&self) -> Busych28R {
211        Busych28R::new(((self.bits >> 28) & 1) != 0)
212    }
213    #[doc = "Bit 29 - Busy Channel 29"]
214    #[inline(always)]
215    pub fn busych29(&self) -> Busych29R {
216        Busych29R::new(((self.bits >> 29) & 1) != 0)
217    }
218    #[doc = "Bit 30 - Busy Channel 30"]
219    #[inline(always)]
220    pub fn busych30(&self) -> Busych30R {
221        Busych30R::new(((self.bits >> 30) & 1) != 0)
222    }
223    #[doc = "Bit 31 - Busy Channel 31"]
224    #[inline(always)]
225    pub fn busych31(&self) -> Busych31R {
226        Busych31R::new(((self.bits >> 31) & 1) != 0)
227    }
228}
229#[doc = "Busy Channels\n\nYou can [`read`](crate::Reg::read) this register and get [`busych::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
230pub struct BusychSpec;
231impl crate::RegisterSpec for BusychSpec {
232    type Ux = u32;
233}
234#[doc = "`read()` method returns [`busych::R`](R) reader structure"]
235impl crate::Readable for BusychSpec {}
236#[doc = "`reset()` method sets BUSYCH to value 0"]
237impl crate::Resettable for BusychSpec {
238    const RESET_VALUE: u32 = 0;
239}