stm32f7_staging/stm32f779/dcmi/
escr.rs1pub type R = crate::R<ESCRrs>;
3pub type W = crate::W<ESCRrs>;
5pub type FSC_R = crate::FieldReader;
7pub type FSC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9pub type LSC_R = crate::FieldReader;
11pub type LSC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13pub type LEC_R = crate::FieldReader;
15pub type LEC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17pub type FEC_R = crate::FieldReader;
19pub type FEC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
21impl R {
22 #[inline(always)]
24 pub fn fsc(&self) -> FSC_R {
25 FSC_R::new((self.bits & 0xff) as u8)
26 }
27 #[inline(always)]
29 pub fn lsc(&self) -> LSC_R {
30 LSC_R::new(((self.bits >> 8) & 0xff) as u8)
31 }
32 #[inline(always)]
34 pub fn lec(&self) -> LEC_R {
35 LEC_R::new(((self.bits >> 16) & 0xff) as u8)
36 }
37 #[inline(always)]
39 pub fn fec(&self) -> FEC_R {
40 FEC_R::new(((self.bits >> 24) & 0xff) as u8)
41 }
42}
43impl core::fmt::Debug for R {
44 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
45 f.debug_struct("ESCR")
46 .field("fec", &self.fec())
47 .field("lec", &self.lec())
48 .field("lsc", &self.lsc())
49 .field("fsc", &self.fsc())
50 .finish()
51 }
52}
53impl W {
54 #[inline(always)]
56 pub fn fsc(&mut self) -> FSC_W<ESCRrs> {
57 FSC_W::new(self, 0)
58 }
59 #[inline(always)]
61 pub fn lsc(&mut self) -> LSC_W<ESCRrs> {
62 LSC_W::new(self, 8)
63 }
64 #[inline(always)]
66 pub fn lec(&mut self) -> LEC_W<ESCRrs> {
67 LEC_W::new(self, 16)
68 }
69 #[inline(always)]
71 pub fn fec(&mut self) -> FEC_W<ESCRrs> {
72 FEC_W::new(self, 24)
73 }
74}
75pub struct ESCRrs;
81impl crate::RegisterSpec for ESCRrs {
82 type Ux = u32;
83}
84impl crate::Readable for ESCRrs {}
86impl crate::Writable for ESCRrs {
88 type Safety = crate::Unsafe;
89}
90impl crate::Resettable for ESCRrs {}