stm32g0/stm32g070/spi1/
hwcfgr.rs1pub type R = crate::R<HWCFGRrs>;
3pub type CRCCFG_R = crate::FieldReader;
5pub type I2SCFG_R = crate::FieldReader;
7pub type I2SCKCFG_R = crate::FieldReader;
9pub type DSCFG_R = crate::FieldReader;
11pub type NSSCFG_R = crate::FieldReader;
13impl R {
14 #[inline(always)]
16 pub fn crccfg(&self) -> CRCCFG_R {
17 CRCCFG_R::new((self.bits & 0x0f) as u8)
18 }
19 #[inline(always)]
21 pub fn i2scfg(&self) -> I2SCFG_R {
22 I2SCFG_R::new(((self.bits >> 4) & 0x0f) as u8)
23 }
24 #[inline(always)]
26 pub fn i2sckcfg(&self) -> I2SCKCFG_R {
27 I2SCKCFG_R::new(((self.bits >> 8) & 0x0f) as u8)
28 }
29 #[inline(always)]
31 pub fn dscfg(&self) -> DSCFG_R {
32 DSCFG_R::new(((self.bits >> 12) & 0x0f) as u8)
33 }
34 #[inline(always)]
36 pub fn nsscfg(&self) -> NSSCFG_R {
37 NSSCFG_R::new(((self.bits >> 16) & 0x0f) as u8)
38 }
39}
40impl core::fmt::Debug for R {
41 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
42 f.debug_struct("HWCFGR")
43 .field("crccfg", &self.crccfg())
44 .field("i2scfg", &self.i2scfg())
45 .field("i2sckcfg", &self.i2sckcfg())
46 .field("dscfg", &self.dscfg())
47 .field("nsscfg", &self.nsscfg())
48 .finish()
49 }
50}
51pub struct HWCFGRrs;
57impl crate::RegisterSpec for HWCFGRrs {
58 type Ux = u32;
59}
60impl crate::Readable for HWCFGRrs {}
62impl crate::Resettable for HWCFGRrs {}