stm32f7_staging/stm32f779/dcmi/
dr.rs1pub type R = crate::R<DRrs>;
3pub type BYTE_R = crate::FieldReader;
5impl R {
6 #[inline(always)]
10 pub fn byte(&self, n: u8) -> BYTE_R {
11 #[allow(clippy::no_effect)]
12 [(); 4][n as usize];
13 BYTE_R::new(((self.bits >> (n * 8)) & 0xff) as u8)
14 }
15 #[inline(always)]
18 pub fn byte_iter(&self) -> impl Iterator<Item = BYTE_R> + '_ {
19 (0..4).map(move |n| BYTE_R::new(((self.bits >> (n * 8)) & 0xff) as u8))
20 }
21 #[inline(always)]
23 pub fn byte0(&self) -> BYTE_R {
24 BYTE_R::new((self.bits & 0xff) as u8)
25 }
26 #[inline(always)]
28 pub fn byte1(&self) -> BYTE_R {
29 BYTE_R::new(((self.bits >> 8) & 0xff) as u8)
30 }
31 #[inline(always)]
33 pub fn byte2(&self) -> BYTE_R {
34 BYTE_R::new(((self.bits >> 16) & 0xff) as u8)
35 }
36 #[inline(always)]
38 pub fn byte3(&self) -> BYTE_R {
39 BYTE_R::new(((self.bits >> 24) & 0xff) as u8)
40 }
41}
42impl core::fmt::Debug for R {
43 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
44 f.debug_struct("DR")
45 .field("byte0", &self.byte0())
46 .field("byte1", &self.byte1())
47 .field("byte2", &self.byte2())
48 .field("byte3", &self.byte3())
49 .finish()
50 }
51}
52pub struct DRrs;
58impl crate::RegisterSpec for DRrs {
59 type Ux = u32;
60}
61impl crate::Readable for DRrs {}
63impl crate::Resettable for DRrs {}