stm32mp1/stm32mp157/ddrctrl/
zqctl0.rs1pub type R = crate::R<ZQCTL0rs>;
3pub type W = crate::W<ZQCTL0rs>;
5pub type T_ZQ_SHORT_NOP_R = crate::FieldReader<u16>;
7pub type T_ZQ_SHORT_NOP_W<'a, REG> = crate::FieldWriter<'a, REG, 10, u16>;
9pub type T_ZQ_LONG_NOP_R = crate::FieldReader<u16>;
11pub type T_ZQ_LONG_NOP_W<'a, REG> = crate::FieldWriter<'a, REG, 11, u16>;
13pub type ZQ_RESISTOR_SHARED_R = crate::BitReader;
15pub type ZQ_RESISTOR_SHARED_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type DIS_SRX_ZQCL_R = crate::BitReader;
19pub type DIS_SRX_ZQCL_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type DIS_AUTO_ZQ_R = crate::BitReader;
23pub type DIS_AUTO_ZQ_W<'a, REG> = crate::BitWriter<'a, REG>;
25impl R {
26 #[inline(always)]
28 pub fn t_zq_short_nop(&self) -> T_ZQ_SHORT_NOP_R {
29 T_ZQ_SHORT_NOP_R::new((self.bits & 0x03ff) as u16)
30 }
31 #[inline(always)]
33 pub fn t_zq_long_nop(&self) -> T_ZQ_LONG_NOP_R {
34 T_ZQ_LONG_NOP_R::new(((self.bits >> 16) & 0x07ff) as u16)
35 }
36 #[inline(always)]
38 pub fn zq_resistor_shared(&self) -> ZQ_RESISTOR_SHARED_R {
39 ZQ_RESISTOR_SHARED_R::new(((self.bits >> 29) & 1) != 0)
40 }
41 #[inline(always)]
43 pub fn dis_srx_zqcl(&self) -> DIS_SRX_ZQCL_R {
44 DIS_SRX_ZQCL_R::new(((self.bits >> 30) & 1) != 0)
45 }
46 #[inline(always)]
48 pub fn dis_auto_zq(&self) -> DIS_AUTO_ZQ_R {
49 DIS_AUTO_ZQ_R::new(((self.bits >> 31) & 1) != 0)
50 }
51}
52impl core::fmt::Debug for R {
53 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
54 f.debug_struct("ZQCTL0")
55 .field("t_zq_short_nop", &self.t_zq_short_nop())
56 .field("t_zq_long_nop", &self.t_zq_long_nop())
57 .field("zq_resistor_shared", &self.zq_resistor_shared())
58 .field("dis_srx_zqcl", &self.dis_srx_zqcl())
59 .field("dis_auto_zq", &self.dis_auto_zq())
60 .finish()
61 }
62}
63impl W {
64 #[inline(always)]
66 pub fn t_zq_short_nop(&mut self) -> T_ZQ_SHORT_NOP_W<ZQCTL0rs> {
67 T_ZQ_SHORT_NOP_W::new(self, 0)
68 }
69 #[inline(always)]
71 pub fn t_zq_long_nop(&mut self) -> T_ZQ_LONG_NOP_W<ZQCTL0rs> {
72 T_ZQ_LONG_NOP_W::new(self, 16)
73 }
74 #[inline(always)]
76 pub fn zq_resistor_shared(&mut self) -> ZQ_RESISTOR_SHARED_W<ZQCTL0rs> {
77 ZQ_RESISTOR_SHARED_W::new(self, 29)
78 }
79 #[inline(always)]
81 pub fn dis_srx_zqcl(&mut self) -> DIS_SRX_ZQCL_W<ZQCTL0rs> {
82 DIS_SRX_ZQCL_W::new(self, 30)
83 }
84 #[inline(always)]
86 pub fn dis_auto_zq(&mut self) -> DIS_AUTO_ZQ_W<ZQCTL0rs> {
87 DIS_AUTO_ZQ_W::new(self, 31)
88 }
89}
90pub struct ZQCTL0rs;
96impl crate::RegisterSpec for ZQCTL0rs {
97 type Ux = u32;
98}
99impl crate::Readable for ZQCTL0rs {}
101impl crate::Writable for ZQCTL0rs {
103 type Safety = crate::Unsafe;
104}
105impl crate::Resettable for ZQCTL0rs {
107 const RESET_VALUE: u32 = 0x0200_0040;
108}