stm32f3_staging/stm32f373/spi1/
dr.rs1pub type R = crate::R<DRrs>;
3pub type W = crate::W<DRrs>;
5pub type DR_R = crate::FieldReader<u16>;
7pub type DR_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
9impl R {
10 #[inline(always)]
12 pub fn dr(&self) -> DR_R {
13 DR_R::new(self.bits)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("DR").field("dr", &self.dr()).finish()
19 }
20}
21impl W {
22 #[inline(always)]
24 pub fn dr(&mut self) -> DR_W<DRrs> {
25 DR_W::new(self, 0)
26 }
27}
28pub struct DRrs;
34impl crate::RegisterSpec for DRrs {
35 type Ux = u16;
36}
37impl crate::Readable for DRrs {}
39impl crate::Writable for DRrs {
41 type Safety = crate::Safe;
42 const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
43 const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
44}
45impl crate::Resettable for DRrs {
47 const RESET_VALUE: u16 = 0;
48}