1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
///Register `L1CFBLR` reader
pub type R = crate::R<L1CFBLRrs>;
///Register `L1CFBLR` writer
pub type W = crate::W<L1CFBLRrs>;
///Field `CFBLL` reader - CFBLL
pub type CFBLL_R = crate::FieldReader<u16>;
///Field `CFBLL` writer - CFBLL
pub type CFBLL_W<'a, REG> = crate::FieldWriter<'a, REG, 14, u16>;
///Field `CFBP` reader - CFBP
pub type CFBP_R = crate::FieldReader<u16>;
///Field `CFBP` writer - CFBP
pub type CFBP_W<'a, REG> = crate::FieldWriter<'a, REG, 14, u16>;
impl R {
///Bits 0:13 - CFBLL
#[inline(always)]
pub fn cfbll(&self) -> CFBLL_R {
CFBLL_R::new((self.bits & 0x3fff) as u16)
}
///Bits 16:29 - CFBP
#[inline(always)]
pub fn cfbp(&self) -> CFBP_R {
CFBP_R::new(((self.bits >> 16) & 0x3fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("L1CFBLR")
.field("cfbll", &self.cfbll())
.field("cfbp", &self.cfbp())
.finish()
}
}
impl W {
///Bits 0:13 - CFBLL
#[inline(always)]
pub fn cfbll(&mut self) -> CFBLL_W<L1CFBLRrs> {
CFBLL_W::new(self, 0)
}
///Bits 16:29 - CFBP
#[inline(always)]
pub fn cfbp(&mut self) -> CFBP_W<L1CFBLRrs> {
CFBP_W::new(self, 16)
}
}
/**This register defines the color frame buffer line length and pitch.
You can [`read`](crate::Reg::read) this register and get [`l1cfblr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`l1cfblr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32MP157.html#LTDC:L1CFBLR)*/
pub struct L1CFBLRrs;
impl crate::RegisterSpec for L1CFBLRrs {
type Ux = u32;
}
///`read()` method returns [`l1cfblr::R`](R) reader structure
impl crate::Readable for L1CFBLRrs {}
///`write(|w| ..)` method takes [`l1cfblr::W`](W) writer structure
impl crate::Writable for L1CFBLRrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets L1CFBLR to value 0
impl crate::Resettable for L1CFBLRrs {}