1#[doc = r" Value read from the register"]
2pub struct R {
3 bits: u32,
4}
5impl super::ISR {
6 #[doc = r" Reads the contents of the register"]
7 #[inline]
8 pub fn read(&self) -> R {
9 R {
10 bits: self.register.get(),
11 }
12 }
13}
14#[doc = r" Value of the field"]
15pub struct FECAPR {
16 bits: u16,
17}
18impl FECAPR {
19 #[doc = r" Value of the field as raw bits"]
20 #[inline]
21 pub fn bits(&self) -> u16 {
22 self.bits
23 }
24}
25#[doc = r" Value of the field"]
26pub struct FEDIRR {
27 bits: bool,
28}
29impl FEDIRR {
30 #[doc = r" Value of the field as raw bits"]
31 #[inline]
32 pub fn bit(&self) -> bool {
33 self.bits
34 }
35 #[doc = r" Returns `true` if the bit is clear (0)"]
36 #[inline]
37 pub fn bit_is_clear(&self) -> bool {
38 !self.bit()
39 }
40 #[doc = r" Returns `true` if the bit is set (1)"]
41 #[inline]
42 pub fn bit_is_set(&self) -> bool {
43 self.bit()
44 }
45}
46#[doc = r" Value of the field"]
47pub struct TRIMOVFR {
48 bits: bool,
49}
50impl TRIMOVFR {
51 #[doc = r" Value of the field as raw bits"]
52 #[inline]
53 pub fn bit(&self) -> bool {
54 self.bits
55 }
56 #[doc = r" Returns `true` if the bit is clear (0)"]
57 #[inline]
58 pub fn bit_is_clear(&self) -> bool {
59 !self.bit()
60 }
61 #[doc = r" Returns `true` if the bit is set (1)"]
62 #[inline]
63 pub fn bit_is_set(&self) -> bool {
64 self.bit()
65 }
66}
67#[doc = r" Value of the field"]
68pub struct SYNCMISSR {
69 bits: bool,
70}
71impl SYNCMISSR {
72 #[doc = r" Value of the field as raw bits"]
73 #[inline]
74 pub fn bit(&self) -> bool {
75 self.bits
76 }
77 #[doc = r" Returns `true` if the bit is clear (0)"]
78 #[inline]
79 pub fn bit_is_clear(&self) -> bool {
80 !self.bit()
81 }
82 #[doc = r" Returns `true` if the bit is set (1)"]
83 #[inline]
84 pub fn bit_is_set(&self) -> bool {
85 self.bit()
86 }
87}
88#[doc = r" Value of the field"]
89pub struct SYNCERRR {
90 bits: bool,
91}
92impl SYNCERRR {
93 #[doc = r" Value of the field as raw bits"]
94 #[inline]
95 pub fn bit(&self) -> bool {
96 self.bits
97 }
98 #[doc = r" Returns `true` if the bit is clear (0)"]
99 #[inline]
100 pub fn bit_is_clear(&self) -> bool {
101 !self.bit()
102 }
103 #[doc = r" Returns `true` if the bit is set (1)"]
104 #[inline]
105 pub fn bit_is_set(&self) -> bool {
106 self.bit()
107 }
108}
109#[doc = r" Value of the field"]
110pub struct ESYNCFR {
111 bits: bool,
112}
113impl ESYNCFR {
114 #[doc = r" Value of the field as raw bits"]
115 #[inline]
116 pub fn bit(&self) -> bool {
117 self.bits
118 }
119 #[doc = r" Returns `true` if the bit is clear (0)"]
120 #[inline]
121 pub fn bit_is_clear(&self) -> bool {
122 !self.bit()
123 }
124 #[doc = r" Returns `true` if the bit is set (1)"]
125 #[inline]
126 pub fn bit_is_set(&self) -> bool {
127 self.bit()
128 }
129}
130#[doc = r" Value of the field"]
131pub struct ERRFR {
132 bits: bool,
133}
134impl ERRFR {
135 #[doc = r" Value of the field as raw bits"]
136 #[inline]
137 pub fn bit(&self) -> bool {
138 self.bits
139 }
140 #[doc = r" Returns `true` if the bit is clear (0)"]
141 #[inline]
142 pub fn bit_is_clear(&self) -> bool {
143 !self.bit()
144 }
145 #[doc = r" Returns `true` if the bit is set (1)"]
146 #[inline]
147 pub fn bit_is_set(&self) -> bool {
148 self.bit()
149 }
150}
151#[doc = r" Value of the field"]
152pub struct SYNCWARNFR {
153 bits: bool,
154}
155impl SYNCWARNFR {
156 #[doc = r" Value of the field as raw bits"]
157 #[inline]
158 pub fn bit(&self) -> bool {
159 self.bits
160 }
161 #[doc = r" Returns `true` if the bit is clear (0)"]
162 #[inline]
163 pub fn bit_is_clear(&self) -> bool {
164 !self.bit()
165 }
166 #[doc = r" Returns `true` if the bit is set (1)"]
167 #[inline]
168 pub fn bit_is_set(&self) -> bool {
169 self.bit()
170 }
171}
172#[doc = r" Value of the field"]
173pub struct SYNCOKFR {
174 bits: bool,
175}
176impl SYNCOKFR {
177 #[doc = r" Value of the field as raw bits"]
178 #[inline]
179 pub fn bit(&self) -> bool {
180 self.bits
181 }
182 #[doc = r" Returns `true` if the bit is clear (0)"]
183 #[inline]
184 pub fn bit_is_clear(&self) -> bool {
185 !self.bit()
186 }
187 #[doc = r" Returns `true` if the bit is set (1)"]
188 #[inline]
189 pub fn bit_is_set(&self) -> bool {
190 self.bit()
191 }
192}
193impl R {
194 #[doc = r" Value of the register as raw bits"]
195 #[inline]
196 pub fn bits(&self) -> u32 {
197 self.bits
198 }
199 #[doc = "Bits 16:31 - Frequency error capture"]
200 #[inline]
201 pub fn fecap(&self) -> FECAPR {
202 let bits = {
203 const MASK: u16 = 65535;
204 const OFFSET: u8 = 16;
205 ((self.bits >> OFFSET) & MASK as u32) as u16
206 };
207 FECAPR { bits }
208 }
209 #[doc = "Bit 15 - Frequency error direction"]
210 #[inline]
211 pub fn fedir(&self) -> FEDIRR {
212 let bits = {
213 const MASK: bool = true;
214 const OFFSET: u8 = 15;
215 ((self.bits >> OFFSET) & MASK as u32) != 0
216 };
217 FEDIRR { bits }
218 }
219 #[doc = "Bit 10 - Trimming overflow or underflow"]
220 #[inline]
221 pub fn trimovf(&self) -> TRIMOVFR {
222 let bits = {
223 const MASK: bool = true;
224 const OFFSET: u8 = 10;
225 ((self.bits >> OFFSET) & MASK as u32) != 0
226 };
227 TRIMOVFR { bits }
228 }
229 #[doc = "Bit 9 - SYNC missed"]
230 #[inline]
231 pub fn syncmiss(&self) -> SYNCMISSR {
232 let bits = {
233 const MASK: bool = true;
234 const OFFSET: u8 = 9;
235 ((self.bits >> OFFSET) & MASK as u32) != 0
236 };
237 SYNCMISSR { bits }
238 }
239 #[doc = "Bit 8 - SYNC error"]
240 #[inline]
241 pub fn syncerr(&self) -> SYNCERRR {
242 let bits = {
243 const MASK: bool = true;
244 const OFFSET: u8 = 8;
245 ((self.bits >> OFFSET) & MASK as u32) != 0
246 };
247 SYNCERRR { bits }
248 }
249 #[doc = "Bit 3 - Expected SYNC flag"]
250 #[inline]
251 pub fn esyncf(&self) -> ESYNCFR {
252 let bits = {
253 const MASK: bool = true;
254 const OFFSET: u8 = 3;
255 ((self.bits >> OFFSET) & MASK as u32) != 0
256 };
257 ESYNCFR { bits }
258 }
259 #[doc = "Bit 2 - Error flag"]
260 #[inline]
261 pub fn errf(&self) -> ERRFR {
262 let bits = {
263 const MASK: bool = true;
264 const OFFSET: u8 = 2;
265 ((self.bits >> OFFSET) & MASK as u32) != 0
266 };
267 ERRFR { bits }
268 }
269 #[doc = "Bit 1 - SYNC warning flag"]
270 #[inline]
271 pub fn syncwarnf(&self) -> SYNCWARNFR {
272 let bits = {
273 const MASK: bool = true;
274 const OFFSET: u8 = 1;
275 ((self.bits >> OFFSET) & MASK as u32) != 0
276 };
277 SYNCWARNFR { bits }
278 }
279 #[doc = "Bit 0 - SYNC event OK flag"]
280 #[inline]
281 pub fn syncokf(&self) -> SYNCOKFR {
282 let bits = {
283 const MASK: bool = true;
284 const OFFSET: u8 = 0;
285 ((self.bits >> OFFSET) & MASK as u32) != 0
286 };
287 SYNCOKFR { bits }
288 }
289}