stm32u5/stm32u585/octospi1/
fcr.rs1pub type W = crate::W<FCRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum CTEF {
9 Clear = 1,
11}
12impl From<CTEF> for bool {
13 #[inline(always)]
14 fn from(variant: CTEF) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type CTEF_W<'a, REG> = crate::BitWriter<'a, REG, CTEF>;
20impl<'a, REG> CTEF_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(CTEF::Clear)
28 }
29}
30#[cfg_attr(feature = "defmt", derive(defmt::Format))]
34#[derive(Clone, Copy, Debug, PartialEq, Eq)]
35pub enum CTCF {
36 Clear = 1,
38}
39impl From<CTCF> for bool {
40 #[inline(always)]
41 fn from(variant: CTCF) -> Self {
42 variant as u8 != 0
43 }
44}
45pub type CTCF_W<'a, REG> = crate::BitWriter<'a, REG, CTCF>;
47impl<'a, REG> CTCF_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(CTCF::Clear)
55 }
56}
57#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum CSMF {
63 Clear = 1,
65}
66impl From<CSMF> for bool {
67 #[inline(always)]
68 fn from(variant: CSMF) -> Self {
69 variant as u8 != 0
70 }
71}
72pub type CSMF_W<'a, REG> = crate::BitWriter<'a, REG, CSMF>;
74impl<'a, REG> CSMF_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(CSMF::Clear)
82 }
83}
84#[cfg_attr(feature = "defmt", derive(defmt::Format))]
88#[derive(Clone, Copy, Debug, PartialEq, Eq)]
89pub enum CTOF {
90 Clear = 1,
92}
93impl From<CTOF> for bool {
94 #[inline(always)]
95 fn from(variant: CTOF) -> Self {
96 variant as u8 != 0
97 }
98}
99pub type CTOF_W<'a, REG> = crate::BitWriter<'a, REG, CTOF>;
101impl<'a, REG> CTOF_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(CTOF::Clear)
109 }
110}
111impl core::fmt::Debug for crate::generic::Reg<FCRrs> {
112 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
113 write!(f, "(not readable)")
114 }
115}
116impl W {
117 #[inline(always)]
119 pub fn ctef(&mut self) -> CTEF_W<FCRrs> {
120 CTEF_W::new(self, 0)
121 }
122 #[inline(always)]
124 pub fn ctcf(&mut self) -> CTCF_W<FCRrs> {
125 CTCF_W::new(self, 1)
126 }
127 #[inline(always)]
129 pub fn csmf(&mut self) -> CSMF_W<FCRrs> {
130 CSMF_W::new(self, 3)
131 }
132 #[inline(always)]
134 pub fn ctof(&mut self) -> CTOF_W<FCRrs> {
135 CTOF_W::new(self, 4)
136 }
137}
138pub struct FCRrs;
144impl crate::RegisterSpec for FCRrs {
145 type Ux = u32;
146}
147impl crate::Writable for FCRrs {
149 type Safety = crate::Unsafe;
150}
151impl crate::Resettable for FCRrs {}