stm32mp1/stm32mp157/tim15/
ccmr1_output.rs1pub type R = crate::R<CCMR1_OUTPUTrs>;
3pub type W = crate::W<CCMR1_OUTPUTrs>;
5pub type CC1S_R = crate::FieldReader;
7pub type CC1S_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
9pub type OC1FE_R = crate::BitReader;
11pub type OC1FE_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type OC1PE_R = crate::BitReader;
15pub type OC1PE_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type OC1M_R = crate::FieldReader;
19pub type OC1M_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
21pub type OC1CE_R = crate::BitReader;
23pub type OC1CE_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type CC2S_R = crate::FieldReader;
27pub type CC2S_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
29pub type OC2FE_R = crate::BitReader;
31pub type OC2FE_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type OC2PE_R = crate::BitReader;
35pub type OC2PE_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type OC2M_R = crate::FieldReader;
39pub type OC2M_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
41pub type OC2CE_R = crate::BitReader;
43pub type OC2CE_W<'a, REG> = crate::BitWriter<'a, REG>;
45pub type OC1M_3_R = crate::BitReader;
47pub type OC1M_3_W<'a, REG> = crate::BitWriter<'a, REG>;
49pub type OC2M_3_R = crate::BitReader;
51pub type OC2M_3_W<'a, REG> = crate::BitWriter<'a, REG>;
53impl R {
54 #[inline(always)]
56 pub fn cc1s(&self) -> CC1S_R {
57 CC1S_R::new((self.bits & 3) as u8)
58 }
59 #[inline(always)]
61 pub fn oc1fe(&self) -> OC1FE_R {
62 OC1FE_R::new(((self.bits >> 2) & 1) != 0)
63 }
64 #[inline(always)]
66 pub fn oc1pe(&self) -> OC1PE_R {
67 OC1PE_R::new(((self.bits >> 3) & 1) != 0)
68 }
69 #[inline(always)]
71 pub fn oc1m(&self) -> OC1M_R {
72 OC1M_R::new(((self.bits >> 4) & 7) as u8)
73 }
74 #[inline(always)]
76 pub fn oc1ce(&self) -> OC1CE_R {
77 OC1CE_R::new(((self.bits >> 7) & 1) != 0)
78 }
79 #[inline(always)]
81 pub fn cc2s(&self) -> CC2S_R {
82 CC2S_R::new(((self.bits >> 8) & 3) as u8)
83 }
84 #[inline(always)]
86 pub fn oc2fe(&self) -> OC2FE_R {
87 OC2FE_R::new(((self.bits >> 10) & 1) != 0)
88 }
89 #[inline(always)]
91 pub fn oc2pe(&self) -> OC2PE_R {
92 OC2PE_R::new(((self.bits >> 11) & 1) != 0)
93 }
94 #[inline(always)]
96 pub fn oc2m(&self) -> OC2M_R {
97 OC2M_R::new(((self.bits >> 12) & 7) as u8)
98 }
99 #[inline(always)]
101 pub fn oc2ce(&self) -> OC2CE_R {
102 OC2CE_R::new(((self.bits >> 15) & 1) != 0)
103 }
104 #[inline(always)]
106 pub fn oc1m_3(&self) -> OC1M_3_R {
107 OC1M_3_R::new(((self.bits >> 16) & 1) != 0)
108 }
109 #[inline(always)]
111 pub fn oc2m_3(&self) -> OC2M_3_R {
112 OC2M_3_R::new(((self.bits >> 24) & 1) != 0)
113 }
114}
115impl core::fmt::Debug for R {
116 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
117 f.debug_struct("CCMR1_Output")
118 .field("oc2m_3", &self.oc2m_3())
119 .field("oc1m_3", &self.oc1m_3())
120 .field("oc2ce", &self.oc2ce())
121 .field("oc2m", &self.oc2m())
122 .field("oc2pe", &self.oc2pe())
123 .field("oc2fe", &self.oc2fe())
124 .field("cc2s", &self.cc2s())
125 .field("oc1ce", &self.oc1ce())
126 .field("oc1m", &self.oc1m())
127 .field("oc1pe", &self.oc1pe())
128 .field("oc1fe", &self.oc1fe())
129 .field("cc1s", &self.cc1s())
130 .finish()
131 }
132}
133impl W {
134 #[inline(always)]
136 pub fn cc1s(&mut self) -> CC1S_W<CCMR1_OUTPUTrs> {
137 CC1S_W::new(self, 0)
138 }
139 #[inline(always)]
141 pub fn oc1fe(&mut self) -> OC1FE_W<CCMR1_OUTPUTrs> {
142 OC1FE_W::new(self, 2)
143 }
144 #[inline(always)]
146 pub fn oc1pe(&mut self) -> OC1PE_W<CCMR1_OUTPUTrs> {
147 OC1PE_W::new(self, 3)
148 }
149 #[inline(always)]
151 pub fn oc1m(&mut self) -> OC1M_W<CCMR1_OUTPUTrs> {
152 OC1M_W::new(self, 4)
153 }
154 #[inline(always)]
156 pub fn oc1ce(&mut self) -> OC1CE_W<CCMR1_OUTPUTrs> {
157 OC1CE_W::new(self, 7)
158 }
159 #[inline(always)]
161 pub fn cc2s(&mut self) -> CC2S_W<CCMR1_OUTPUTrs> {
162 CC2S_W::new(self, 8)
163 }
164 #[inline(always)]
166 pub fn oc2fe(&mut self) -> OC2FE_W<CCMR1_OUTPUTrs> {
167 OC2FE_W::new(self, 10)
168 }
169 #[inline(always)]
171 pub fn oc2pe(&mut self) -> OC2PE_W<CCMR1_OUTPUTrs> {
172 OC2PE_W::new(self, 11)
173 }
174 #[inline(always)]
176 pub fn oc2m(&mut self) -> OC2M_W<CCMR1_OUTPUTrs> {
177 OC2M_W::new(self, 12)
178 }
179 #[inline(always)]
181 pub fn oc2ce(&mut self) -> OC2CE_W<CCMR1_OUTPUTrs> {
182 OC2CE_W::new(self, 15)
183 }
184 #[inline(always)]
186 pub fn oc1m_3(&mut self) -> OC1M_3_W<CCMR1_OUTPUTrs> {
187 OC1M_3_W::new(self, 16)
188 }
189 #[inline(always)]
191 pub fn oc2m_3(&mut self) -> OC2M_3_W<CCMR1_OUTPUTrs> {
192 OC2M_3_W::new(self, 24)
193 }
194}
195pub struct CCMR1_OUTPUTrs;
201impl crate::RegisterSpec for CCMR1_OUTPUTrs {
202 type Ux = u32;
203}
204impl crate::Readable for CCMR1_OUTPUTrs {}
206impl crate::Writable for CCMR1_OUTPUTrs {
208 type Safety = crate::Unsafe;
209}
210impl crate::Resettable for CCMR1_OUTPUTrs {}