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
///Register `PCONFR` reader
pub type R = crate::R<PCONFRrs>;
///Register `PCONFR` writer
pub type W = crate::W<PCONFRrs>;
///Field `NL` reader - NL
pub type NL_R = crate::FieldReader;
///Field `NL` writer - NL
pub type NL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
///Field `SW_TIME` reader - SW_TIME
pub type SW_TIME_R = crate::FieldReader;
///Field `SW_TIME` writer - SW_TIME
pub type SW_TIME_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
///Bits 0:1 - NL
#[inline(always)]
pub fn nl(&self) -> NL_R {
NL_R::new((self.bits & 3) as u8)
}
///Bits 8:15 - SW_TIME
#[inline(always)]
pub fn sw_time(&self) -> SW_TIME_R {
SW_TIME_R::new(((self.bits >> 8) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PCONFR")
.field("nl", &self.nl())
.field("sw_time", &self.sw_time())
.finish()
}
}
impl W {
///Bits 0:1 - NL
#[inline(always)]
pub fn nl(&mut self) -> NL_W<PCONFRrs> {
NL_W::new(self, 0)
}
///Bits 8:15 - SW_TIME
#[inline(always)]
pub fn sw_time(&mut self) -> SW_TIME_W<PCONFRrs> {
SW_TIME_W::new(self, 8)
}
}
/**DSI Host PHY configuration register
You can [`read`](crate::Reg::read) this register and get [`pconfr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pconfr::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#DSI:PCONFR)*/
pub struct PCONFRrs;
impl crate::RegisterSpec for PCONFRrs {
type Ux = u32;
}
///`read()` method returns [`pconfr::R`](R) reader structure
impl crate::Readable for PCONFRrs {}
///`write(|w| ..)` method takes [`pconfr::W`](W) writer structure
impl crate::Writable for PCONFRrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets PCONFR to value 0x01
impl crate::Resettable for PCONFRrs {
const RESET_VALUE: u32 = 0x01;
}