1#[doc = "Register `SPI_CMD` reader"]
2pub struct R(crate::R<SPI_CMD_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SPI_CMD_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SPI_CMD_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SPI_CMD_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `SPI_CMD` writer"]
17pub struct W(crate::W<SPI_CMD_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<SPI_CMD_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<SPI_CMD_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<SPI_CMD_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `spi_usr` reader - In the master mode, it is the start bit of a single operation. Self-clear by hardware"]
38pub struct SPI_USR_R(crate::FieldReader<bool, bool>);
39impl SPI_USR_R {
40 #[inline(always)]
41 pub(crate) fn new(bits: bool) -> Self {
42 SPI_USR_R(crate::FieldReader::new(bits))
43 }
44}
45impl core::ops::Deref for SPI_USR_R {
46 type Target = crate::FieldReader<bool, bool>;
47 #[inline(always)]
48 fn deref(&self) -> &Self::Target {
49 &self.0
50 }
51}
52#[doc = "Field `spi_usr` writer - In the master mode, it is the start bit of a single operation. Self-clear by hardware"]
53pub struct SPI_USR_W<'a> {
54 w: &'a mut W,
55}
56impl<'a> SPI_USR_W<'a> {
57 #[doc = r"Sets the field bit"]
58 #[inline(always)]
59 pub fn set_bit(self) -> &'a mut W {
60 self.bit(true)
61 }
62 #[doc = r"Clears the field bit"]
63 #[inline(always)]
64 pub fn clear_bit(self) -> &'a mut W {
65 self.bit(false)
66 }
67 #[doc = r"Writes raw bits to the field"]
68 #[inline(always)]
69 pub fn bit(self, value: bool) -> &'a mut W {
70 self.w.bits = (self.w.bits & !(1 << 18)) | ((value as u32 & 1) << 18);
71 self.w
72 }
73}
74#[doc = "Field `spi_read` reader - "]
75pub struct SPI_READ_R(crate::FieldReader<bool, bool>);
76impl SPI_READ_R {
77 #[inline(always)]
78 pub(crate) fn new(bits: bool) -> Self {
79 SPI_READ_R(crate::FieldReader::new(bits))
80 }
81}
82impl core::ops::Deref for SPI_READ_R {
83 type Target = crate::FieldReader<bool, bool>;
84 #[inline(always)]
85 fn deref(&self) -> &Self::Target {
86 &self.0
87 }
88}
89#[doc = "Field `spi_read` writer - "]
90pub struct SPI_READ_W<'a> {
91 w: &'a mut W,
92}
93impl<'a> SPI_READ_W<'a> {
94 #[doc = r"Sets the field bit"]
95 #[inline(always)]
96 pub fn set_bit(self) -> &'a mut W {
97 self.bit(true)
98 }
99 #[doc = r"Clears the field bit"]
100 #[inline(always)]
101 pub fn clear_bit(self) -> &'a mut W {
102 self.bit(false)
103 }
104 #[doc = r"Writes raw bits to the field"]
105 #[inline(always)]
106 pub fn bit(self, value: bool) -> &'a mut W {
107 self.w.bits = (self.w.bits & !(1 << 31)) | ((value as u32 & 1) << 31);
108 self.w
109 }
110}
111#[doc = "Field `spi_write_enable` reader - "]
112pub struct SPI_WRITE_ENABLE_R(crate::FieldReader<bool, bool>);
113impl SPI_WRITE_ENABLE_R {
114 #[inline(always)]
115 pub(crate) fn new(bits: bool) -> Self {
116 SPI_WRITE_ENABLE_R(crate::FieldReader::new(bits))
117 }
118}
119impl core::ops::Deref for SPI_WRITE_ENABLE_R {
120 type Target = crate::FieldReader<bool, bool>;
121 #[inline(always)]
122 fn deref(&self) -> &Self::Target {
123 &self.0
124 }
125}
126#[doc = "Field `spi_write_enable` writer - "]
127pub struct SPI_WRITE_ENABLE_W<'a> {
128 w: &'a mut W,
129}
130impl<'a> SPI_WRITE_ENABLE_W<'a> {
131 #[doc = r"Sets the field bit"]
132 #[inline(always)]
133 pub fn set_bit(self) -> &'a mut W {
134 self.bit(true)
135 }
136 #[doc = r"Clears the field bit"]
137 #[inline(always)]
138 pub fn clear_bit(self) -> &'a mut W {
139 self.bit(false)
140 }
141 #[doc = r"Writes raw bits to the field"]
142 #[inline(always)]
143 pub fn bit(self, value: bool) -> &'a mut W {
144 self.w.bits = (self.w.bits & !(1 << 30)) | ((value as u32 & 1) << 30);
145 self.w
146 }
147}
148#[doc = "Field `spi_write_disable` reader - "]
149pub struct SPI_WRITE_DISABLE_R(crate::FieldReader<bool, bool>);
150impl SPI_WRITE_DISABLE_R {
151 #[inline(always)]
152 pub(crate) fn new(bits: bool) -> Self {
153 SPI_WRITE_DISABLE_R(crate::FieldReader::new(bits))
154 }
155}
156impl core::ops::Deref for SPI_WRITE_DISABLE_R {
157 type Target = crate::FieldReader<bool, bool>;
158 #[inline(always)]
159 fn deref(&self) -> &Self::Target {
160 &self.0
161 }
162}
163#[doc = "Field `spi_write_disable` writer - "]
164pub struct SPI_WRITE_DISABLE_W<'a> {
165 w: &'a mut W,
166}
167impl<'a> SPI_WRITE_DISABLE_W<'a> {
168 #[doc = r"Sets the field bit"]
169 #[inline(always)]
170 pub fn set_bit(self) -> &'a mut W {
171 self.bit(true)
172 }
173 #[doc = r"Clears the field bit"]
174 #[inline(always)]
175 pub fn clear_bit(self) -> &'a mut W {
176 self.bit(false)
177 }
178 #[doc = r"Writes raw bits to the field"]
179 #[inline(always)]
180 pub fn bit(self, value: bool) -> &'a mut W {
181 self.w.bits = (self.w.bits & !(1 << 29)) | ((value as u32 & 1) << 29);
182 self.w
183 }
184}
185#[doc = "Field `spi_read_id` reader - "]
186pub struct SPI_READ_ID_R(crate::FieldReader<bool, bool>);
187impl SPI_READ_ID_R {
188 #[inline(always)]
189 pub(crate) fn new(bits: bool) -> Self {
190 SPI_READ_ID_R(crate::FieldReader::new(bits))
191 }
192}
193impl core::ops::Deref for SPI_READ_ID_R {
194 type Target = crate::FieldReader<bool, bool>;
195 #[inline(always)]
196 fn deref(&self) -> &Self::Target {
197 &self.0
198 }
199}
200#[doc = "Field `spi_read_id` writer - "]
201pub struct SPI_READ_ID_W<'a> {
202 w: &'a mut W,
203}
204impl<'a> SPI_READ_ID_W<'a> {
205 #[doc = r"Sets the field bit"]
206 #[inline(always)]
207 pub fn set_bit(self) -> &'a mut W {
208 self.bit(true)
209 }
210 #[doc = r"Clears the field bit"]
211 #[inline(always)]
212 pub fn clear_bit(self) -> &'a mut W {
213 self.bit(false)
214 }
215 #[doc = r"Writes raw bits to the field"]
216 #[inline(always)]
217 pub fn bit(self, value: bool) -> &'a mut W {
218 self.w.bits = (self.w.bits & !(1 << 28)) | ((value as u32 & 1) << 28);
219 self.w
220 }
221}
222#[doc = "Field `spi_read_sr` reader - "]
223pub struct SPI_READ_SR_R(crate::FieldReader<bool, bool>);
224impl SPI_READ_SR_R {
225 #[inline(always)]
226 pub(crate) fn new(bits: bool) -> Self {
227 SPI_READ_SR_R(crate::FieldReader::new(bits))
228 }
229}
230impl core::ops::Deref for SPI_READ_SR_R {
231 type Target = crate::FieldReader<bool, bool>;
232 #[inline(always)]
233 fn deref(&self) -> &Self::Target {
234 &self.0
235 }
236}
237#[doc = "Field `spi_read_sr` writer - "]
238pub struct SPI_READ_SR_W<'a> {
239 w: &'a mut W,
240}
241impl<'a> SPI_READ_SR_W<'a> {
242 #[doc = r"Sets the field bit"]
243 #[inline(always)]
244 pub fn set_bit(self) -> &'a mut W {
245 self.bit(true)
246 }
247 #[doc = r"Clears the field bit"]
248 #[inline(always)]
249 pub fn clear_bit(self) -> &'a mut W {
250 self.bit(false)
251 }
252 #[doc = r"Writes raw bits to the field"]
253 #[inline(always)]
254 pub fn bit(self, value: bool) -> &'a mut W {
255 self.w.bits = (self.w.bits & !(1 << 27)) | ((value as u32 & 1) << 27);
256 self.w
257 }
258}
259#[doc = "Field `spi_write_sr` reader - "]
260pub struct SPI_WRITE_SR_R(crate::FieldReader<bool, bool>);
261impl SPI_WRITE_SR_R {
262 #[inline(always)]
263 pub(crate) fn new(bits: bool) -> Self {
264 SPI_WRITE_SR_R(crate::FieldReader::new(bits))
265 }
266}
267impl core::ops::Deref for SPI_WRITE_SR_R {
268 type Target = crate::FieldReader<bool, bool>;
269 #[inline(always)]
270 fn deref(&self) -> &Self::Target {
271 &self.0
272 }
273}
274#[doc = "Field `spi_write_sr` writer - "]
275pub struct SPI_WRITE_SR_W<'a> {
276 w: &'a mut W,
277}
278impl<'a> SPI_WRITE_SR_W<'a> {
279 #[doc = r"Sets the field bit"]
280 #[inline(always)]
281 pub fn set_bit(self) -> &'a mut W {
282 self.bit(true)
283 }
284 #[doc = r"Clears the field bit"]
285 #[inline(always)]
286 pub fn clear_bit(self) -> &'a mut W {
287 self.bit(false)
288 }
289 #[doc = r"Writes raw bits to the field"]
290 #[inline(always)]
291 pub fn bit(self, value: bool) -> &'a mut W {
292 self.w.bits = (self.w.bits & !(1 << 26)) | ((value as u32 & 1) << 26);
293 self.w
294 }
295}
296#[doc = "Field `spi_pp` reader - "]
297pub struct SPI_PP_R(crate::FieldReader<bool, bool>);
298impl SPI_PP_R {
299 #[inline(always)]
300 pub(crate) fn new(bits: bool) -> Self {
301 SPI_PP_R(crate::FieldReader::new(bits))
302 }
303}
304impl core::ops::Deref for SPI_PP_R {
305 type Target = crate::FieldReader<bool, bool>;
306 #[inline(always)]
307 fn deref(&self) -> &Self::Target {
308 &self.0
309 }
310}
311#[doc = "Field `spi_pp` writer - "]
312pub struct SPI_PP_W<'a> {
313 w: &'a mut W,
314}
315impl<'a> SPI_PP_W<'a> {
316 #[doc = r"Sets the field bit"]
317 #[inline(always)]
318 pub fn set_bit(self) -> &'a mut W {
319 self.bit(true)
320 }
321 #[doc = r"Clears the field bit"]
322 #[inline(always)]
323 pub fn clear_bit(self) -> &'a mut W {
324 self.bit(false)
325 }
326 #[doc = r"Writes raw bits to the field"]
327 #[inline(always)]
328 pub fn bit(self, value: bool) -> &'a mut W {
329 self.w.bits = (self.w.bits & !(1 << 25)) | ((value as u32 & 1) << 25);
330 self.w
331 }
332}
333#[doc = "Field `spi_se` reader - "]
334pub struct SPI_SE_R(crate::FieldReader<bool, bool>);
335impl SPI_SE_R {
336 #[inline(always)]
337 pub(crate) fn new(bits: bool) -> Self {
338 SPI_SE_R(crate::FieldReader::new(bits))
339 }
340}
341impl core::ops::Deref for SPI_SE_R {
342 type Target = crate::FieldReader<bool, bool>;
343 #[inline(always)]
344 fn deref(&self) -> &Self::Target {
345 &self.0
346 }
347}
348#[doc = "Field `spi_se` writer - "]
349pub struct SPI_SE_W<'a> {
350 w: &'a mut W,
351}
352impl<'a> SPI_SE_W<'a> {
353 #[doc = r"Sets the field bit"]
354 #[inline(always)]
355 pub fn set_bit(self) -> &'a mut W {
356 self.bit(true)
357 }
358 #[doc = r"Clears the field bit"]
359 #[inline(always)]
360 pub fn clear_bit(self) -> &'a mut W {
361 self.bit(false)
362 }
363 #[doc = r"Writes raw bits to the field"]
364 #[inline(always)]
365 pub fn bit(self, value: bool) -> &'a mut W {
366 self.w.bits = (self.w.bits & !(1 << 24)) | ((value as u32 & 1) << 24);
367 self.w
368 }
369}
370#[doc = "Field `spi_be` reader - "]
371pub struct SPI_BE_R(crate::FieldReader<bool, bool>);
372impl SPI_BE_R {
373 #[inline(always)]
374 pub(crate) fn new(bits: bool) -> Self {
375 SPI_BE_R(crate::FieldReader::new(bits))
376 }
377}
378impl core::ops::Deref for SPI_BE_R {
379 type Target = crate::FieldReader<bool, bool>;
380 #[inline(always)]
381 fn deref(&self) -> &Self::Target {
382 &self.0
383 }
384}
385#[doc = "Field `spi_be` writer - "]
386pub struct SPI_BE_W<'a> {
387 w: &'a mut W,
388}
389impl<'a> SPI_BE_W<'a> {
390 #[doc = r"Sets the field bit"]
391 #[inline(always)]
392 pub fn set_bit(self) -> &'a mut W {
393 self.bit(true)
394 }
395 #[doc = r"Clears the field bit"]
396 #[inline(always)]
397 pub fn clear_bit(self) -> &'a mut W {
398 self.bit(false)
399 }
400 #[doc = r"Writes raw bits to the field"]
401 #[inline(always)]
402 pub fn bit(self, value: bool) -> &'a mut W {
403 self.w.bits = (self.w.bits & !(1 << 23)) | ((value as u32 & 1) << 23);
404 self.w
405 }
406}
407#[doc = "Field `spi_ce` reader - "]
408pub struct SPI_CE_R(crate::FieldReader<bool, bool>);
409impl SPI_CE_R {
410 #[inline(always)]
411 pub(crate) fn new(bits: bool) -> Self {
412 SPI_CE_R(crate::FieldReader::new(bits))
413 }
414}
415impl core::ops::Deref for SPI_CE_R {
416 type Target = crate::FieldReader<bool, bool>;
417 #[inline(always)]
418 fn deref(&self) -> &Self::Target {
419 &self.0
420 }
421}
422#[doc = "Field `spi_ce` writer - "]
423pub struct SPI_CE_W<'a> {
424 w: &'a mut W,
425}
426impl<'a> SPI_CE_W<'a> {
427 #[doc = r"Sets the field bit"]
428 #[inline(always)]
429 pub fn set_bit(self) -> &'a mut W {
430 self.bit(true)
431 }
432 #[doc = r"Clears the field bit"]
433 #[inline(always)]
434 pub fn clear_bit(self) -> &'a mut W {
435 self.bit(false)
436 }
437 #[doc = r"Writes raw bits to the field"]
438 #[inline(always)]
439 pub fn bit(self, value: bool) -> &'a mut W {
440 self.w.bits = (self.w.bits & !(1 << 22)) | ((value as u32 & 1) << 22);
441 self.w
442 }
443}
444#[doc = "Field `spi_dp` reader - "]
445pub struct SPI_DP_R(crate::FieldReader<bool, bool>);
446impl SPI_DP_R {
447 #[inline(always)]
448 pub(crate) fn new(bits: bool) -> Self {
449 SPI_DP_R(crate::FieldReader::new(bits))
450 }
451}
452impl core::ops::Deref for SPI_DP_R {
453 type Target = crate::FieldReader<bool, bool>;
454 #[inline(always)]
455 fn deref(&self) -> &Self::Target {
456 &self.0
457 }
458}
459#[doc = "Field `spi_dp` writer - "]
460pub struct SPI_DP_W<'a> {
461 w: &'a mut W,
462}
463impl<'a> SPI_DP_W<'a> {
464 #[doc = r"Sets the field bit"]
465 #[inline(always)]
466 pub fn set_bit(self) -> &'a mut W {
467 self.bit(true)
468 }
469 #[doc = r"Clears the field bit"]
470 #[inline(always)]
471 pub fn clear_bit(self) -> &'a mut W {
472 self.bit(false)
473 }
474 #[doc = r"Writes raw bits to the field"]
475 #[inline(always)]
476 pub fn bit(self, value: bool) -> &'a mut W {
477 self.w.bits = (self.w.bits & !(1 << 21)) | ((value as u32 & 1) << 21);
478 self.w
479 }
480}
481#[doc = "Field `spi_res` reader - "]
482pub struct SPI_RES_R(crate::FieldReader<bool, bool>);
483impl SPI_RES_R {
484 #[inline(always)]
485 pub(crate) fn new(bits: bool) -> Self {
486 SPI_RES_R(crate::FieldReader::new(bits))
487 }
488}
489impl core::ops::Deref for SPI_RES_R {
490 type Target = crate::FieldReader<bool, bool>;
491 #[inline(always)]
492 fn deref(&self) -> &Self::Target {
493 &self.0
494 }
495}
496#[doc = "Field `spi_res` writer - "]
497pub struct SPI_RES_W<'a> {
498 w: &'a mut W,
499}
500impl<'a> SPI_RES_W<'a> {
501 #[doc = r"Sets the field bit"]
502 #[inline(always)]
503 pub fn set_bit(self) -> &'a mut W {
504 self.bit(true)
505 }
506 #[doc = r"Clears the field bit"]
507 #[inline(always)]
508 pub fn clear_bit(self) -> &'a mut W {
509 self.bit(false)
510 }
511 #[doc = r"Writes raw bits to the field"]
512 #[inline(always)]
513 pub fn bit(self, value: bool) -> &'a mut W {
514 self.w.bits = (self.w.bits & !(1 << 20)) | ((value as u32 & 1) << 20);
515 self.w
516 }
517}
518#[doc = "Field `spi_hpm` reader - "]
519pub struct SPI_HPM_R(crate::FieldReader<bool, bool>);
520impl SPI_HPM_R {
521 #[inline(always)]
522 pub(crate) fn new(bits: bool) -> Self {
523 SPI_HPM_R(crate::FieldReader::new(bits))
524 }
525}
526impl core::ops::Deref for SPI_HPM_R {
527 type Target = crate::FieldReader<bool, bool>;
528 #[inline(always)]
529 fn deref(&self) -> &Self::Target {
530 &self.0
531 }
532}
533#[doc = "Field `spi_hpm` writer - "]
534pub struct SPI_HPM_W<'a> {
535 w: &'a mut W,
536}
537impl<'a> SPI_HPM_W<'a> {
538 #[doc = r"Sets the field bit"]
539 #[inline(always)]
540 pub fn set_bit(self) -> &'a mut W {
541 self.bit(true)
542 }
543 #[doc = r"Clears the field bit"]
544 #[inline(always)]
545 pub fn clear_bit(self) -> &'a mut W {
546 self.bit(false)
547 }
548 #[doc = r"Writes raw bits to the field"]
549 #[inline(always)]
550 pub fn bit(self, value: bool) -> &'a mut W {
551 self.w.bits = (self.w.bits & !(1 << 19)) | ((value as u32 & 1) << 19);
552 self.w
553 }
554}
555impl R {
556 #[doc = "Bit 18 - In the master mode, it is the start bit of a single operation. Self-clear by hardware"]
557 #[inline(always)]
558 pub fn spi_usr(&self) -> SPI_USR_R {
559 SPI_USR_R::new(((self.bits >> 18) & 1) != 0)
560 }
561 #[doc = "Bit 31"]
562 #[inline(always)]
563 pub fn spi_read(&self) -> SPI_READ_R {
564 SPI_READ_R::new(((self.bits >> 31) & 1) != 0)
565 }
566 #[doc = "Bit 30"]
567 #[inline(always)]
568 pub fn spi_write_enable(&self) -> SPI_WRITE_ENABLE_R {
569 SPI_WRITE_ENABLE_R::new(((self.bits >> 30) & 1) != 0)
570 }
571 #[doc = "Bit 29"]
572 #[inline(always)]
573 pub fn spi_write_disable(&self) -> SPI_WRITE_DISABLE_R {
574 SPI_WRITE_DISABLE_R::new(((self.bits >> 29) & 1) != 0)
575 }
576 #[doc = "Bit 28"]
577 #[inline(always)]
578 pub fn spi_read_id(&self) -> SPI_READ_ID_R {
579 SPI_READ_ID_R::new(((self.bits >> 28) & 1) != 0)
580 }
581 #[doc = "Bit 27"]
582 #[inline(always)]
583 pub fn spi_read_sr(&self) -> SPI_READ_SR_R {
584 SPI_READ_SR_R::new(((self.bits >> 27) & 1) != 0)
585 }
586 #[doc = "Bit 26"]
587 #[inline(always)]
588 pub fn spi_write_sr(&self) -> SPI_WRITE_SR_R {
589 SPI_WRITE_SR_R::new(((self.bits >> 26) & 1) != 0)
590 }
591 #[doc = "Bit 25"]
592 #[inline(always)]
593 pub fn spi_pp(&self) -> SPI_PP_R {
594 SPI_PP_R::new(((self.bits >> 25) & 1) != 0)
595 }
596 #[doc = "Bit 24"]
597 #[inline(always)]
598 pub fn spi_se(&self) -> SPI_SE_R {
599 SPI_SE_R::new(((self.bits >> 24) & 1) != 0)
600 }
601 #[doc = "Bit 23"]
602 #[inline(always)]
603 pub fn spi_be(&self) -> SPI_BE_R {
604 SPI_BE_R::new(((self.bits >> 23) & 1) != 0)
605 }
606 #[doc = "Bit 22"]
607 #[inline(always)]
608 pub fn spi_ce(&self) -> SPI_CE_R {
609 SPI_CE_R::new(((self.bits >> 22) & 1) != 0)
610 }
611 #[doc = "Bit 21"]
612 #[inline(always)]
613 pub fn spi_dp(&self) -> SPI_DP_R {
614 SPI_DP_R::new(((self.bits >> 21) & 1) != 0)
615 }
616 #[doc = "Bit 20"]
617 #[inline(always)]
618 pub fn spi_res(&self) -> SPI_RES_R {
619 SPI_RES_R::new(((self.bits >> 20) & 1) != 0)
620 }
621 #[doc = "Bit 19"]
622 #[inline(always)]
623 pub fn spi_hpm(&self) -> SPI_HPM_R {
624 SPI_HPM_R::new(((self.bits >> 19) & 1) != 0)
625 }
626}
627impl W {
628 #[doc = "Bit 18 - In the master mode, it is the start bit of a single operation. Self-clear by hardware"]
629 #[inline(always)]
630 pub fn spi_usr(&mut self) -> SPI_USR_W {
631 SPI_USR_W { w: self }
632 }
633 #[doc = "Bit 31"]
634 #[inline(always)]
635 pub fn spi_read(&mut self) -> SPI_READ_W {
636 SPI_READ_W { w: self }
637 }
638 #[doc = "Bit 30"]
639 #[inline(always)]
640 pub fn spi_write_enable(&mut self) -> SPI_WRITE_ENABLE_W {
641 SPI_WRITE_ENABLE_W { w: self }
642 }
643 #[doc = "Bit 29"]
644 #[inline(always)]
645 pub fn spi_write_disable(&mut self) -> SPI_WRITE_DISABLE_W {
646 SPI_WRITE_DISABLE_W { w: self }
647 }
648 #[doc = "Bit 28"]
649 #[inline(always)]
650 pub fn spi_read_id(&mut self) -> SPI_READ_ID_W {
651 SPI_READ_ID_W { w: self }
652 }
653 #[doc = "Bit 27"]
654 #[inline(always)]
655 pub fn spi_read_sr(&mut self) -> SPI_READ_SR_W {
656 SPI_READ_SR_W { w: self }
657 }
658 #[doc = "Bit 26"]
659 #[inline(always)]
660 pub fn spi_write_sr(&mut self) -> SPI_WRITE_SR_W {
661 SPI_WRITE_SR_W { w: self }
662 }
663 #[doc = "Bit 25"]
664 #[inline(always)]
665 pub fn spi_pp(&mut self) -> SPI_PP_W {
666 SPI_PP_W { w: self }
667 }
668 #[doc = "Bit 24"]
669 #[inline(always)]
670 pub fn spi_se(&mut self) -> SPI_SE_W {
671 SPI_SE_W { w: self }
672 }
673 #[doc = "Bit 23"]
674 #[inline(always)]
675 pub fn spi_be(&mut self) -> SPI_BE_W {
676 SPI_BE_W { w: self }
677 }
678 #[doc = "Bit 22"]
679 #[inline(always)]
680 pub fn spi_ce(&mut self) -> SPI_CE_W {
681 SPI_CE_W { w: self }
682 }
683 #[doc = "Bit 21"]
684 #[inline(always)]
685 pub fn spi_dp(&mut self) -> SPI_DP_W {
686 SPI_DP_W { w: self }
687 }
688 #[doc = "Bit 20"]
689 #[inline(always)]
690 pub fn spi_res(&mut self) -> SPI_RES_W {
691 SPI_RES_W { w: self }
692 }
693 #[doc = "Bit 19"]
694 #[inline(always)]
695 pub fn spi_hpm(&mut self) -> SPI_HPM_W {
696 SPI_HPM_W { w: self }
697 }
698 #[doc = "Writes raw bits to the register."]
699 #[inline(always)]
700 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
701 self.0.bits(bits);
702 self
703 }
704}
705#[doc = "In the master mode, it is the start bit of a single operation. Self-clear by hardware\n\nThis register you can [`read`]
706(crate::generic::Reg::read), [`write_with_zero`]
707(crate::generic::Reg::write_with_zero), [`reset`]
708(crate::generic::Reg::reset), [`write`]
709(crate::generic::Reg::write), [`modify`]
710(crate::generic::Reg::modify). See [API]
711(https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [spi_cmd]
712(index.html) module"]
713pub struct SPI_CMD_SPEC;
714impl crate::RegisterSpec for SPI_CMD_SPEC {
715 type Ux = u32;
716}
717#[doc = "`read()` method returns [spi_cmd::R]
718(R) reader structure"]
719impl crate::Readable for SPI_CMD_SPEC {
720 type Reader = R;
721}
722#[doc = "`write(|w| ..)` method takes [spi_cmd::W]
723(W) writer structure"]
724impl crate::Writable for SPI_CMD_SPEC {
725 type Writer = W;
726}
727#[doc = "`reset()` method sets SPI_CMD to value 0"]
728impl crate::Resettable for SPI_CMD_SPEC {
729 #[inline(always)]
730 fn reset_value() -> Self::Ux {
731 0
732 }
733}