atsaml21j17bu/dmac/
intstatus.rs1#[doc = "Register `INTSTATUS` reader"]
2pub struct R(crate::R<INTSTATUS_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<INTSTATUS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<INTSTATUS_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<INTSTATUS_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `CHINT0` reader - Channel 0 Pending Interrupt"]
17pub type CHINT0_R = crate::BitReader<bool>;
18#[doc = "Field `CHINT1` reader - Channel 1 Pending Interrupt"]
19pub type CHINT1_R = crate::BitReader<bool>;
20#[doc = "Field `CHINT2` reader - Channel 2 Pending Interrupt"]
21pub type CHINT2_R = crate::BitReader<bool>;
22#[doc = "Field `CHINT3` reader - Channel 3 Pending Interrupt"]
23pub type CHINT3_R = crate::BitReader<bool>;
24#[doc = "Field `CHINT4` reader - Channel 4 Pending Interrupt"]
25pub type CHINT4_R = crate::BitReader<bool>;
26#[doc = "Field `CHINT5` reader - Channel 5 Pending Interrupt"]
27pub type CHINT5_R = crate::BitReader<bool>;
28#[doc = "Field `CHINT6` reader - Channel 6 Pending Interrupt"]
29pub type CHINT6_R = crate::BitReader<bool>;
30#[doc = "Field `CHINT7` reader - Channel 7 Pending Interrupt"]
31pub type CHINT7_R = crate::BitReader<bool>;
32#[doc = "Field `CHINT8` reader - Channel 8 Pending Interrupt"]
33pub type CHINT8_R = crate::BitReader<bool>;
34#[doc = "Field `CHINT9` reader - Channel 9 Pending Interrupt"]
35pub type CHINT9_R = crate::BitReader<bool>;
36#[doc = "Field `CHINT10` reader - Channel 10 Pending Interrupt"]
37pub type CHINT10_R = crate::BitReader<bool>;
38#[doc = "Field `CHINT11` reader - Channel 11 Pending Interrupt"]
39pub type CHINT11_R = crate::BitReader<bool>;
40#[doc = "Field `CHINT12` reader - Channel 12 Pending Interrupt"]
41pub type CHINT12_R = crate::BitReader<bool>;
42#[doc = "Field `CHINT13` reader - Channel 13 Pending Interrupt"]
43pub type CHINT13_R = crate::BitReader<bool>;
44#[doc = "Field `CHINT14` reader - Channel 14 Pending Interrupt"]
45pub type CHINT14_R = crate::BitReader<bool>;
46#[doc = "Field `CHINT15` reader - Channel 15 Pending Interrupt"]
47pub type CHINT15_R = crate::BitReader<bool>;
48impl R {
49 #[doc = "Bit 0 - Channel 0 Pending Interrupt"]
50 #[inline(always)]
51 pub fn chint0(&self) -> CHINT0_R {
52 CHINT0_R::new((self.bits & 1) != 0)
53 }
54 #[doc = "Bit 1 - Channel 1 Pending Interrupt"]
55 #[inline(always)]
56 pub fn chint1(&self) -> CHINT1_R {
57 CHINT1_R::new(((self.bits >> 1) & 1) != 0)
58 }
59 #[doc = "Bit 2 - Channel 2 Pending Interrupt"]
60 #[inline(always)]
61 pub fn chint2(&self) -> CHINT2_R {
62 CHINT2_R::new(((self.bits >> 2) & 1) != 0)
63 }
64 #[doc = "Bit 3 - Channel 3 Pending Interrupt"]
65 #[inline(always)]
66 pub fn chint3(&self) -> CHINT3_R {
67 CHINT3_R::new(((self.bits >> 3) & 1) != 0)
68 }
69 #[doc = "Bit 4 - Channel 4 Pending Interrupt"]
70 #[inline(always)]
71 pub fn chint4(&self) -> CHINT4_R {
72 CHINT4_R::new(((self.bits >> 4) & 1) != 0)
73 }
74 #[doc = "Bit 5 - Channel 5 Pending Interrupt"]
75 #[inline(always)]
76 pub fn chint5(&self) -> CHINT5_R {
77 CHINT5_R::new(((self.bits >> 5) & 1) != 0)
78 }
79 #[doc = "Bit 6 - Channel 6 Pending Interrupt"]
80 #[inline(always)]
81 pub fn chint6(&self) -> CHINT6_R {
82 CHINT6_R::new(((self.bits >> 6) & 1) != 0)
83 }
84 #[doc = "Bit 7 - Channel 7 Pending Interrupt"]
85 #[inline(always)]
86 pub fn chint7(&self) -> CHINT7_R {
87 CHINT7_R::new(((self.bits >> 7) & 1) != 0)
88 }
89 #[doc = "Bit 8 - Channel 8 Pending Interrupt"]
90 #[inline(always)]
91 pub fn chint8(&self) -> CHINT8_R {
92 CHINT8_R::new(((self.bits >> 8) & 1) != 0)
93 }
94 #[doc = "Bit 9 - Channel 9 Pending Interrupt"]
95 #[inline(always)]
96 pub fn chint9(&self) -> CHINT9_R {
97 CHINT9_R::new(((self.bits >> 9) & 1) != 0)
98 }
99 #[doc = "Bit 10 - Channel 10 Pending Interrupt"]
100 #[inline(always)]
101 pub fn chint10(&self) -> CHINT10_R {
102 CHINT10_R::new(((self.bits >> 10) & 1) != 0)
103 }
104 #[doc = "Bit 11 - Channel 11 Pending Interrupt"]
105 #[inline(always)]
106 pub fn chint11(&self) -> CHINT11_R {
107 CHINT11_R::new(((self.bits >> 11) & 1) != 0)
108 }
109 #[doc = "Bit 12 - Channel 12 Pending Interrupt"]
110 #[inline(always)]
111 pub fn chint12(&self) -> CHINT12_R {
112 CHINT12_R::new(((self.bits >> 12) & 1) != 0)
113 }
114 #[doc = "Bit 13 - Channel 13 Pending Interrupt"]
115 #[inline(always)]
116 pub fn chint13(&self) -> CHINT13_R {
117 CHINT13_R::new(((self.bits >> 13) & 1) != 0)
118 }
119 #[doc = "Bit 14 - Channel 14 Pending Interrupt"]
120 #[inline(always)]
121 pub fn chint14(&self) -> CHINT14_R {
122 CHINT14_R::new(((self.bits >> 14) & 1) != 0)
123 }
124 #[doc = "Bit 15 - Channel 15 Pending Interrupt"]
125 #[inline(always)]
126 pub fn chint15(&self) -> CHINT15_R {
127 CHINT15_R::new(((self.bits >> 15) & 1) != 0)
128 }
129}
130#[doc = "Interrupt Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intstatus](index.html) module"]
131pub struct INTSTATUS_SPEC;
132impl crate::RegisterSpec for INTSTATUS_SPEC {
133 type Ux = u32;
134}
135#[doc = "`read()` method returns [intstatus::R](R) reader structure"]
136impl crate::Readable for INTSTATUS_SPEC {
137 type Reader = R;
138}
139#[doc = "`reset()` method sets INTSTATUS to value 0"]
140impl crate::Resettable for INTSTATUS_SPEC {
141 const RESET_VALUE: Self::Ux = 0;
142}