atsamd21g/evsys/
chstatus.rs
1#[doc = "Register `CHSTATUS` reader"]
2pub type R = crate::R<ChstatusSpec>;
3#[doc = "Field `USRRDY0` reader - Channel 0 User Ready"]
4pub type Usrrdy0R = crate::BitReader;
5#[doc = "Field `USRRDY1` reader - Channel 1 User Ready"]
6pub type Usrrdy1R = crate::BitReader;
7#[doc = "Field `USRRDY2` reader - Channel 2 User Ready"]
8pub type Usrrdy2R = crate::BitReader;
9#[doc = "Field `USRRDY3` reader - Channel 3 User Ready"]
10pub type Usrrdy3R = crate::BitReader;
11#[doc = "Field `USRRDY4` reader - Channel 4 User Ready"]
12pub type Usrrdy4R = crate::BitReader;
13#[doc = "Field `USRRDY5` reader - Channel 5 User Ready"]
14pub type Usrrdy5R = crate::BitReader;
15#[doc = "Field `USRRDY6` reader - Channel 6 User Ready"]
16pub type Usrrdy6R = crate::BitReader;
17#[doc = "Field `USRRDY7` reader - Channel 7 User Ready"]
18pub type Usrrdy7R = crate::BitReader;
19#[doc = "Field `CHBUSY0` reader - Channel 0 Busy"]
20pub type Chbusy0R = crate::BitReader;
21#[doc = "Field `CHBUSY1` reader - Channel 1 Busy"]
22pub type Chbusy1R = crate::BitReader;
23#[doc = "Field `CHBUSY2` reader - Channel 2 Busy"]
24pub type Chbusy2R = crate::BitReader;
25#[doc = "Field `CHBUSY3` reader - Channel 3 Busy"]
26pub type Chbusy3R = crate::BitReader;
27#[doc = "Field `CHBUSY4` reader - Channel 4 Busy"]
28pub type Chbusy4R = crate::BitReader;
29#[doc = "Field `CHBUSY5` reader - Channel 5 Busy"]
30pub type Chbusy5R = crate::BitReader;
31#[doc = "Field `CHBUSY6` reader - Channel 6 Busy"]
32pub type Chbusy6R = crate::BitReader;
33#[doc = "Field `CHBUSY7` reader - Channel 7 Busy"]
34pub type Chbusy7R = crate::BitReader;
35#[doc = "Field `USRRDY8` reader - Channel 8 User Ready"]
36pub type Usrrdy8R = crate::BitReader;
37#[doc = "Field `USRRDY9` reader - Channel 9 User Ready"]
38pub type Usrrdy9R = crate::BitReader;
39#[doc = "Field `USRRDY10` reader - Channel 10 User Ready"]
40pub type Usrrdy10R = crate::BitReader;
41#[doc = "Field `USRRDY11` reader - Channel 11 User Ready"]
42pub type Usrrdy11R = crate::BitReader;
43#[doc = "Field `CHBUSY8` reader - Channel 8 Busy"]
44pub type Chbusy8R = crate::BitReader;
45#[doc = "Field `CHBUSY9` reader - Channel 9 Busy"]
46pub type Chbusy9R = crate::BitReader;
47#[doc = "Field `CHBUSY10` reader - Channel 10 Busy"]
48pub type Chbusy10R = crate::BitReader;
49#[doc = "Field `CHBUSY11` reader - Channel 11 Busy"]
50pub type Chbusy11R = crate::BitReader;
51impl R {
52 #[doc = "Bit 0 - Channel 0 User Ready"]
53 #[inline(always)]
54 pub fn usrrdy0(&self) -> Usrrdy0R {
55 Usrrdy0R::new((self.bits & 1) != 0)
56 }
57 #[doc = "Bit 1 - Channel 1 User Ready"]
58 #[inline(always)]
59 pub fn usrrdy1(&self) -> Usrrdy1R {
60 Usrrdy1R::new(((self.bits >> 1) & 1) != 0)
61 }
62 #[doc = "Bit 2 - Channel 2 User Ready"]
63 #[inline(always)]
64 pub fn usrrdy2(&self) -> Usrrdy2R {
65 Usrrdy2R::new(((self.bits >> 2) & 1) != 0)
66 }
67 #[doc = "Bit 3 - Channel 3 User Ready"]
68 #[inline(always)]
69 pub fn usrrdy3(&self) -> Usrrdy3R {
70 Usrrdy3R::new(((self.bits >> 3) & 1) != 0)
71 }
72 #[doc = "Bit 4 - Channel 4 User Ready"]
73 #[inline(always)]
74 pub fn usrrdy4(&self) -> Usrrdy4R {
75 Usrrdy4R::new(((self.bits >> 4) & 1) != 0)
76 }
77 #[doc = "Bit 5 - Channel 5 User Ready"]
78 #[inline(always)]
79 pub fn usrrdy5(&self) -> Usrrdy5R {
80 Usrrdy5R::new(((self.bits >> 5) & 1) != 0)
81 }
82 #[doc = "Bit 6 - Channel 6 User Ready"]
83 #[inline(always)]
84 pub fn usrrdy6(&self) -> Usrrdy6R {
85 Usrrdy6R::new(((self.bits >> 6) & 1) != 0)
86 }
87 #[doc = "Bit 7 - Channel 7 User Ready"]
88 #[inline(always)]
89 pub fn usrrdy7(&self) -> Usrrdy7R {
90 Usrrdy7R::new(((self.bits >> 7) & 1) != 0)
91 }
92 #[doc = "Bit 8 - Channel 0 Busy"]
93 #[inline(always)]
94 pub fn chbusy0(&self) -> Chbusy0R {
95 Chbusy0R::new(((self.bits >> 8) & 1) != 0)
96 }
97 #[doc = "Bit 9 - Channel 1 Busy"]
98 #[inline(always)]
99 pub fn chbusy1(&self) -> Chbusy1R {
100 Chbusy1R::new(((self.bits >> 9) & 1) != 0)
101 }
102 #[doc = "Bit 10 - Channel 2 Busy"]
103 #[inline(always)]
104 pub fn chbusy2(&self) -> Chbusy2R {
105 Chbusy2R::new(((self.bits >> 10) & 1) != 0)
106 }
107 #[doc = "Bit 11 - Channel 3 Busy"]
108 #[inline(always)]
109 pub fn chbusy3(&self) -> Chbusy3R {
110 Chbusy3R::new(((self.bits >> 11) & 1) != 0)
111 }
112 #[doc = "Bit 12 - Channel 4 Busy"]
113 #[inline(always)]
114 pub fn chbusy4(&self) -> Chbusy4R {
115 Chbusy4R::new(((self.bits >> 12) & 1) != 0)
116 }
117 #[doc = "Bit 13 - Channel 5 Busy"]
118 #[inline(always)]
119 pub fn chbusy5(&self) -> Chbusy5R {
120 Chbusy5R::new(((self.bits >> 13) & 1) != 0)
121 }
122 #[doc = "Bit 14 - Channel 6 Busy"]
123 #[inline(always)]
124 pub fn chbusy6(&self) -> Chbusy6R {
125 Chbusy6R::new(((self.bits >> 14) & 1) != 0)
126 }
127 #[doc = "Bit 15 - Channel 7 Busy"]
128 #[inline(always)]
129 pub fn chbusy7(&self) -> Chbusy7R {
130 Chbusy7R::new(((self.bits >> 15) & 1) != 0)
131 }
132 #[doc = "Bit 16 - Channel 8 User Ready"]
133 #[inline(always)]
134 pub fn usrrdy8(&self) -> Usrrdy8R {
135 Usrrdy8R::new(((self.bits >> 16) & 1) != 0)
136 }
137 #[doc = "Bit 17 - Channel 9 User Ready"]
138 #[inline(always)]
139 pub fn usrrdy9(&self) -> Usrrdy9R {
140 Usrrdy9R::new(((self.bits >> 17) & 1) != 0)
141 }
142 #[doc = "Bit 18 - Channel 10 User Ready"]
143 #[inline(always)]
144 pub fn usrrdy10(&self) -> Usrrdy10R {
145 Usrrdy10R::new(((self.bits >> 18) & 1) != 0)
146 }
147 #[doc = "Bit 19 - Channel 11 User Ready"]
148 #[inline(always)]
149 pub fn usrrdy11(&self) -> Usrrdy11R {
150 Usrrdy11R::new(((self.bits >> 19) & 1) != 0)
151 }
152 #[doc = "Bit 24 - Channel 8 Busy"]
153 #[inline(always)]
154 pub fn chbusy8(&self) -> Chbusy8R {
155 Chbusy8R::new(((self.bits >> 24) & 1) != 0)
156 }
157 #[doc = "Bit 25 - Channel 9 Busy"]
158 #[inline(always)]
159 pub fn chbusy9(&self) -> Chbusy9R {
160 Chbusy9R::new(((self.bits >> 25) & 1) != 0)
161 }
162 #[doc = "Bit 26 - Channel 10 Busy"]
163 #[inline(always)]
164 pub fn chbusy10(&self) -> Chbusy10R {
165 Chbusy10R::new(((self.bits >> 26) & 1) != 0)
166 }
167 #[doc = "Bit 27 - Channel 11 Busy"]
168 #[inline(always)]
169 pub fn chbusy11(&self) -> Chbusy11R {
170 Chbusy11R::new(((self.bits >> 27) & 1) != 0)
171 }
172}
173#[doc = "Channel Status\n\nYou can [`read`](crate::Reg::read) this register and get [`chstatus::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
174pub struct ChstatusSpec;
175impl crate::RegisterSpec for ChstatusSpec {
176 type Ux = u32;
177}
178#[doc = "`read()` method returns [`chstatus::R`](R) reader structure"]
179impl crate::Readable for ChstatusSpec {}
180#[doc = "`reset()` method sets CHSTATUS to value 0x000f_00ff"]
181impl crate::Resettable for ChstatusSpec {
182 const RESET_VALUE: u32 = 0x000f_00ff;
183}