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
///Register `LCCCR` reader
pub type R = crate::R<LCCCRrs>;
///Field `COLC` reader - COLC
pub type COLC_R = crate::FieldReader;
///Field `LPE` reader - LPE
pub type LPE_R = crate::BitReader;
impl R {
///Bits 0:3 - COLC
#[inline(always)]
pub fn colc(&self) -> COLC_R {
COLC_R::new((self.bits & 0x0f) as u8)
}
///Bit 8 - LPE
#[inline(always)]
pub fn lpe(&self) -> LPE_R {
LPE_R::new(((self.bits >> 8) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LCCCR")
.field("colc", &self.colc())
.field("lpe", &self.lpe())
.finish()
}
}
/**DSI Host LTDC current color coding register
You can [`read`](crate::Reg::read) this register and get [`lcccr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32MP157.html#DSI:LCCCR)*/
pub struct LCCCRrs;
impl crate::RegisterSpec for LCCCRrs {
type Ux = u32;
}
///`read()` method returns [`lcccr::R`](R) reader structure
impl crate::Readable for LCCCRrs {}
///`reset()` method sets LCCCR to value 0
impl crate::Resettable for LCCCRrs {}