stm32f7_staging/stm32f779/dsi/
psr.rs1pub type R = crate::R<PSRrs>;
3pub type PD_R = crate::BitReader;
5pub type PSSC_R = crate::BitReader;
7pub type UANC_R = crate::BitReader;
9pub type PSS0_R = crate::BitReader;
11pub type UAN0_R = crate::BitReader;
13pub type RUE0_R = crate::BitReader;
15pub type PSS1_R = crate::BitReader;
17pub type UAN1_R = crate::BitReader;
19impl R {
20 #[inline(always)]
22 pub fn pd(&self) -> PD_R {
23 PD_R::new(((self.bits >> 1) & 1) != 0)
24 }
25 #[inline(always)]
27 pub fn pssc(&self) -> PSSC_R {
28 PSSC_R::new(((self.bits >> 2) & 1) != 0)
29 }
30 #[inline(always)]
32 pub fn uanc(&self) -> UANC_R {
33 UANC_R::new(((self.bits >> 3) & 1) != 0)
34 }
35 #[inline(always)]
37 pub fn pss0(&self) -> PSS0_R {
38 PSS0_R::new(((self.bits >> 4) & 1) != 0)
39 }
40 #[inline(always)]
42 pub fn uan0(&self) -> UAN0_R {
43 UAN0_R::new(((self.bits >> 5) & 1) != 0)
44 }
45 #[inline(always)]
47 pub fn rue0(&self) -> RUE0_R {
48 RUE0_R::new(((self.bits >> 6) & 1) != 0)
49 }
50 #[inline(always)]
52 pub fn pss1(&self) -> PSS1_R {
53 PSS1_R::new(((self.bits >> 7) & 1) != 0)
54 }
55 #[inline(always)]
57 pub fn uan1(&self) -> UAN1_R {
58 UAN1_R::new(((self.bits >> 8) & 1) != 0)
59 }
60}
61impl core::fmt::Debug for R {
62 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
63 f.debug_struct("PSR")
64 .field("pd", &self.pd())
65 .field("pssc", &self.pssc())
66 .field("uanc", &self.uanc())
67 .field("pss0", &self.pss0())
68 .field("uan0", &self.uan0())
69 .field("rue0", &self.rue0())
70 .field("pss1", &self.pss1())
71 .field("uan1", &self.uan1())
72 .finish()
73 }
74}
75pub struct PSRrs;
81impl crate::RegisterSpec for PSRrs {
82 type Ux = u32;
83}
84impl crate::Readable for PSRrs {}
86impl crate::Resettable for PSRrs {}