d1_pac/smhc/
smhc_intmask.rs1#[doc = "Register `smhc_intmask` reader"]
2pub type R = crate::R<SMHC_INTMASK_SPEC>;
3#[doc = "Register `smhc_intmask` writer"]
4pub type W = crate::W<SMHC_INTMASK_SPEC>;
5#[doc = "Field `re_int_en` reader - Response Error Interrupt Enable"]
6pub type RE_INT_EN_R = crate::BitReader;
7#[doc = "Field `re_int_en` writer - Response Error Interrupt Enable"]
8pub type RE_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `cc_int_en` reader - Command Complete Interrupt Enable"]
10pub type CC_INT_EN_R = crate::BitReader;
11#[doc = "Field `cc_int_en` writer - Command Complete Interrupt Enable"]
12pub type CC_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `dtc_int_en` reader - Data Transfer Complete Interrupt Enable"]
14pub type DTC_INT_EN_R = crate::BitReader;
15#[doc = "Field `dtc_int_en` writer - Data Transfer Complete Interrupt Enable"]
16pub type DTC_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `dtr_int_en` reader - Data Transmit Request Interrupt Enable"]
18pub type DTR_INT_EN_R = crate::BitReader;
19#[doc = "Field `dtr_int_en` writer - Data Transmit Request Interrupt Enable"]
20pub type DTR_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `drr_int_en` reader - Data Receive Request Interrupt Enable"]
22pub type DRR_INT_EN_R = crate::BitReader;
23#[doc = "Field `drr_int_en` writer - Data Receive Request Interrupt Enable"]
24pub type DRR_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `rce_int_en` reader - Response CRC Error Interrupt Enable"]
26pub type RCE_INT_EN_R = crate::BitReader;
27#[doc = "Field `rce_int_en` writer - Response CRC Error Interrupt Enable"]
28pub type RCE_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `dce_int_en` reader - Data CRC Error Interrupt Enable"]
30pub type DCE_INT_EN_R = crate::BitReader;
31#[doc = "Field `dce_int_en` writer - Data CRC Error Interrupt Enable"]
32pub type DCE_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `rto_back_int_en` reader - Response Timeout/Boot ACK Received Interrupt Enable"]
34pub type RTO_BACK_INT_EN_R = crate::BitReader;
35#[doc = "Field `rto_back_int_en` writer - Response Timeout/Boot ACK Received Interrupt Enable"]
36pub type RTO_BACK_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `dto_bds_int_en` reader - Data Timeout/Boot Data Start Interrupt Enable"]
38pub type DTO_BDS_INT_EN_R = crate::BitReader;
39#[doc = "Field `dto_bds_int_en` writer - Data Timeout/Boot Data Start Interrupt Enable"]
40pub type DTO_BDS_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `dsto_vsd_int_en` reader - Data Starvation Timeout/V1.8 Switch Done Interrupt Enable"]
42pub type DSTO_VSD_INT_EN_R = crate::BitReader;
43#[doc = "Field `dsto_vsd_int_en` writer - Data Starvation Timeout/V1.8 Switch Done Interrupt Enable"]
44pub type DSTO_VSD_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `fu_fo_int_en` reader - FIFO Underrun/Overflow Interrupt Enable"]
46pub type FU_FO_INT_EN_R = crate::BitReader;
47#[doc = "Field `fu_fo_int_en` writer - FIFO Underrun/Overflow Interrupt Enable"]
48pub type FU_FO_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `cb_iw_int_en` reader - Command Busy and Illegal Write Interrupt Enable"]
50pub type CB_IW_INT_EN_R = crate::BitReader;
51#[doc = "Field `cb_iw_int_en` writer - Command Busy and Illegal Write Interrupt Enable"]
52pub type CB_IW_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `dse_bc_int_en` reader - Data Start Error Interrupt Enable"]
54pub type DSE_BC_INT_EN_R = crate::BitReader;
55#[doc = "Field `dse_bc_int_en` writer - Data Start Error Interrupt Enable"]
56pub type DSE_BC_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `acd_int_en` reader - Auto Command Done Interrupt Enable"]
58pub type ACD_INT_EN_R = crate::BitReader;
59#[doc = "Field `acd_int_en` writer - Auto Command Done Interrupt Enable"]
60pub type ACD_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `dee_int_en` reader - Data End-bit Error Interrupt Enable"]
62pub type DEE_INT_EN_R = crate::BitReader;
63#[doc = "Field `dee_int_en` writer - Data End-bit Error Interrupt Enable"]
64pub type DEE_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `sdio_int_en` reader - SDIO Interrupt Enable"]
66pub type SDIO_INT_EN_R = crate::BitReader;
67#[doc = "Field `sdio_int_en` writer - SDIO Interrupt Enable"]
68pub type SDIO_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `card_insert_int_en` reader - Card Inserted Interrupt Enable"]
70pub type CARD_INSERT_INT_EN_R = crate::BitReader;
71#[doc = "Field `card_insert_int_en` writer - Card Inserted Interrupt Enable"]
72pub type CARD_INSERT_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `card_removal_int_en` reader - Card Removed Interrupt Enable"]
74pub type CARD_REMOVAL_INT_EN_R = crate::BitReader;
75#[doc = "Field `card_removal_int_en` writer - Card Removed Interrupt Enable"]
76pub type CARD_REMOVAL_INT_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
77impl R {
78 #[doc = "Bit 1 - Response Error Interrupt Enable"]
79 #[inline(always)]
80 pub fn re_int_en(&self) -> RE_INT_EN_R {
81 RE_INT_EN_R::new(((self.bits >> 1) & 1) != 0)
82 }
83 #[doc = "Bit 2 - Command Complete Interrupt Enable"]
84 #[inline(always)]
85 pub fn cc_int_en(&self) -> CC_INT_EN_R {
86 CC_INT_EN_R::new(((self.bits >> 2) & 1) != 0)
87 }
88 #[doc = "Bit 3 - Data Transfer Complete Interrupt Enable"]
89 #[inline(always)]
90 pub fn dtc_int_en(&self) -> DTC_INT_EN_R {
91 DTC_INT_EN_R::new(((self.bits >> 3) & 1) != 0)
92 }
93 #[doc = "Bit 4 - Data Transmit Request Interrupt Enable"]
94 #[inline(always)]
95 pub fn dtr_int_en(&self) -> DTR_INT_EN_R {
96 DTR_INT_EN_R::new(((self.bits >> 4) & 1) != 0)
97 }
98 #[doc = "Bit 5 - Data Receive Request Interrupt Enable"]
99 #[inline(always)]
100 pub fn drr_int_en(&self) -> DRR_INT_EN_R {
101 DRR_INT_EN_R::new(((self.bits >> 5) & 1) != 0)
102 }
103 #[doc = "Bit 6 - Response CRC Error Interrupt Enable"]
104 #[inline(always)]
105 pub fn rce_int_en(&self) -> RCE_INT_EN_R {
106 RCE_INT_EN_R::new(((self.bits >> 6) & 1) != 0)
107 }
108 #[doc = "Bit 7 - Data CRC Error Interrupt Enable"]
109 #[inline(always)]
110 pub fn dce_int_en(&self) -> DCE_INT_EN_R {
111 DCE_INT_EN_R::new(((self.bits >> 7) & 1) != 0)
112 }
113 #[doc = "Bit 8 - Response Timeout/Boot ACK Received Interrupt Enable"]
114 #[inline(always)]
115 pub fn rto_back_int_en(&self) -> RTO_BACK_INT_EN_R {
116 RTO_BACK_INT_EN_R::new(((self.bits >> 8) & 1) != 0)
117 }
118 #[doc = "Bit 9 - Data Timeout/Boot Data Start Interrupt Enable"]
119 #[inline(always)]
120 pub fn dto_bds_int_en(&self) -> DTO_BDS_INT_EN_R {
121 DTO_BDS_INT_EN_R::new(((self.bits >> 9) & 1) != 0)
122 }
123 #[doc = "Bit 10 - Data Starvation Timeout/V1.8 Switch Done Interrupt Enable"]
124 #[inline(always)]
125 pub fn dsto_vsd_int_en(&self) -> DSTO_VSD_INT_EN_R {
126 DSTO_VSD_INT_EN_R::new(((self.bits >> 10) & 1) != 0)
127 }
128 #[doc = "Bit 11 - FIFO Underrun/Overflow Interrupt Enable"]
129 #[inline(always)]
130 pub fn fu_fo_int_en(&self) -> FU_FO_INT_EN_R {
131 FU_FO_INT_EN_R::new(((self.bits >> 11) & 1) != 0)
132 }
133 #[doc = "Bit 12 - Command Busy and Illegal Write Interrupt Enable"]
134 #[inline(always)]
135 pub fn cb_iw_int_en(&self) -> CB_IW_INT_EN_R {
136 CB_IW_INT_EN_R::new(((self.bits >> 12) & 1) != 0)
137 }
138 #[doc = "Bit 13 - Data Start Error Interrupt Enable"]
139 #[inline(always)]
140 pub fn dse_bc_int_en(&self) -> DSE_BC_INT_EN_R {
141 DSE_BC_INT_EN_R::new(((self.bits >> 13) & 1) != 0)
142 }
143 #[doc = "Bit 14 - Auto Command Done Interrupt Enable"]
144 #[inline(always)]
145 pub fn acd_int_en(&self) -> ACD_INT_EN_R {
146 ACD_INT_EN_R::new(((self.bits >> 14) & 1) != 0)
147 }
148 #[doc = "Bit 15 - Data End-bit Error Interrupt Enable"]
149 #[inline(always)]
150 pub fn dee_int_en(&self) -> DEE_INT_EN_R {
151 DEE_INT_EN_R::new(((self.bits >> 15) & 1) != 0)
152 }
153 #[doc = "Bit 16 - SDIO Interrupt Enable"]
154 #[inline(always)]
155 pub fn sdio_int_en(&self) -> SDIO_INT_EN_R {
156 SDIO_INT_EN_R::new(((self.bits >> 16) & 1) != 0)
157 }
158 #[doc = "Bit 30 - Card Inserted Interrupt Enable"]
159 #[inline(always)]
160 pub fn card_insert_int_en(&self) -> CARD_INSERT_INT_EN_R {
161 CARD_INSERT_INT_EN_R::new(((self.bits >> 30) & 1) != 0)
162 }
163 #[doc = "Bit 31 - Card Removed Interrupt Enable"]
164 #[inline(always)]
165 pub fn card_removal_int_en(&self) -> CARD_REMOVAL_INT_EN_R {
166 CARD_REMOVAL_INT_EN_R::new(((self.bits >> 31) & 1) != 0)
167 }
168}
169impl W {
170 #[doc = "Bit 1 - Response Error Interrupt Enable"]
171 #[inline(always)]
172 #[must_use]
173 pub fn re_int_en(&mut self) -> RE_INT_EN_W<SMHC_INTMASK_SPEC> {
174 RE_INT_EN_W::new(self, 1)
175 }
176 #[doc = "Bit 2 - Command Complete Interrupt Enable"]
177 #[inline(always)]
178 #[must_use]
179 pub fn cc_int_en(&mut self) -> CC_INT_EN_W<SMHC_INTMASK_SPEC> {
180 CC_INT_EN_W::new(self, 2)
181 }
182 #[doc = "Bit 3 - Data Transfer Complete Interrupt Enable"]
183 #[inline(always)]
184 #[must_use]
185 pub fn dtc_int_en(&mut self) -> DTC_INT_EN_W<SMHC_INTMASK_SPEC> {
186 DTC_INT_EN_W::new(self, 3)
187 }
188 #[doc = "Bit 4 - Data Transmit Request Interrupt Enable"]
189 #[inline(always)]
190 #[must_use]
191 pub fn dtr_int_en(&mut self) -> DTR_INT_EN_W<SMHC_INTMASK_SPEC> {
192 DTR_INT_EN_W::new(self, 4)
193 }
194 #[doc = "Bit 5 - Data Receive Request Interrupt Enable"]
195 #[inline(always)]
196 #[must_use]
197 pub fn drr_int_en(&mut self) -> DRR_INT_EN_W<SMHC_INTMASK_SPEC> {
198 DRR_INT_EN_W::new(self, 5)
199 }
200 #[doc = "Bit 6 - Response CRC Error Interrupt Enable"]
201 #[inline(always)]
202 #[must_use]
203 pub fn rce_int_en(&mut self) -> RCE_INT_EN_W<SMHC_INTMASK_SPEC> {
204 RCE_INT_EN_W::new(self, 6)
205 }
206 #[doc = "Bit 7 - Data CRC Error Interrupt Enable"]
207 #[inline(always)]
208 #[must_use]
209 pub fn dce_int_en(&mut self) -> DCE_INT_EN_W<SMHC_INTMASK_SPEC> {
210 DCE_INT_EN_W::new(self, 7)
211 }
212 #[doc = "Bit 8 - Response Timeout/Boot ACK Received Interrupt Enable"]
213 #[inline(always)]
214 #[must_use]
215 pub fn rto_back_int_en(&mut self) -> RTO_BACK_INT_EN_W<SMHC_INTMASK_SPEC> {
216 RTO_BACK_INT_EN_W::new(self, 8)
217 }
218 #[doc = "Bit 9 - Data Timeout/Boot Data Start Interrupt Enable"]
219 #[inline(always)]
220 #[must_use]
221 pub fn dto_bds_int_en(&mut self) -> DTO_BDS_INT_EN_W<SMHC_INTMASK_SPEC> {
222 DTO_BDS_INT_EN_W::new(self, 9)
223 }
224 #[doc = "Bit 10 - Data Starvation Timeout/V1.8 Switch Done Interrupt Enable"]
225 #[inline(always)]
226 #[must_use]
227 pub fn dsto_vsd_int_en(&mut self) -> DSTO_VSD_INT_EN_W<SMHC_INTMASK_SPEC> {
228 DSTO_VSD_INT_EN_W::new(self, 10)
229 }
230 #[doc = "Bit 11 - FIFO Underrun/Overflow Interrupt Enable"]
231 #[inline(always)]
232 #[must_use]
233 pub fn fu_fo_int_en(&mut self) -> FU_FO_INT_EN_W<SMHC_INTMASK_SPEC> {
234 FU_FO_INT_EN_W::new(self, 11)
235 }
236 #[doc = "Bit 12 - Command Busy and Illegal Write Interrupt Enable"]
237 #[inline(always)]
238 #[must_use]
239 pub fn cb_iw_int_en(&mut self) -> CB_IW_INT_EN_W<SMHC_INTMASK_SPEC> {
240 CB_IW_INT_EN_W::new(self, 12)
241 }
242 #[doc = "Bit 13 - Data Start Error Interrupt Enable"]
243 #[inline(always)]
244 #[must_use]
245 pub fn dse_bc_int_en(&mut self) -> DSE_BC_INT_EN_W<SMHC_INTMASK_SPEC> {
246 DSE_BC_INT_EN_W::new(self, 13)
247 }
248 #[doc = "Bit 14 - Auto Command Done Interrupt Enable"]
249 #[inline(always)]
250 #[must_use]
251 pub fn acd_int_en(&mut self) -> ACD_INT_EN_W<SMHC_INTMASK_SPEC> {
252 ACD_INT_EN_W::new(self, 14)
253 }
254 #[doc = "Bit 15 - Data End-bit Error Interrupt Enable"]
255 #[inline(always)]
256 #[must_use]
257 pub fn dee_int_en(&mut self) -> DEE_INT_EN_W<SMHC_INTMASK_SPEC> {
258 DEE_INT_EN_W::new(self, 15)
259 }
260 #[doc = "Bit 16 - SDIO Interrupt Enable"]
261 #[inline(always)]
262 #[must_use]
263 pub fn sdio_int_en(&mut self) -> SDIO_INT_EN_W<SMHC_INTMASK_SPEC> {
264 SDIO_INT_EN_W::new(self, 16)
265 }
266 #[doc = "Bit 30 - Card Inserted Interrupt Enable"]
267 #[inline(always)]
268 #[must_use]
269 pub fn card_insert_int_en(&mut self) -> CARD_INSERT_INT_EN_W<SMHC_INTMASK_SPEC> {
270 CARD_INSERT_INT_EN_W::new(self, 30)
271 }
272 #[doc = "Bit 31 - Card Removed Interrupt Enable"]
273 #[inline(always)]
274 #[must_use]
275 pub fn card_removal_int_en(&mut self) -> CARD_REMOVAL_INT_EN_W<SMHC_INTMASK_SPEC> {
276 CARD_REMOVAL_INT_EN_W::new(self, 31)
277 }
278 #[doc = r" Writes raw bits to the register."]
279 #[doc = r""]
280 #[doc = r" # Safety"]
281 #[doc = r""]
282 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
283 #[inline(always)]
284 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
285 self.bits = bits;
286 self
287 }
288}
289#[doc = "Interrupt Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`smhc_intmask::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`smhc_intmask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
290pub struct SMHC_INTMASK_SPEC;
291impl crate::RegisterSpec for SMHC_INTMASK_SPEC {
292 type Ux = u32;
293}
294#[doc = "`read()` method returns [`smhc_intmask::R`](R) reader structure"]
295impl crate::Readable for SMHC_INTMASK_SPEC {}
296#[doc = "`write(|w| ..)` method takes [`smhc_intmask::W`](W) writer structure"]
297impl crate::Writable for SMHC_INTMASK_SPEC {
298 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
299 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
300}
301#[doc = "`reset()` method sets smhc_intmask to value 0"]
302impl crate::Resettable for SMHC_INTMASK_SPEC {
303 const RESET_VALUE: Self::Ux = 0;
304}