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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
///Register `VMCCR` reader
pub type R = crate::R<VMCCRrs>;
///Field `VMT` reader - Video mode type
pub type VMT_R = crate::FieldReader;
///Field `LPVSAE` reader - Low-power vertical sync time enable
pub type LPVSAE_R = crate::BitReader;
///Field `LPVBPE` reader - Low-power vertical back-porch enable
pub type LPVBPE_R = crate::BitReader;
///Field `LPVFPE` reader - Low-power vertical front-porch enable
pub type LPVFPE_R = crate::BitReader;
///Field `LPVAE` reader - Low-power vertical active enable
pub type LPVAE_R = crate::BitReader;
///Field `LPHBPE` reader - Low-power horizontal back-porch enable
pub type LPHBPE_R = crate::BitReader;
///Field `LPHFE` reader - Low-power horizontal front-porch enable
pub type LPHFE_R = crate::BitReader;
///Field `FBTAAE` reader - Frame BTA acknowledge enable
pub type FBTAAE_R = crate::BitReader;
///Field `LPCE` reader - Low-power command enable
pub type LPCE_R = crate::BitReader;
impl R {
///Bits 0:1 - Video mode type
#[inline(always)]
pub fn vmt(&self) -> VMT_R {
VMT_R::new((self.bits & 3) as u8)
}
///Bit 2 - Low-power vertical sync time enable
#[inline(always)]
pub fn lpvsae(&self) -> LPVSAE_R {
LPVSAE_R::new(((self.bits >> 2) & 1) != 0)
}
///Bit 3 - Low-power vertical back-porch enable
#[inline(always)]
pub fn lpvbpe(&self) -> LPVBPE_R {
LPVBPE_R::new(((self.bits >> 3) & 1) != 0)
}
///Bit 4 - Low-power vertical front-porch enable
#[inline(always)]
pub fn lpvfpe(&self) -> LPVFPE_R {
LPVFPE_R::new(((self.bits >> 4) & 1) != 0)
}
///Bit 5 - Low-power vertical active enable
#[inline(always)]
pub fn lpvae(&self) -> LPVAE_R {
LPVAE_R::new(((self.bits >> 5) & 1) != 0)
}
///Bit 6 - Low-power horizontal back-porch enable
#[inline(always)]
pub fn lphbpe(&self) -> LPHBPE_R {
LPHBPE_R::new(((self.bits >> 6) & 1) != 0)
}
///Bit 7 - Low-power horizontal front-porch enable
#[inline(always)]
pub fn lphfe(&self) -> LPHFE_R {
LPHFE_R::new(((self.bits >> 7) & 1) != 0)
}
///Bit 8 - Frame BTA acknowledge enable
#[inline(always)]
pub fn fbtaae(&self) -> FBTAAE_R {
FBTAAE_R::new(((self.bits >> 8) & 1) != 0)
}
///Bit 9 - Low-power command enable
#[inline(always)]
pub fn lpce(&self) -> LPCE_R {
LPCE_R::new(((self.bits >> 9) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("VMCCR")
.field("vmt", &self.vmt())
.field("lpvsae", &self.lpvsae())
.field("lpvbpe", &self.lpvbpe())
.field("lpvfpe", &self.lpvfpe())
.field("lpvae", &self.lpvae())
.field("lphbpe", &self.lphbpe())
.field("lphfe", &self.lphfe())
.field("fbtaae", &self.fbtaae())
.field("lpce", &self.lpce())
.finish()
}
}
/**DSI Host video mode current configuration register
You can [`read`](crate::Reg::read) this register and get [`vmccr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct VMCCRrs;
impl crate::RegisterSpec for VMCCRrs {
type Ux = u32;
}
///`read()` method returns [`vmccr::R`](R) reader structure
impl crate::Readable for VMCCRrs {}
///`reset()` method sets VMCCR to value 0
impl crate::Resettable for VMCCRrs {}