py32f0/py32f040/ctc/
sr.rs1pub struct R(crate::R<SR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16pub type CKOKIF_R = crate::BitReader<bool>;
18pub type CKWARNIF_R = crate::BitReader<bool>;
20pub type ERRIF_R = crate::BitReader<bool>;
22pub type EREFIF_R = crate::BitReader<bool>;
24pub type CKERR_R = crate::BitReader<bool>;
26pub type REFMISS_R = crate::BitReader<bool>;
28pub type TRIMERR_R = crate::BitReader<bool>;
30pub type REFDIR_R = crate::BitReader<bool>;
32pub type REFCAP_R = crate::FieldReader<u16, u16>;
34impl R {
35 #[inline(always)]
37 pub fn ckokif(&self) -> CKOKIF_R {
38 CKOKIF_R::new((self.bits & 1) != 0)
39 }
40 #[inline(always)]
42 pub fn ckwarnif(&self) -> CKWARNIF_R {
43 CKWARNIF_R::new(((self.bits >> 1) & 1) != 0)
44 }
45 #[inline(always)]
47 pub fn errif(&self) -> ERRIF_R {
48 ERRIF_R::new(((self.bits >> 2) & 1) != 0)
49 }
50 #[inline(always)]
52 pub fn erefif(&self) -> EREFIF_R {
53 EREFIF_R::new(((self.bits >> 3) & 1) != 0)
54 }
55 #[inline(always)]
57 pub fn ckerr(&self) -> CKERR_R {
58 CKERR_R::new(((self.bits >> 8) & 1) != 0)
59 }
60 #[inline(always)]
62 pub fn refmiss(&self) -> REFMISS_R {
63 REFMISS_R::new(((self.bits >> 9) & 1) != 0)
64 }
65 #[inline(always)]
67 pub fn trimerr(&self) -> TRIMERR_R {
68 TRIMERR_R::new(((self.bits >> 10) & 1) != 0)
69 }
70 #[inline(always)]
72 pub fn refdir(&self) -> REFDIR_R {
73 REFDIR_R::new(((self.bits >> 15) & 1) != 0)
74 }
75 #[inline(always)]
77 pub fn refcap(&self) -> REFCAP_R {
78 REFCAP_R::new(((self.bits >> 16) & 0xffff) as u16)
79 }
80}
81pub struct SR_SPEC;
87impl crate::RegisterSpec for SR_SPEC {
88 type Ux = u32;
89}
90impl crate::Readable for SR_SPEC {
92 type Reader = R;
93}
94impl crate::Resettable for SR_SPEC {
96 const RESET_VALUE: Self::Ux = 0;
97}