atsamd51j/dmac/
intstatus.rs

1#[doc = "Register `INTSTATUS` reader"]
2pub type R = crate::R<IntstatusSpec>;
3#[doc = "Field `CHINT0` reader - Channel 0 Pending Interrupt"]
4pub type Chint0R = crate::BitReader;
5#[doc = "Field `CHINT1` reader - Channel 1 Pending Interrupt"]
6pub type Chint1R = crate::BitReader;
7#[doc = "Field `CHINT2` reader - Channel 2 Pending Interrupt"]
8pub type Chint2R = crate::BitReader;
9#[doc = "Field `CHINT3` reader - Channel 3 Pending Interrupt"]
10pub type Chint3R = crate::BitReader;
11#[doc = "Field `CHINT4` reader - Channel 4 Pending Interrupt"]
12pub type Chint4R = crate::BitReader;
13#[doc = "Field `CHINT5` reader - Channel 5 Pending Interrupt"]
14pub type Chint5R = crate::BitReader;
15#[doc = "Field `CHINT6` reader - Channel 6 Pending Interrupt"]
16pub type Chint6R = crate::BitReader;
17#[doc = "Field `CHINT7` reader - Channel 7 Pending Interrupt"]
18pub type Chint7R = crate::BitReader;
19#[doc = "Field `CHINT8` reader - Channel 8 Pending Interrupt"]
20pub type Chint8R = crate::BitReader;
21#[doc = "Field `CHINT9` reader - Channel 9 Pending Interrupt"]
22pub type Chint9R = crate::BitReader;
23#[doc = "Field `CHINT10` reader - Channel 10 Pending Interrupt"]
24pub type Chint10R = crate::BitReader;
25#[doc = "Field `CHINT11` reader - Channel 11 Pending Interrupt"]
26pub type Chint11R = crate::BitReader;
27#[doc = "Field `CHINT12` reader - Channel 12 Pending Interrupt"]
28pub type Chint12R = crate::BitReader;
29#[doc = "Field `CHINT13` reader - Channel 13 Pending Interrupt"]
30pub type Chint13R = crate::BitReader;
31#[doc = "Field `CHINT14` reader - Channel 14 Pending Interrupt"]
32pub type Chint14R = crate::BitReader;
33#[doc = "Field `CHINT15` reader - Channel 15 Pending Interrupt"]
34pub type Chint15R = crate::BitReader;
35#[doc = "Field `CHINT16` reader - Channel 16 Pending Interrupt"]
36pub type Chint16R = crate::BitReader;
37#[doc = "Field `CHINT17` reader - Channel 17 Pending Interrupt"]
38pub type Chint17R = crate::BitReader;
39#[doc = "Field `CHINT18` reader - Channel 18 Pending Interrupt"]
40pub type Chint18R = crate::BitReader;
41#[doc = "Field `CHINT19` reader - Channel 19 Pending Interrupt"]
42pub type Chint19R = crate::BitReader;
43#[doc = "Field `CHINT20` reader - Channel 20 Pending Interrupt"]
44pub type Chint20R = crate::BitReader;
45#[doc = "Field `CHINT21` reader - Channel 21 Pending Interrupt"]
46pub type Chint21R = crate::BitReader;
47#[doc = "Field `CHINT22` reader - Channel 22 Pending Interrupt"]
48pub type Chint22R = crate::BitReader;
49#[doc = "Field `CHINT23` reader - Channel 23 Pending Interrupt"]
50pub type Chint23R = crate::BitReader;
51#[doc = "Field `CHINT24` reader - Channel 24 Pending Interrupt"]
52pub type Chint24R = crate::BitReader;
53#[doc = "Field `CHINT25` reader - Channel 25 Pending Interrupt"]
54pub type Chint25R = crate::BitReader;
55#[doc = "Field `CHINT26` reader - Channel 26 Pending Interrupt"]
56pub type Chint26R = crate::BitReader;
57#[doc = "Field `CHINT27` reader - Channel 27 Pending Interrupt"]
58pub type Chint27R = crate::BitReader;
59#[doc = "Field `CHINT28` reader - Channel 28 Pending Interrupt"]
60pub type Chint28R = crate::BitReader;
61#[doc = "Field `CHINT29` reader - Channel 29 Pending Interrupt"]
62pub type Chint29R = crate::BitReader;
63#[doc = "Field `CHINT30` reader - Channel 30 Pending Interrupt"]
64pub type Chint30R = crate::BitReader;
65#[doc = "Field `CHINT31` reader - Channel 31 Pending Interrupt"]
66pub type Chint31R = crate::BitReader;
67impl R {
68    #[doc = "Bit 0 - Channel 0 Pending Interrupt"]
69    #[inline(always)]
70    pub fn chint0(&self) -> Chint0R {
71        Chint0R::new((self.bits & 1) != 0)
72    }
73    #[doc = "Bit 1 - Channel 1 Pending Interrupt"]
74    #[inline(always)]
75    pub fn chint1(&self) -> Chint1R {
76        Chint1R::new(((self.bits >> 1) & 1) != 0)
77    }
78    #[doc = "Bit 2 - Channel 2 Pending Interrupt"]
79    #[inline(always)]
80    pub fn chint2(&self) -> Chint2R {
81        Chint2R::new(((self.bits >> 2) & 1) != 0)
82    }
83    #[doc = "Bit 3 - Channel 3 Pending Interrupt"]
84    #[inline(always)]
85    pub fn chint3(&self) -> Chint3R {
86        Chint3R::new(((self.bits >> 3) & 1) != 0)
87    }
88    #[doc = "Bit 4 - Channel 4 Pending Interrupt"]
89    #[inline(always)]
90    pub fn chint4(&self) -> Chint4R {
91        Chint4R::new(((self.bits >> 4) & 1) != 0)
92    }
93    #[doc = "Bit 5 - Channel 5 Pending Interrupt"]
94    #[inline(always)]
95    pub fn chint5(&self) -> Chint5R {
96        Chint5R::new(((self.bits >> 5) & 1) != 0)
97    }
98    #[doc = "Bit 6 - Channel 6 Pending Interrupt"]
99    #[inline(always)]
100    pub fn chint6(&self) -> Chint6R {
101        Chint6R::new(((self.bits >> 6) & 1) != 0)
102    }
103    #[doc = "Bit 7 - Channel 7 Pending Interrupt"]
104    #[inline(always)]
105    pub fn chint7(&self) -> Chint7R {
106        Chint7R::new(((self.bits >> 7) & 1) != 0)
107    }
108    #[doc = "Bit 8 - Channel 8 Pending Interrupt"]
109    #[inline(always)]
110    pub fn chint8(&self) -> Chint8R {
111        Chint8R::new(((self.bits >> 8) & 1) != 0)
112    }
113    #[doc = "Bit 9 - Channel 9 Pending Interrupt"]
114    #[inline(always)]
115    pub fn chint9(&self) -> Chint9R {
116        Chint9R::new(((self.bits >> 9) & 1) != 0)
117    }
118    #[doc = "Bit 10 - Channel 10 Pending Interrupt"]
119    #[inline(always)]
120    pub fn chint10(&self) -> Chint10R {
121        Chint10R::new(((self.bits >> 10) & 1) != 0)
122    }
123    #[doc = "Bit 11 - Channel 11 Pending Interrupt"]
124    #[inline(always)]
125    pub fn chint11(&self) -> Chint11R {
126        Chint11R::new(((self.bits >> 11) & 1) != 0)
127    }
128    #[doc = "Bit 12 - Channel 12 Pending Interrupt"]
129    #[inline(always)]
130    pub fn chint12(&self) -> Chint12R {
131        Chint12R::new(((self.bits >> 12) & 1) != 0)
132    }
133    #[doc = "Bit 13 - Channel 13 Pending Interrupt"]
134    #[inline(always)]
135    pub fn chint13(&self) -> Chint13R {
136        Chint13R::new(((self.bits >> 13) & 1) != 0)
137    }
138    #[doc = "Bit 14 - Channel 14 Pending Interrupt"]
139    #[inline(always)]
140    pub fn chint14(&self) -> Chint14R {
141        Chint14R::new(((self.bits >> 14) & 1) != 0)
142    }
143    #[doc = "Bit 15 - Channel 15 Pending Interrupt"]
144    #[inline(always)]
145    pub fn chint15(&self) -> Chint15R {
146        Chint15R::new(((self.bits >> 15) & 1) != 0)
147    }
148    #[doc = "Bit 16 - Channel 16 Pending Interrupt"]
149    #[inline(always)]
150    pub fn chint16(&self) -> Chint16R {
151        Chint16R::new(((self.bits >> 16) & 1) != 0)
152    }
153    #[doc = "Bit 17 - Channel 17 Pending Interrupt"]
154    #[inline(always)]
155    pub fn chint17(&self) -> Chint17R {
156        Chint17R::new(((self.bits >> 17) & 1) != 0)
157    }
158    #[doc = "Bit 18 - Channel 18 Pending Interrupt"]
159    #[inline(always)]
160    pub fn chint18(&self) -> Chint18R {
161        Chint18R::new(((self.bits >> 18) & 1) != 0)
162    }
163    #[doc = "Bit 19 - Channel 19 Pending Interrupt"]
164    #[inline(always)]
165    pub fn chint19(&self) -> Chint19R {
166        Chint19R::new(((self.bits >> 19) & 1) != 0)
167    }
168    #[doc = "Bit 20 - Channel 20 Pending Interrupt"]
169    #[inline(always)]
170    pub fn chint20(&self) -> Chint20R {
171        Chint20R::new(((self.bits >> 20) & 1) != 0)
172    }
173    #[doc = "Bit 21 - Channel 21 Pending Interrupt"]
174    #[inline(always)]
175    pub fn chint21(&self) -> Chint21R {
176        Chint21R::new(((self.bits >> 21) & 1) != 0)
177    }
178    #[doc = "Bit 22 - Channel 22 Pending Interrupt"]
179    #[inline(always)]
180    pub fn chint22(&self) -> Chint22R {
181        Chint22R::new(((self.bits >> 22) & 1) != 0)
182    }
183    #[doc = "Bit 23 - Channel 23 Pending Interrupt"]
184    #[inline(always)]
185    pub fn chint23(&self) -> Chint23R {
186        Chint23R::new(((self.bits >> 23) & 1) != 0)
187    }
188    #[doc = "Bit 24 - Channel 24 Pending Interrupt"]
189    #[inline(always)]
190    pub fn chint24(&self) -> Chint24R {
191        Chint24R::new(((self.bits >> 24) & 1) != 0)
192    }
193    #[doc = "Bit 25 - Channel 25 Pending Interrupt"]
194    #[inline(always)]
195    pub fn chint25(&self) -> Chint25R {
196        Chint25R::new(((self.bits >> 25) & 1) != 0)
197    }
198    #[doc = "Bit 26 - Channel 26 Pending Interrupt"]
199    #[inline(always)]
200    pub fn chint26(&self) -> Chint26R {
201        Chint26R::new(((self.bits >> 26) & 1) != 0)
202    }
203    #[doc = "Bit 27 - Channel 27 Pending Interrupt"]
204    #[inline(always)]
205    pub fn chint27(&self) -> Chint27R {
206        Chint27R::new(((self.bits >> 27) & 1) != 0)
207    }
208    #[doc = "Bit 28 - Channel 28 Pending Interrupt"]
209    #[inline(always)]
210    pub fn chint28(&self) -> Chint28R {
211        Chint28R::new(((self.bits >> 28) & 1) != 0)
212    }
213    #[doc = "Bit 29 - Channel 29 Pending Interrupt"]
214    #[inline(always)]
215    pub fn chint29(&self) -> Chint29R {
216        Chint29R::new(((self.bits >> 29) & 1) != 0)
217    }
218    #[doc = "Bit 30 - Channel 30 Pending Interrupt"]
219    #[inline(always)]
220    pub fn chint30(&self) -> Chint30R {
221        Chint30R::new(((self.bits >> 30) & 1) != 0)
222    }
223    #[doc = "Bit 31 - Channel 31 Pending Interrupt"]
224    #[inline(always)]
225    pub fn chint31(&self) -> Chint31R {
226        Chint31R::new(((self.bits >> 31) & 1) != 0)
227    }
228}
229#[doc = "Interrupt Status\n\nYou can [`read`](crate::Reg::read) this register and get [`intstatus::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
230pub struct IntstatusSpec;
231impl crate::RegisterSpec for IntstatusSpec {
232    type Ux = u32;
233}
234#[doc = "`read()` method returns [`intstatus::R`](R) reader structure"]
235impl crate::Readable for IntstatusSpec {}
236#[doc = "`reset()` method sets INTSTATUS to value 0"]
237impl crate::Resettable for IntstatusSpec {
238    const RESET_VALUE: u32 = 0;
239}