stm32f1_staging/stm32f101/sdio/
icr.rs1pub type R = crate::R<ICRrs>;
3pub type W = crate::W<ICRrs>;
5pub type CCRCFAILC_R = crate::BitReader;
7pub type CCRCFAILC_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type DCRCFAILC_R = crate::BitReader;
11pub type DCRCFAILC_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type CTIMEOUTC_R = crate::BitReader;
15pub type CTIMEOUTC_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type DTIMEOUTC_R = crate::BitReader;
19pub type DTIMEOUTC_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type TXUNDERRC_R = crate::BitReader;
23pub type TXUNDERRC_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type RXOVERRC_R = crate::BitReader;
27pub type RXOVERRC_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type CMDRENDC_R = crate::BitReader;
31pub type CMDRENDC_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type CMDSENTC_R = crate::BitReader;
35pub type CMDSENTC_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type DATAENDC_R = crate::BitReader;
39pub type DATAENDC_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type STBITERRC_R = crate::BitReader;
43pub type STBITERRC_W<'a, REG> = crate::BitWriter<'a, REG>;
45pub type DBCKENDC_R = crate::BitReader;
47pub type DBCKENDC_W<'a, REG> = crate::BitWriter<'a, REG>;
49pub type SDIOITC_R = crate::BitReader;
51pub type SDIOITC_W<'a, REG> = crate::BitWriter<'a, REG>;
53pub type CEATAENDC_R = crate::BitReader;
55pub type CEATAENDC_W<'a, REG> = crate::BitWriter<'a, REG>;
57impl R {
58 #[inline(always)]
60 pub fn ccrcfailc(&self) -> CCRCFAILC_R {
61 CCRCFAILC_R::new((self.bits & 1) != 0)
62 }
63 #[inline(always)]
65 pub fn dcrcfailc(&self) -> DCRCFAILC_R {
66 DCRCFAILC_R::new(((self.bits >> 1) & 1) != 0)
67 }
68 #[inline(always)]
70 pub fn ctimeoutc(&self) -> CTIMEOUTC_R {
71 CTIMEOUTC_R::new(((self.bits >> 2) & 1) != 0)
72 }
73 #[inline(always)]
75 pub fn dtimeoutc(&self) -> DTIMEOUTC_R {
76 DTIMEOUTC_R::new(((self.bits >> 3) & 1) != 0)
77 }
78 #[inline(always)]
80 pub fn txunderrc(&self) -> TXUNDERRC_R {
81 TXUNDERRC_R::new(((self.bits >> 4) & 1) != 0)
82 }
83 #[inline(always)]
85 pub fn rxoverrc(&self) -> RXOVERRC_R {
86 RXOVERRC_R::new(((self.bits >> 5) & 1) != 0)
87 }
88 #[inline(always)]
90 pub fn cmdrendc(&self) -> CMDRENDC_R {
91 CMDRENDC_R::new(((self.bits >> 6) & 1) != 0)
92 }
93 #[inline(always)]
95 pub fn cmdsentc(&self) -> CMDSENTC_R {
96 CMDSENTC_R::new(((self.bits >> 7) & 1) != 0)
97 }
98 #[inline(always)]
100 pub fn dataendc(&self) -> DATAENDC_R {
101 DATAENDC_R::new(((self.bits >> 8) & 1) != 0)
102 }
103 #[inline(always)]
105 pub fn stbiterrc(&self) -> STBITERRC_R {
106 STBITERRC_R::new(((self.bits >> 9) & 1) != 0)
107 }
108 #[inline(always)]
110 pub fn dbckendc(&self) -> DBCKENDC_R {
111 DBCKENDC_R::new(((self.bits >> 10) & 1) != 0)
112 }
113 #[inline(always)]
115 pub fn sdioitc(&self) -> SDIOITC_R {
116 SDIOITC_R::new(((self.bits >> 22) & 1) != 0)
117 }
118 #[inline(always)]
120 pub fn ceataendc(&self) -> CEATAENDC_R {
121 CEATAENDC_R::new(((self.bits >> 23) & 1) != 0)
122 }
123}
124impl core::fmt::Debug for R {
125 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
126 f.debug_struct("ICR")
127 .field("ccrcfailc", &self.ccrcfailc())
128 .field("dcrcfailc", &self.dcrcfailc())
129 .field("ctimeoutc", &self.ctimeoutc())
130 .field("dtimeoutc", &self.dtimeoutc())
131 .field("txunderrc", &self.txunderrc())
132 .field("rxoverrc", &self.rxoverrc())
133 .field("cmdrendc", &self.cmdrendc())
134 .field("cmdsentc", &self.cmdsentc())
135 .field("dataendc", &self.dataendc())
136 .field("stbiterrc", &self.stbiterrc())
137 .field("dbckendc", &self.dbckendc())
138 .field("sdioitc", &self.sdioitc())
139 .field("ceataendc", &self.ceataendc())
140 .finish()
141 }
142}
143impl W {
144 #[inline(always)]
146 pub fn ccrcfailc(&mut self) -> CCRCFAILC_W<ICRrs> {
147 CCRCFAILC_W::new(self, 0)
148 }
149 #[inline(always)]
151 pub fn dcrcfailc(&mut self) -> DCRCFAILC_W<ICRrs> {
152 DCRCFAILC_W::new(self, 1)
153 }
154 #[inline(always)]
156 pub fn ctimeoutc(&mut self) -> CTIMEOUTC_W<ICRrs> {
157 CTIMEOUTC_W::new(self, 2)
158 }
159 #[inline(always)]
161 pub fn dtimeoutc(&mut self) -> DTIMEOUTC_W<ICRrs> {
162 DTIMEOUTC_W::new(self, 3)
163 }
164 #[inline(always)]
166 pub fn txunderrc(&mut self) -> TXUNDERRC_W<ICRrs> {
167 TXUNDERRC_W::new(self, 4)
168 }
169 #[inline(always)]
171 pub fn rxoverrc(&mut self) -> RXOVERRC_W<ICRrs> {
172 RXOVERRC_W::new(self, 5)
173 }
174 #[inline(always)]
176 pub fn cmdrendc(&mut self) -> CMDRENDC_W<ICRrs> {
177 CMDRENDC_W::new(self, 6)
178 }
179 #[inline(always)]
181 pub fn cmdsentc(&mut self) -> CMDSENTC_W<ICRrs> {
182 CMDSENTC_W::new(self, 7)
183 }
184 #[inline(always)]
186 pub fn dataendc(&mut self) -> DATAENDC_W<ICRrs> {
187 DATAENDC_W::new(self, 8)
188 }
189 #[inline(always)]
191 pub fn stbiterrc(&mut self) -> STBITERRC_W<ICRrs> {
192 STBITERRC_W::new(self, 9)
193 }
194 #[inline(always)]
196 pub fn dbckendc(&mut self) -> DBCKENDC_W<ICRrs> {
197 DBCKENDC_W::new(self, 10)
198 }
199 #[inline(always)]
201 pub fn sdioitc(&mut self) -> SDIOITC_W<ICRrs> {
202 SDIOITC_W::new(self, 22)
203 }
204 #[inline(always)]
206 pub fn ceataendc(&mut self) -> CEATAENDC_W<ICRrs> {
207 CEATAENDC_W::new(self, 23)
208 }
209}
210pub struct ICRrs;
216impl crate::RegisterSpec for ICRrs {
217 type Ux = u32;
218}
219impl crate::Readable for ICRrs {}
221impl crate::Writable for ICRrs {
223 type Safety = crate::Unsafe;
224}
225impl crate::Resettable for ICRrs {}