stm32f7_staging/stm32f779/dsi/
wier.rs1pub type R = crate::R<WIERrs>;
3pub type W = crate::W<WIERrs>;
5pub type TEIE_R = crate::BitReader;
7pub type TEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type ERIE_R = crate::BitReader;
11pub type ERIE_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type PLLLIE_R = crate::BitReader;
15pub type PLLLIE_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type PLLUIE_R = crate::BitReader;
19pub type PLLUIE_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type RRIE_R = crate::BitReader;
23pub type RRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
25impl R {
26 #[inline(always)]
28 pub fn teie(&self) -> TEIE_R {
29 TEIE_R::new((self.bits & 1) != 0)
30 }
31 #[inline(always)]
33 pub fn erie(&self) -> ERIE_R {
34 ERIE_R::new(((self.bits >> 1) & 1) != 0)
35 }
36 #[inline(always)]
38 pub fn plllie(&self) -> PLLLIE_R {
39 PLLLIE_R::new(((self.bits >> 9) & 1) != 0)
40 }
41 #[inline(always)]
43 pub fn plluie(&self) -> PLLUIE_R {
44 PLLUIE_R::new(((self.bits >> 10) & 1) != 0)
45 }
46 #[inline(always)]
48 pub fn rrie(&self) -> RRIE_R {
49 RRIE_R::new(((self.bits >> 13) & 1) != 0)
50 }
51}
52impl core::fmt::Debug for R {
53 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
54 f.debug_struct("WIER")
55 .field("rrie", &self.rrie())
56 .field("plluie", &self.plluie())
57 .field("plllie", &self.plllie())
58 .field("erie", &self.erie())
59 .field("teie", &self.teie())
60 .finish()
61 }
62}
63impl W {
64 #[inline(always)]
66 pub fn teie(&mut self) -> TEIE_W<WIERrs> {
67 TEIE_W::new(self, 0)
68 }
69 #[inline(always)]
71 pub fn erie(&mut self) -> ERIE_W<WIERrs> {
72 ERIE_W::new(self, 1)
73 }
74 #[inline(always)]
76 pub fn plllie(&mut self) -> PLLLIE_W<WIERrs> {
77 PLLLIE_W::new(self, 9)
78 }
79 #[inline(always)]
81 pub fn plluie(&mut self) -> PLLUIE_W<WIERrs> {
82 PLLUIE_W::new(self, 10)
83 }
84 #[inline(always)]
86 pub fn rrie(&mut self) -> RRIE_W<WIERrs> {
87 RRIE_W::new(self, 13)
88 }
89}
90pub struct WIERrs;
96impl crate::RegisterSpec for WIERrs {
97 type Ux = u32;
98}
99impl crate::Readable for WIERrs {}
101impl crate::Writable for WIERrs {
103 type Safety = crate::Unsafe;
104}
105impl crate::Resettable for WIERrs {}