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 `LPMCCR` reader
pub type R = crate::R<LPMCCRrs>;
///Field `VLPSIZE` reader - VLPSIZE
pub type VLPSIZE_R = crate::FieldReader;
///Field `LPSIZE` reader - LPSIZE
pub type LPSIZE_R = crate::FieldReader;
impl R {
///Bits 0:7 - VLPSIZE
#[inline(always)]
pub fn vlpsize(&self) -> VLPSIZE_R {
VLPSIZE_R::new((self.bits & 0xff) as u8)
}
///Bits 16:23 - LPSIZE
#[inline(always)]
pub fn lpsize(&self) -> LPSIZE_R {
LPSIZE_R::new(((self.bits >> 16) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPMCCR")
.field("vlpsize", &self.vlpsize())
.field("lpsize", &self.lpsize())
.finish()
}
}
/**DSI Host low-power mode current configuration register
You can [`read`](crate::Reg::read) this register and get [`lpmccr::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:LPMCCR)*/
pub struct LPMCCRrs;
impl crate::RegisterSpec for LPMCCRrs {
type Ux = u32;
}
///`read()` method returns [`lpmccr::R`](R) reader structure
impl crate::Readable for LPMCCRrs {}
///`reset()` method sets LPMCCR to value 0
impl crate::Resettable for LPMCCRrs {}