stm32f7/stm32f733/syscfg/
pmc.rs1pub type R = crate::R<PMCrs>;
3pub type W = crate::W<PMCrs>;
5pub type I2C1_FMP_R = crate::BitReader;
7pub type I2C1_FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type I2C2_FMP_R = crate::BitReader;
11pub type I2C2_FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type I2C3_FMP_R = crate::BitReader;
15pub type I2C3_FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type PB6_FMP_R = crate::BitReader;
19pub type PB6_FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type PB7_FMP_R = crate::BitReader;
23pub type PB7_FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type PB8_FMP_R = crate::BitReader;
27pub type PB8_FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type PB9_FMP_R = crate::BitReader;
31pub type PB9_FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type ADC1DC2_R = crate::BitReader;
35pub type ADC1DC2_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type ADC2DC2_R = crate::BitReader;
39pub type ADC2DC2_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type ADC3DC2_R = crate::BitReader;
43pub type ADC3DC2_W<'a, REG> = crate::BitWriter<'a, REG>;
45impl R {
46 #[inline(always)]
48 pub fn i2c1_fmp(&self) -> I2C1_FMP_R {
49 I2C1_FMP_R::new((self.bits & 1) != 0)
50 }
51 #[inline(always)]
53 pub fn i2c2_fmp(&self) -> I2C2_FMP_R {
54 I2C2_FMP_R::new(((self.bits >> 1) & 1) != 0)
55 }
56 #[inline(always)]
58 pub fn i2c3_fmp(&self) -> I2C3_FMP_R {
59 I2C3_FMP_R::new(((self.bits >> 2) & 1) != 0)
60 }
61 #[inline(always)]
63 pub fn pb6_fmp(&self) -> PB6_FMP_R {
64 PB6_FMP_R::new(((self.bits >> 4) & 1) != 0)
65 }
66 #[inline(always)]
68 pub fn pb7_fmp(&self) -> PB7_FMP_R {
69 PB7_FMP_R::new(((self.bits >> 5) & 1) != 0)
70 }
71 #[inline(always)]
73 pub fn pb8_fmp(&self) -> PB8_FMP_R {
74 PB8_FMP_R::new(((self.bits >> 6) & 1) != 0)
75 }
76 #[inline(always)]
78 pub fn pb9_fmp(&self) -> PB9_FMP_R {
79 PB9_FMP_R::new(((self.bits >> 7) & 1) != 0)
80 }
81 #[inline(always)]
83 pub fn adc1dc2(&self) -> ADC1DC2_R {
84 ADC1DC2_R::new(((self.bits >> 16) & 1) != 0)
85 }
86 #[inline(always)]
88 pub fn adc2dc2(&self) -> ADC2DC2_R {
89 ADC2DC2_R::new(((self.bits >> 17) & 1) != 0)
90 }
91 #[inline(always)]
93 pub fn adc3dc2(&self) -> ADC3DC2_R {
94 ADC3DC2_R::new(((self.bits >> 18) & 1) != 0)
95 }
96}
97impl core::fmt::Debug for R {
98 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
99 f.debug_struct("PMC")
100 .field("pb7_fmp", &self.pb7_fmp())
101 .field("pb8_fmp", &self.pb8_fmp())
102 .field("pb9_fmp", &self.pb9_fmp())
103 .field("adc1dc2", &self.adc1dc2())
104 .field("pb6_fmp", &self.pb6_fmp())
105 .field("i2c3_fmp", &self.i2c3_fmp())
106 .field("i2c2_fmp", &self.i2c2_fmp())
107 .field("i2c1_fmp", &self.i2c1_fmp())
108 .field("adc3dc2", &self.adc3dc2())
109 .field("adc2dc2", &self.adc2dc2())
110 .finish()
111 }
112}
113impl W {
114 #[inline(always)]
116 pub fn i2c1_fmp(&mut self) -> I2C1_FMP_W<PMCrs> {
117 I2C1_FMP_W::new(self, 0)
118 }
119 #[inline(always)]
121 pub fn i2c2_fmp(&mut self) -> I2C2_FMP_W<PMCrs> {
122 I2C2_FMP_W::new(self, 1)
123 }
124 #[inline(always)]
126 pub fn i2c3_fmp(&mut self) -> I2C3_FMP_W<PMCrs> {
127 I2C3_FMP_W::new(self, 2)
128 }
129 #[inline(always)]
131 pub fn pb6_fmp(&mut self) -> PB6_FMP_W<PMCrs> {
132 PB6_FMP_W::new(self, 4)
133 }
134 #[inline(always)]
136 pub fn pb7_fmp(&mut self) -> PB7_FMP_W<PMCrs> {
137 PB7_FMP_W::new(self, 5)
138 }
139 #[inline(always)]
141 pub fn pb8_fmp(&mut self) -> PB8_FMP_W<PMCrs> {
142 PB8_FMP_W::new(self, 6)
143 }
144 #[inline(always)]
146 pub fn pb9_fmp(&mut self) -> PB9_FMP_W<PMCrs> {
147 PB9_FMP_W::new(self, 7)
148 }
149 #[inline(always)]
151 pub fn adc1dc2(&mut self) -> ADC1DC2_W<PMCrs> {
152 ADC1DC2_W::new(self, 16)
153 }
154 #[inline(always)]
156 pub fn adc2dc2(&mut self) -> ADC2DC2_W<PMCrs> {
157 ADC2DC2_W::new(self, 17)
158 }
159 #[inline(always)]
161 pub fn adc3dc2(&mut self) -> ADC3DC2_W<PMCrs> {
162 ADC3DC2_W::new(self, 18)
163 }
164}
165pub struct PMCrs;
171impl crate::RegisterSpec for PMCrs {
172 type Ux = u32;
173}
174impl crate::Readable for PMCrs {}
176impl crate::Writable for PMCrs {
178 type Safety = crate::Unsafe;
179}
180impl crate::Resettable for PMCrs {}