stm32l4/stm32l4x1/sai1/ch/
clrfr.rs1pub type W = crate::W<CLRFRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum COVRUDRW {
9 Clear = 1,
11}
12impl From<COVRUDRW> for bool {
13 #[inline(always)]
14 fn from(variant: COVRUDRW) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type COVRUDR_W<'a, REG> = crate::BitWriter<'a, REG, COVRUDRW>;
20impl<'a, REG> COVRUDR_W<'a, REG>
21where
22 REG: crate::Writable + crate::RegisterSpec,
23{
24 #[inline(always)]
26 pub fn clear(self) -> &'a mut crate::W<REG> {
27 self.variant(COVRUDRW::Clear)
28 }
29}
30#[cfg_attr(feature = "defmt", derive(defmt::Format))]
34#[derive(Clone, Copy, Debug, PartialEq, Eq)]
35pub enum CMUTEDETW {
36 Clear = 1,
38}
39impl From<CMUTEDETW> for bool {
40 #[inline(always)]
41 fn from(variant: CMUTEDETW) -> Self {
42 variant as u8 != 0
43 }
44}
45pub type CMUTEDET_W<'a, REG> = crate::BitWriter<'a, REG, CMUTEDETW>;
47impl<'a, REG> CMUTEDET_W<'a, REG>
48where
49 REG: crate::Writable + crate::RegisterSpec,
50{
51 #[inline(always)]
53 pub fn clear(self) -> &'a mut crate::W<REG> {
54 self.variant(CMUTEDETW::Clear)
55 }
56}
57#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum CWCKCFGW {
63 Clear = 1,
65}
66impl From<CWCKCFGW> for bool {
67 #[inline(always)]
68 fn from(variant: CWCKCFGW) -> Self {
69 variant as u8 != 0
70 }
71}
72pub type CWCKCFG_W<'a, REG> = crate::BitWriter<'a, REG, CWCKCFGW>;
74impl<'a, REG> CWCKCFG_W<'a, REG>
75where
76 REG: crate::Writable + crate::RegisterSpec,
77{
78 #[inline(always)]
80 pub fn clear(self) -> &'a mut crate::W<REG> {
81 self.variant(CWCKCFGW::Clear)
82 }
83}
84#[cfg_attr(feature = "defmt", derive(defmt::Format))]
88#[derive(Clone, Copy, Debug, PartialEq, Eq)]
89pub enum CCNRDYW {
90 Clear = 1,
92}
93impl From<CCNRDYW> for bool {
94 #[inline(always)]
95 fn from(variant: CCNRDYW) -> Self {
96 variant as u8 != 0
97 }
98}
99pub type CCNRDY_W<'a, REG> = crate::BitWriter<'a, REG, CCNRDYW>;
101impl<'a, REG> CCNRDY_W<'a, REG>
102where
103 REG: crate::Writable + crate::RegisterSpec,
104{
105 #[inline(always)]
107 pub fn clear(self) -> &'a mut crate::W<REG> {
108 self.variant(CCNRDYW::Clear)
109 }
110}
111#[cfg_attr(feature = "defmt", derive(defmt::Format))]
115#[derive(Clone, Copy, Debug, PartialEq, Eq)]
116pub enum CAFSDETW {
117 Clear = 1,
119}
120impl From<CAFSDETW> for bool {
121 #[inline(always)]
122 fn from(variant: CAFSDETW) -> Self {
123 variant as u8 != 0
124 }
125}
126pub type CAFSDET_W<'a, REG> = crate::BitWriter<'a, REG, CAFSDETW>;
128impl<'a, REG> CAFSDET_W<'a, REG>
129where
130 REG: crate::Writable + crate::RegisterSpec,
131{
132 #[inline(always)]
134 pub fn clear(self) -> &'a mut crate::W<REG> {
135 self.variant(CAFSDETW::Clear)
136 }
137}
138#[cfg_attr(feature = "defmt", derive(defmt::Format))]
142#[derive(Clone, Copy, Debug, PartialEq, Eq)]
143pub enum CLFSDETW {
144 Clear = 1,
146}
147impl From<CLFSDETW> for bool {
148 #[inline(always)]
149 fn from(variant: CLFSDETW) -> Self {
150 variant as u8 != 0
151 }
152}
153pub type CLFSDET_W<'a, REG> = crate::BitWriter<'a, REG, CLFSDETW>;
155impl<'a, REG> CLFSDET_W<'a, REG>
156where
157 REG: crate::Writable + crate::RegisterSpec,
158{
159 #[inline(always)]
161 pub fn clear(self) -> &'a mut crate::W<REG> {
162 self.variant(CLFSDETW::Clear)
163 }
164}
165impl core::fmt::Debug for crate::generic::Reg<CLRFRrs> {
166 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
167 write!(f, "(not readable)")
168 }
169}
170impl W {
171 #[inline(always)]
173 pub fn covrudr(&mut self) -> COVRUDR_W<CLRFRrs> {
174 COVRUDR_W::new(self, 0)
175 }
176 #[inline(always)]
178 pub fn cmutedet(&mut self) -> CMUTEDET_W<CLRFRrs> {
179 CMUTEDET_W::new(self, 1)
180 }
181 #[inline(always)]
183 pub fn cwckcfg(&mut self) -> CWCKCFG_W<CLRFRrs> {
184 CWCKCFG_W::new(self, 2)
185 }
186 #[inline(always)]
188 pub fn ccnrdy(&mut self) -> CCNRDY_W<CLRFRrs> {
189 CCNRDY_W::new(self, 4)
190 }
191 #[inline(always)]
193 pub fn cafsdet(&mut self) -> CAFSDET_W<CLRFRrs> {
194 CAFSDET_W::new(self, 5)
195 }
196 #[inline(always)]
198 pub fn clfsdet(&mut self) -> CLFSDET_W<CLRFRrs> {
199 CLFSDET_W::new(self, 6)
200 }
201}
202pub struct CLRFRrs;
206impl crate::RegisterSpec for CLRFRrs {
207 type Ux = u32;
208}
209impl crate::Writable for CLRFRrs {
211 type Safety = crate::Unsafe;
212}
213impl crate::Resettable for CLRFRrs {}