stm32f1_staging/stm32f103/can/
ffa1r.rs1pub type R = crate::R<FFA1Rrs>;
3pub type W = crate::W<FFA1Rrs>;
5pub type FFA_R = crate::BitReader;
7pub type FFA_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[inline(always)]
14 pub fn ffa(&self, n: u8) -> FFA_R {
15 #[allow(clippy::no_effect)] [(); 14][n as usize];
16 FFA_R::new(((self.bits >> n) & 1) != 0)
17 }
18 #[inline(always)]
21 pub fn ffa_iter(&self) -> impl Iterator<Item = FFA_R> + '_ {
22 (0..14).map(move |n| FFA_R::new(((self.bits >> n) & 1) != 0))
23 }
24 #[inline(always)]
26 pub fn ffa0(&self) -> FFA_R {
27 FFA_R::new((self.bits & 1) != 0)
28 }
29 #[inline(always)]
31 pub fn ffa1(&self) -> FFA_R {
32 FFA_R::new(((self.bits >> 1) & 1) != 0)
33 }
34 #[inline(always)]
36 pub fn ffa2(&self) -> FFA_R {
37 FFA_R::new(((self.bits >> 2) & 1) != 0)
38 }
39 #[inline(always)]
41 pub fn ffa3(&self) -> FFA_R {
42 FFA_R::new(((self.bits >> 3) & 1) != 0)
43 }
44 #[inline(always)]
46 pub fn ffa4(&self) -> FFA_R {
47 FFA_R::new(((self.bits >> 4) & 1) != 0)
48 }
49 #[inline(always)]
51 pub fn ffa5(&self) -> FFA_R {
52 FFA_R::new(((self.bits >> 5) & 1) != 0)
53 }
54 #[inline(always)]
56 pub fn ffa6(&self) -> FFA_R {
57 FFA_R::new(((self.bits >> 6) & 1) != 0)
58 }
59 #[inline(always)]
61 pub fn ffa7(&self) -> FFA_R {
62 FFA_R::new(((self.bits >> 7) & 1) != 0)
63 }
64 #[inline(always)]
66 pub fn ffa8(&self) -> FFA_R {
67 FFA_R::new(((self.bits >> 8) & 1) != 0)
68 }
69 #[inline(always)]
71 pub fn ffa9(&self) -> FFA_R {
72 FFA_R::new(((self.bits >> 9) & 1) != 0)
73 }
74 #[inline(always)]
76 pub fn ffa10(&self) -> FFA_R {
77 FFA_R::new(((self.bits >> 10) & 1) != 0)
78 }
79 #[inline(always)]
81 pub fn ffa11(&self) -> FFA_R {
82 FFA_R::new(((self.bits >> 11) & 1) != 0)
83 }
84 #[inline(always)]
86 pub fn ffa12(&self) -> FFA_R {
87 FFA_R::new(((self.bits >> 12) & 1) != 0)
88 }
89 #[inline(always)]
91 pub fn ffa13(&self) -> FFA_R {
92 FFA_R::new(((self.bits >> 13) & 1) != 0)
93 }
94}
95impl core::fmt::Debug for R {
96 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
97 f.debug_struct("FFA1R")
98 .field("ffa0", &self.ffa0())
99 .field("ffa1", &self.ffa1())
100 .field("ffa2", &self.ffa2())
101 .field("ffa3", &self.ffa3())
102 .field("ffa4", &self.ffa4())
103 .field("ffa5", &self.ffa5())
104 .field("ffa6", &self.ffa6())
105 .field("ffa7", &self.ffa7())
106 .field("ffa8", &self.ffa8())
107 .field("ffa9", &self.ffa9())
108 .field("ffa10", &self.ffa10())
109 .field("ffa11", &self.ffa11())
110 .field("ffa12", &self.ffa12())
111 .field("ffa13", &self.ffa13())
112 .finish()
113 }
114}
115impl W {
116 #[inline(always)]
120 pub fn ffa(&mut self, n: u8) -> FFA_W<FFA1Rrs> {
121 #[allow(clippy::no_effect)] [(); 14][n as usize];
122 FFA_W::new(self, n)
123 }
124 #[inline(always)]
126 pub fn ffa0(&mut self) -> FFA_W<FFA1Rrs> {
127 FFA_W::new(self, 0)
128 }
129 #[inline(always)]
131 pub fn ffa1(&mut self) -> FFA_W<FFA1Rrs> {
132 FFA_W::new(self, 1)
133 }
134 #[inline(always)]
136 pub fn ffa2(&mut self) -> FFA_W<FFA1Rrs> {
137 FFA_W::new(self, 2)
138 }
139 #[inline(always)]
141 pub fn ffa3(&mut self) -> FFA_W<FFA1Rrs> {
142 FFA_W::new(self, 3)
143 }
144 #[inline(always)]
146 pub fn ffa4(&mut self) -> FFA_W<FFA1Rrs> {
147 FFA_W::new(self, 4)
148 }
149 #[inline(always)]
151 pub fn ffa5(&mut self) -> FFA_W<FFA1Rrs> {
152 FFA_W::new(self, 5)
153 }
154 #[inline(always)]
156 pub fn ffa6(&mut self) -> FFA_W<FFA1Rrs> {
157 FFA_W::new(self, 6)
158 }
159 #[inline(always)]
161 pub fn ffa7(&mut self) -> FFA_W<FFA1Rrs> {
162 FFA_W::new(self, 7)
163 }
164 #[inline(always)]
166 pub fn ffa8(&mut self) -> FFA_W<FFA1Rrs> {
167 FFA_W::new(self, 8)
168 }
169 #[inline(always)]
171 pub fn ffa9(&mut self) -> FFA_W<FFA1Rrs> {
172 FFA_W::new(self, 9)
173 }
174 #[inline(always)]
176 pub fn ffa10(&mut self) -> FFA_W<FFA1Rrs> {
177 FFA_W::new(self, 10)
178 }
179 #[inline(always)]
181 pub fn ffa11(&mut self) -> FFA_W<FFA1Rrs> {
182 FFA_W::new(self, 11)
183 }
184 #[inline(always)]
186 pub fn ffa12(&mut self) -> FFA_W<FFA1Rrs> {
187 FFA_W::new(self, 12)
188 }
189 #[inline(always)]
191 pub fn ffa13(&mut self) -> FFA_W<FFA1Rrs> {
192 FFA_W::new(self, 13)
193 }
194}
195pub struct FFA1Rrs;
201impl crate::RegisterSpec for FFA1Rrs {
202 type Ux = u32;
203}
204impl crate::Readable for FFA1Rrs {}
206impl crate::Writable for FFA1Rrs {
208 type Safety = crate::Unsafe;
209}
210impl crate::Resettable for FFA1Rrs {}