stm32f7_staging/stm32f779/dsi/
lpcr.rs1pub type R = crate::R<LPCRrs>;
3pub type W = crate::W<LPCRrs>;
5pub type DEP_R = crate::BitReader;
7pub type DEP_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type VSP_R = crate::BitReader;
11pub type VSP_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type HSP_R = crate::BitReader;
15pub type HSP_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[inline(always)]
20 pub fn dep(&self) -> DEP_R {
21 DEP_R::new((self.bits & 1) != 0)
22 }
23 #[inline(always)]
25 pub fn vsp(&self) -> VSP_R {
26 VSP_R::new(((self.bits >> 1) & 1) != 0)
27 }
28 #[inline(always)]
30 pub fn hsp(&self) -> HSP_R {
31 HSP_R::new(((self.bits >> 2) & 1) != 0)
32 }
33}
34impl core::fmt::Debug for R {
35 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36 f.debug_struct("LPCR")
37 .field("dep", &self.dep())
38 .field("vsp", &self.vsp())
39 .field("hsp", &self.hsp())
40 .finish()
41 }
42}
43impl W {
44 #[inline(always)]
46 pub fn dep(&mut self) -> DEP_W<LPCRrs> {
47 DEP_W::new(self, 0)
48 }
49 #[inline(always)]
51 pub fn vsp(&mut self) -> VSP_W<LPCRrs> {
52 VSP_W::new(self, 1)
53 }
54 #[inline(always)]
56 pub fn hsp(&mut self) -> HSP_W<LPCRrs> {
57 HSP_W::new(self, 2)
58 }
59}
60pub struct LPCRrs;
66impl crate::RegisterSpec for LPCRrs {
67 type Ux = u32;
68}
69impl crate::Readable for LPCRrs {}
71impl crate::Writable for LPCRrs {
73 type Safety = crate::Unsafe;
74}
75impl crate::Resettable for LPCRrs {}