stm32f7_staging/stm32f779/dsi/
dltcr.rs1pub type R = crate::R<DLTCRrs>;
3pub type W = crate::W<DLTCRrs>;
5pub type MRD_TIME_R = crate::FieldReader<u16>;
7pub type MRD_TIME_W<'a, REG> = crate::FieldWriter<'a, REG, 15, u16>;
9pub type LP2HS_TIME_R = crate::FieldReader;
11pub type LP2HS_TIME_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13pub type HS2LP_TIME_R = crate::FieldReader;
15pub type HS2LP_TIME_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17impl R {
18 #[inline(always)]
20 pub fn mrd_time(&self) -> MRD_TIME_R {
21 MRD_TIME_R::new((self.bits & 0x7fff) as u16)
22 }
23 #[inline(always)]
25 pub fn lp2hs_time(&self) -> LP2HS_TIME_R {
26 LP2HS_TIME_R::new(((self.bits >> 16) & 0xff) as u8)
27 }
28 #[inline(always)]
30 pub fn hs2lp_time(&self) -> HS2LP_TIME_R {
31 HS2LP_TIME_R::new(((self.bits >> 24) & 0xff) as u8)
32 }
33}
34impl core::fmt::Debug for R {
35 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36 f.debug_struct("DLTCR")
37 .field("mrd_time", &self.mrd_time())
38 .field("lp2hs_time", &self.lp2hs_time())
39 .field("hs2lp_time", &self.hs2lp_time())
40 .finish()
41 }
42}
43impl W {
44 #[inline(always)]
46 pub fn mrd_time(&mut self) -> MRD_TIME_W<DLTCRrs> {
47 MRD_TIME_W::new(self, 0)
48 }
49 #[inline(always)]
51 pub fn lp2hs_time(&mut self) -> LP2HS_TIME_W<DLTCRrs> {
52 LP2HS_TIME_W::new(self, 16)
53 }
54 #[inline(always)]
56 pub fn hs2lp_time(&mut self) -> HS2LP_TIME_W<DLTCRrs> {
57 HS2LP_TIME_W::new(self, 24)
58 }
59}
60pub struct DLTCRrs;
66impl crate::RegisterSpec for DLTCRrs {
67 type Ux = u32;
68}
69impl crate::Readable for DLTCRrs {}
71impl crate::Writable for DLTCRrs {
73 type Safety = crate::Unsafe;
74}
75impl crate::Resettable for DLTCRrs {}