stm32f7_staging/stm32f779/spdifrx/
csr.rs1pub type R = crate::R<CSRrs>;
3pub type USR_R = crate::FieldReader<u16>;
5pub type CS_R = crate::FieldReader;
7pub type SOB_R = crate::BitReader;
9impl R {
10 #[inline(always)]
12 pub fn usr(&self) -> USR_R {
13 USR_R::new((self.bits & 0xffff) as u16)
14 }
15 #[inline(always)]
17 pub fn cs(&self) -> CS_R {
18 CS_R::new(((self.bits >> 16) & 0xff) as u8)
19 }
20 #[inline(always)]
22 pub fn sob(&self) -> SOB_R {
23 SOB_R::new(((self.bits >> 24) & 1) != 0)
24 }
25}
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("CSR")
29 .field("usr", &self.usr())
30 .field("cs", &self.cs())
31 .field("sob", &self.sob())
32 .finish()
33 }
34}
35pub struct CSRrs;
41impl crate::RegisterSpec for CSRrs {
42 type Ux = u32;
43}
44impl crate::Readable for CSRrs {}
46impl crate::Resettable for CSRrs {}