stm32f1_staging/stm32f102/sdio/
sta.rs1pub type R = crate::R<STArs>;
3pub type CCRCFAIL_R = crate::BitReader;
5pub type DCRCFAIL_R = crate::BitReader;
7pub type CTIMEOUT_R = crate::BitReader;
9pub type DTIMEOUT_R = crate::BitReader;
11pub type TXUNDERR_R = crate::BitReader;
13pub type RXOVERR_R = crate::BitReader;
15pub type CMDREND_R = crate::BitReader;
17pub type CMDSENT_R = crate::BitReader;
19pub type DATAEND_R = crate::BitReader;
21pub type STBITERR_R = crate::BitReader;
23pub type DBCKEND_R = crate::BitReader;
25pub type CMDACT_R = crate::BitReader;
27pub type TXACT_R = crate::BitReader;
29pub type RXACT_R = crate::BitReader;
31pub type TXFIFOHE_R = crate::BitReader;
33pub type RXFIFOHF_R = crate::BitReader;
35pub type TXFIFOF_R = crate::BitReader;
37pub type RXFIFOF_R = crate::BitReader;
39pub type TXFIFOE_R = crate::BitReader;
41pub type RXFIFOE_R = crate::BitReader;
43pub type TXDAVL_R = crate::BitReader;
45pub type RXDAVL_R = crate::BitReader;
47pub type SDIOIT_R = crate::BitReader;
49pub type CEATAEND_R = crate::BitReader;
51impl R {
52 #[inline(always)]
54 pub fn ccrcfail(&self) -> CCRCFAIL_R {
55 CCRCFAIL_R::new((self.bits & 1) != 0)
56 }
57 #[inline(always)]
59 pub fn dcrcfail(&self) -> DCRCFAIL_R {
60 DCRCFAIL_R::new(((self.bits >> 1) & 1) != 0)
61 }
62 #[inline(always)]
64 pub fn ctimeout(&self) -> CTIMEOUT_R {
65 CTIMEOUT_R::new(((self.bits >> 2) & 1) != 0)
66 }
67 #[inline(always)]
69 pub fn dtimeout(&self) -> DTIMEOUT_R {
70 DTIMEOUT_R::new(((self.bits >> 3) & 1) != 0)
71 }
72 #[inline(always)]
74 pub fn txunderr(&self) -> TXUNDERR_R {
75 TXUNDERR_R::new(((self.bits >> 4) & 1) != 0)
76 }
77 #[inline(always)]
79 pub fn rxoverr(&self) -> RXOVERR_R {
80 RXOVERR_R::new(((self.bits >> 5) & 1) != 0)
81 }
82 #[inline(always)]
84 pub fn cmdrend(&self) -> CMDREND_R {
85 CMDREND_R::new(((self.bits >> 6) & 1) != 0)
86 }
87 #[inline(always)]
89 pub fn cmdsent(&self) -> CMDSENT_R {
90 CMDSENT_R::new(((self.bits >> 7) & 1) != 0)
91 }
92 #[inline(always)]
94 pub fn dataend(&self) -> DATAEND_R {
95 DATAEND_R::new(((self.bits >> 8) & 1) != 0)
96 }
97 #[inline(always)]
99 pub fn stbiterr(&self) -> STBITERR_R {
100 STBITERR_R::new(((self.bits >> 9) & 1) != 0)
101 }
102 #[inline(always)]
104 pub fn dbckend(&self) -> DBCKEND_R {
105 DBCKEND_R::new(((self.bits >> 10) & 1) != 0)
106 }
107 #[inline(always)]
109 pub fn cmdact(&self) -> CMDACT_R {
110 CMDACT_R::new(((self.bits >> 11) & 1) != 0)
111 }
112 #[inline(always)]
114 pub fn txact(&self) -> TXACT_R {
115 TXACT_R::new(((self.bits >> 12) & 1) != 0)
116 }
117 #[inline(always)]
119 pub fn rxact(&self) -> RXACT_R {
120 RXACT_R::new(((self.bits >> 13) & 1) != 0)
121 }
122 #[inline(always)]
124 pub fn txfifohe(&self) -> TXFIFOHE_R {
125 TXFIFOHE_R::new(((self.bits >> 14) & 1) != 0)
126 }
127 #[inline(always)]
129 pub fn rxfifohf(&self) -> RXFIFOHF_R {
130 RXFIFOHF_R::new(((self.bits >> 15) & 1) != 0)
131 }
132 #[inline(always)]
134 pub fn txfifof(&self) -> TXFIFOF_R {
135 TXFIFOF_R::new(((self.bits >> 16) & 1) != 0)
136 }
137 #[inline(always)]
139 pub fn rxfifof(&self) -> RXFIFOF_R {
140 RXFIFOF_R::new(((self.bits >> 17) & 1) != 0)
141 }
142 #[inline(always)]
144 pub fn txfifoe(&self) -> TXFIFOE_R {
145 TXFIFOE_R::new(((self.bits >> 18) & 1) != 0)
146 }
147 #[inline(always)]
149 pub fn rxfifoe(&self) -> RXFIFOE_R {
150 RXFIFOE_R::new(((self.bits >> 19) & 1) != 0)
151 }
152 #[inline(always)]
154 pub fn txdavl(&self) -> TXDAVL_R {
155 TXDAVL_R::new(((self.bits >> 20) & 1) != 0)
156 }
157 #[inline(always)]
159 pub fn rxdavl(&self) -> RXDAVL_R {
160 RXDAVL_R::new(((self.bits >> 21) & 1) != 0)
161 }
162 #[inline(always)]
164 pub fn sdioit(&self) -> SDIOIT_R {
165 SDIOIT_R::new(((self.bits >> 22) & 1) != 0)
166 }
167 #[inline(always)]
169 pub fn ceataend(&self) -> CEATAEND_R {
170 CEATAEND_R::new(((self.bits >> 23) & 1) != 0)
171 }
172}
173impl core::fmt::Debug for R {
174 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
175 f.debug_struct("STA")
176 .field("ceataend", &self.ceataend())
177 .field("sdioit", &self.sdioit())
178 .field("rxdavl", &self.rxdavl())
179 .field("txdavl", &self.txdavl())
180 .field("rxfifoe", &self.rxfifoe())
181 .field("txfifoe", &self.txfifoe())
182 .field("rxfifof", &self.rxfifof())
183 .field("txfifof", &self.txfifof())
184 .field("rxfifohf", &self.rxfifohf())
185 .field("txfifohe", &self.txfifohe())
186 .field("rxact", &self.rxact())
187 .field("txact", &self.txact())
188 .field("cmdact", &self.cmdact())
189 .field("dbckend", &self.dbckend())
190 .field("stbiterr", &self.stbiterr())
191 .field("dataend", &self.dataend())
192 .field("cmdsent", &self.cmdsent())
193 .field("cmdrend", &self.cmdrend())
194 .field("rxoverr", &self.rxoverr())
195 .field("txunderr", &self.txunderr())
196 .field("dtimeout", &self.dtimeout())
197 .field("ctimeout", &self.ctimeout())
198 .field("dcrcfail", &self.dcrcfail())
199 .field("ccrcfail", &self.ccrcfail())
200 .finish()
201 }
202}
203pub struct STArs;
209impl crate::RegisterSpec for STArs {
210 type Ux = u32;
211}
212impl crate::Readable for STArs {}
214impl crate::Resettable for STArs {}