stm32f1_staging/stm32f100/cec/
esr.rs1pub type R = crate::R<ESRrs>;
3pub type BTE_R = crate::BitReader;
5pub type BPE_R = crate::BitReader;
7pub type RBTFE_R = crate::BitReader;
9pub type SBE_R = crate::BitReader;
11pub type ACKE_R = crate::BitReader;
13pub type LINE_R = crate::BitReader;
15pub type TBTFE_R = crate::BitReader;
17impl R {
18 #[inline(always)]
20 pub fn bte(&self) -> BTE_R {
21 BTE_R::new((self.bits & 1) != 0)
22 }
23 #[inline(always)]
25 pub fn bpe(&self) -> BPE_R {
26 BPE_R::new(((self.bits >> 1) & 1) != 0)
27 }
28 #[inline(always)]
30 pub fn rbtfe(&self) -> RBTFE_R {
31 RBTFE_R::new(((self.bits >> 2) & 1) != 0)
32 }
33 #[inline(always)]
35 pub fn sbe(&self) -> SBE_R {
36 SBE_R::new(((self.bits >> 3) & 1) != 0)
37 }
38 #[inline(always)]
40 pub fn acke(&self) -> ACKE_R {
41 ACKE_R::new(((self.bits >> 4) & 1) != 0)
42 }
43 #[inline(always)]
45 pub fn line(&self) -> LINE_R {
46 LINE_R::new(((self.bits >> 5) & 1) != 0)
47 }
48 #[inline(always)]
50 pub fn tbtfe(&self) -> TBTFE_R {
51 TBTFE_R::new(((self.bits >> 6) & 1) != 0)
52 }
53}
54impl core::fmt::Debug for R {
55 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
56 f.debug_struct("ESR")
57 .field("bte", &self.bte())
58 .field("bpe", &self.bpe())
59 .field("rbtfe", &self.rbtfe())
60 .field("sbe", &self.sbe())
61 .field("acke", &self.acke())
62 .field("line", &self.line())
63 .field("tbtfe", &self.tbtfe())
64 .finish()
65 }
66}
67pub struct ESRrs;
73impl crate::RegisterSpec for ESRrs {
74 type Ux = u32;
75}
76impl crate::Readable for ESRrs {}
78impl crate::Resettable for ESRrs {}