atsamv71q21/gmac/
gmac_ier.rs1#[doc = "Register `GMAC_IER` writer"]
2pub struct W(crate::W<GMAC_IER_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<GMAC_IER_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<GMAC_IER_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<GMAC_IER_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `MFS` writer - Management Frame Sent"]
23pub struct MFS_W<'a> {
24 w: &'a mut W,
25}
26impl<'a> MFS_W<'a> {
27 #[doc = r"Sets the field bit"]
28 #[inline(always)]
29 pub fn set_bit(self) -> &'a mut W {
30 self.bit(true)
31 }
32 #[doc = r"Clears the field bit"]
33 #[inline(always)]
34 pub fn clear_bit(self) -> &'a mut W {
35 self.bit(false)
36 }
37 #[doc = r"Writes raw bits to the field"]
38 #[inline(always)]
39 pub fn bit(self, value: bool) -> &'a mut W {
40 self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
41 self.w
42 }
43}
44#[doc = "Field `RCOMP` writer - Receive Complete"]
45pub struct RCOMP_W<'a> {
46 w: &'a mut W,
47}
48impl<'a> RCOMP_W<'a> {
49 #[doc = r"Sets the field bit"]
50 #[inline(always)]
51 pub fn set_bit(self) -> &'a mut W {
52 self.bit(true)
53 }
54 #[doc = r"Clears the field bit"]
55 #[inline(always)]
56 pub fn clear_bit(self) -> &'a mut W {
57 self.bit(false)
58 }
59 #[doc = r"Writes raw bits to the field"]
60 #[inline(always)]
61 pub fn bit(self, value: bool) -> &'a mut W {
62 self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
63 self.w
64 }
65}
66#[doc = "Field `RXUBR` writer - RX Used Bit Read"]
67pub struct RXUBR_W<'a> {
68 w: &'a mut W,
69}
70impl<'a> RXUBR_W<'a> {
71 #[doc = r"Sets the field bit"]
72 #[inline(always)]
73 pub fn set_bit(self) -> &'a mut W {
74 self.bit(true)
75 }
76 #[doc = r"Clears the field bit"]
77 #[inline(always)]
78 pub fn clear_bit(self) -> &'a mut W {
79 self.bit(false)
80 }
81 #[doc = r"Writes raw bits to the field"]
82 #[inline(always)]
83 pub fn bit(self, value: bool) -> &'a mut W {
84 self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
85 self.w
86 }
87}
88#[doc = "Field `TXUBR` writer - TX Used Bit Read"]
89pub struct TXUBR_W<'a> {
90 w: &'a mut W,
91}
92impl<'a> TXUBR_W<'a> {
93 #[doc = r"Sets the field bit"]
94 #[inline(always)]
95 pub fn set_bit(self) -> &'a mut W {
96 self.bit(true)
97 }
98 #[doc = r"Clears the field bit"]
99 #[inline(always)]
100 pub fn clear_bit(self) -> &'a mut W {
101 self.bit(false)
102 }
103 #[doc = r"Writes raw bits to the field"]
104 #[inline(always)]
105 pub fn bit(self, value: bool) -> &'a mut W {
106 self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
107 self.w
108 }
109}
110#[doc = "Field `TUR` writer - Transmit Underrun"]
111pub struct TUR_W<'a> {
112 w: &'a mut W,
113}
114impl<'a> TUR_W<'a> {
115 #[doc = r"Sets the field bit"]
116 #[inline(always)]
117 pub fn set_bit(self) -> &'a mut W {
118 self.bit(true)
119 }
120 #[doc = r"Clears the field bit"]
121 #[inline(always)]
122 pub fn clear_bit(self) -> &'a mut W {
123 self.bit(false)
124 }
125 #[doc = r"Writes raw bits to the field"]
126 #[inline(always)]
127 pub fn bit(self, value: bool) -> &'a mut W {
128 self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
129 self.w
130 }
131}
132#[doc = "Field `RLEX` writer - Retry Limit Exceeded or Late Collision"]
133pub struct RLEX_W<'a> {
134 w: &'a mut W,
135}
136impl<'a> RLEX_W<'a> {
137 #[doc = r"Sets the field bit"]
138 #[inline(always)]
139 pub fn set_bit(self) -> &'a mut W {
140 self.bit(true)
141 }
142 #[doc = r"Clears the field bit"]
143 #[inline(always)]
144 pub fn clear_bit(self) -> &'a mut W {
145 self.bit(false)
146 }
147 #[doc = r"Writes raw bits to the field"]
148 #[inline(always)]
149 pub fn bit(self, value: bool) -> &'a mut W {
150 self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
151 self.w
152 }
153}
154#[doc = "Field `TFC` writer - Transmit Frame Corruption Due to AHB Error"]
155pub struct TFC_W<'a> {
156 w: &'a mut W,
157}
158impl<'a> TFC_W<'a> {
159 #[doc = r"Sets the field bit"]
160 #[inline(always)]
161 pub fn set_bit(self) -> &'a mut W {
162 self.bit(true)
163 }
164 #[doc = r"Clears the field bit"]
165 #[inline(always)]
166 pub fn clear_bit(self) -> &'a mut W {
167 self.bit(false)
168 }
169 #[doc = r"Writes raw bits to the field"]
170 #[inline(always)]
171 pub fn bit(self, value: bool) -> &'a mut W {
172 self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
173 self.w
174 }
175}
176#[doc = "Field `TCOMP` writer - Transmit Complete"]
177pub struct TCOMP_W<'a> {
178 w: &'a mut W,
179}
180impl<'a> TCOMP_W<'a> {
181 #[doc = r"Sets the field bit"]
182 #[inline(always)]
183 pub fn set_bit(self) -> &'a mut W {
184 self.bit(true)
185 }
186 #[doc = r"Clears the field bit"]
187 #[inline(always)]
188 pub fn clear_bit(self) -> &'a mut W {
189 self.bit(false)
190 }
191 #[doc = r"Writes raw bits to the field"]
192 #[inline(always)]
193 pub fn bit(self, value: bool) -> &'a mut W {
194 self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
195 self.w
196 }
197}
198#[doc = "Field `ROVR` writer - Receive Overrun"]
199pub struct ROVR_W<'a> {
200 w: &'a mut W,
201}
202impl<'a> ROVR_W<'a> {
203 #[doc = r"Sets the field bit"]
204 #[inline(always)]
205 pub fn set_bit(self) -> &'a mut W {
206 self.bit(true)
207 }
208 #[doc = r"Clears the field bit"]
209 #[inline(always)]
210 pub fn clear_bit(self) -> &'a mut W {
211 self.bit(false)
212 }
213 #[doc = r"Writes raw bits to the field"]
214 #[inline(always)]
215 pub fn bit(self, value: bool) -> &'a mut W {
216 self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
217 self.w
218 }
219}
220#[doc = "Field `HRESP` writer - HRESP Not OK"]
221pub struct HRESP_W<'a> {
222 w: &'a mut W,
223}
224impl<'a> HRESP_W<'a> {
225 #[doc = r"Sets the field bit"]
226 #[inline(always)]
227 pub fn set_bit(self) -> &'a mut W {
228 self.bit(true)
229 }
230 #[doc = r"Clears the field bit"]
231 #[inline(always)]
232 pub fn clear_bit(self) -> &'a mut W {
233 self.bit(false)
234 }
235 #[doc = r"Writes raw bits to the field"]
236 #[inline(always)]
237 pub fn bit(self, value: bool) -> &'a mut W {
238 self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
239 self.w
240 }
241}
242#[doc = "Field `PFNZ` writer - Pause Frame with Non-zero Pause Quantum Received"]
243pub struct PFNZ_W<'a> {
244 w: &'a mut W,
245}
246impl<'a> PFNZ_W<'a> {
247 #[doc = r"Sets the field bit"]
248 #[inline(always)]
249 pub fn set_bit(self) -> &'a mut W {
250 self.bit(true)
251 }
252 #[doc = r"Clears the field bit"]
253 #[inline(always)]
254 pub fn clear_bit(self) -> &'a mut W {
255 self.bit(false)
256 }
257 #[doc = r"Writes raw bits to the field"]
258 #[inline(always)]
259 pub fn bit(self, value: bool) -> &'a mut W {
260 self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
261 self.w
262 }
263}
264#[doc = "Field `PTZ` writer - Pause Time Zero"]
265pub struct PTZ_W<'a> {
266 w: &'a mut W,
267}
268impl<'a> PTZ_W<'a> {
269 #[doc = r"Sets the field bit"]
270 #[inline(always)]
271 pub fn set_bit(self) -> &'a mut W {
272 self.bit(true)
273 }
274 #[doc = r"Clears the field bit"]
275 #[inline(always)]
276 pub fn clear_bit(self) -> &'a mut W {
277 self.bit(false)
278 }
279 #[doc = r"Writes raw bits to the field"]
280 #[inline(always)]
281 pub fn bit(self, value: bool) -> &'a mut W {
282 self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
283 self.w
284 }
285}
286#[doc = "Field `PFTR` writer - Pause Frame Transmitted"]
287pub struct PFTR_W<'a> {
288 w: &'a mut W,
289}
290impl<'a> PFTR_W<'a> {
291 #[doc = r"Sets the field bit"]
292 #[inline(always)]
293 pub fn set_bit(self) -> &'a mut W {
294 self.bit(true)
295 }
296 #[doc = r"Clears the field bit"]
297 #[inline(always)]
298 pub fn clear_bit(self) -> &'a mut W {
299 self.bit(false)
300 }
301 #[doc = r"Writes raw bits to the field"]
302 #[inline(always)]
303 pub fn bit(self, value: bool) -> &'a mut W {
304 self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
305 self.w
306 }
307}
308#[doc = "Field `EXINT` writer - External Interrupt"]
309pub struct EXINT_W<'a> {
310 w: &'a mut W,
311}
312impl<'a> EXINT_W<'a> {
313 #[doc = r"Sets the field bit"]
314 #[inline(always)]
315 pub fn set_bit(self) -> &'a mut W {
316 self.bit(true)
317 }
318 #[doc = r"Clears the field bit"]
319 #[inline(always)]
320 pub fn clear_bit(self) -> &'a mut W {
321 self.bit(false)
322 }
323 #[doc = r"Writes raw bits to the field"]
324 #[inline(always)]
325 pub fn bit(self, value: bool) -> &'a mut W {
326 self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
327 self.w
328 }
329}
330#[doc = "Field `DRQFR` writer - PTP Delay Request Frame Received"]
331pub struct DRQFR_W<'a> {
332 w: &'a mut W,
333}
334impl<'a> DRQFR_W<'a> {
335 #[doc = r"Sets the field bit"]
336 #[inline(always)]
337 pub fn set_bit(self) -> &'a mut W {
338 self.bit(true)
339 }
340 #[doc = r"Clears the field bit"]
341 #[inline(always)]
342 pub fn clear_bit(self) -> &'a mut W {
343 self.bit(false)
344 }
345 #[doc = r"Writes raw bits to the field"]
346 #[inline(always)]
347 pub fn bit(self, value: bool) -> &'a mut W {
348 self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
349 self.w
350 }
351}
352#[doc = "Field `SFR` writer - PTP Sync Frame Received"]
353pub struct SFR_W<'a> {
354 w: &'a mut W,
355}
356impl<'a> SFR_W<'a> {
357 #[doc = r"Sets the field bit"]
358 #[inline(always)]
359 pub fn set_bit(self) -> &'a mut W {
360 self.bit(true)
361 }
362 #[doc = r"Clears the field bit"]
363 #[inline(always)]
364 pub fn clear_bit(self) -> &'a mut W {
365 self.bit(false)
366 }
367 #[doc = r"Writes raw bits to the field"]
368 #[inline(always)]
369 pub fn bit(self, value: bool) -> &'a mut W {
370 self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
371 self.w
372 }
373}
374#[doc = "Field `DRQFT` writer - PTP Delay Request Frame Transmitted"]
375pub struct DRQFT_W<'a> {
376 w: &'a mut W,
377}
378impl<'a> DRQFT_W<'a> {
379 #[doc = r"Sets the field bit"]
380 #[inline(always)]
381 pub fn set_bit(self) -> &'a mut W {
382 self.bit(true)
383 }
384 #[doc = r"Clears the field bit"]
385 #[inline(always)]
386 pub fn clear_bit(self) -> &'a mut W {
387 self.bit(false)
388 }
389 #[doc = r"Writes raw bits to the field"]
390 #[inline(always)]
391 pub fn bit(self, value: bool) -> &'a mut W {
392 self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
393 self.w
394 }
395}
396#[doc = "Field `SFT` writer - PTP Sync Frame Transmitted"]
397pub struct SFT_W<'a> {
398 w: &'a mut W,
399}
400impl<'a> SFT_W<'a> {
401 #[doc = r"Sets the field bit"]
402 #[inline(always)]
403 pub fn set_bit(self) -> &'a mut W {
404 self.bit(true)
405 }
406 #[doc = r"Clears the field bit"]
407 #[inline(always)]
408 pub fn clear_bit(self) -> &'a mut W {
409 self.bit(false)
410 }
411 #[doc = r"Writes raw bits to the field"]
412 #[inline(always)]
413 pub fn bit(self, value: bool) -> &'a mut W {
414 self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
415 self.w
416 }
417}
418#[doc = "Field `PDRQFR` writer - PDelay Request Frame Received"]
419pub struct PDRQFR_W<'a> {
420 w: &'a mut W,
421}
422impl<'a> PDRQFR_W<'a> {
423 #[doc = r"Sets the field bit"]
424 #[inline(always)]
425 pub fn set_bit(self) -> &'a mut W {
426 self.bit(true)
427 }
428 #[doc = r"Clears the field bit"]
429 #[inline(always)]
430 pub fn clear_bit(self) -> &'a mut W {
431 self.bit(false)
432 }
433 #[doc = r"Writes raw bits to the field"]
434 #[inline(always)]
435 pub fn bit(self, value: bool) -> &'a mut W {
436 self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
437 self.w
438 }
439}
440#[doc = "Field `PDRSFR` writer - PDelay Response Frame Received"]
441pub struct PDRSFR_W<'a> {
442 w: &'a mut W,
443}
444impl<'a> PDRSFR_W<'a> {
445 #[doc = r"Sets the field bit"]
446 #[inline(always)]
447 pub fn set_bit(self) -> &'a mut W {
448 self.bit(true)
449 }
450 #[doc = r"Clears the field bit"]
451 #[inline(always)]
452 pub fn clear_bit(self) -> &'a mut W {
453 self.bit(false)
454 }
455 #[doc = r"Writes raw bits to the field"]
456 #[inline(always)]
457 pub fn bit(self, value: bool) -> &'a mut W {
458 self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
459 self.w
460 }
461}
462#[doc = "Field `PDRQFT` writer - PDelay Request Frame Transmitted"]
463pub struct PDRQFT_W<'a> {
464 w: &'a mut W,
465}
466impl<'a> PDRQFT_W<'a> {
467 #[doc = r"Sets the field bit"]
468 #[inline(always)]
469 pub fn set_bit(self) -> &'a mut W {
470 self.bit(true)
471 }
472 #[doc = r"Clears the field bit"]
473 #[inline(always)]
474 pub fn clear_bit(self) -> &'a mut W {
475 self.bit(false)
476 }
477 #[doc = r"Writes raw bits to the field"]
478 #[inline(always)]
479 pub fn bit(self, value: bool) -> &'a mut W {
480 self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24);
481 self.w
482 }
483}
484#[doc = "Field `PDRSFT` writer - PDelay Response Frame Transmitted"]
485pub struct PDRSFT_W<'a> {
486 w: &'a mut W,
487}
488impl<'a> PDRSFT_W<'a> {
489 #[doc = r"Sets the field bit"]
490 #[inline(always)]
491 pub fn set_bit(self) -> &'a mut W {
492 self.bit(true)
493 }
494 #[doc = r"Clears the field bit"]
495 #[inline(always)]
496 pub fn clear_bit(self) -> &'a mut W {
497 self.bit(false)
498 }
499 #[doc = r"Writes raw bits to the field"]
500 #[inline(always)]
501 pub fn bit(self, value: bool) -> &'a mut W {
502 self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25);
503 self.w
504 }
505}
506#[doc = "Field `SRI` writer - TSU Seconds Register Increment"]
507pub struct SRI_W<'a> {
508 w: &'a mut W,
509}
510impl<'a> SRI_W<'a> {
511 #[doc = r"Sets the field bit"]
512 #[inline(always)]
513 pub fn set_bit(self) -> &'a mut W {
514 self.bit(true)
515 }
516 #[doc = r"Clears the field bit"]
517 #[inline(always)]
518 pub fn clear_bit(self) -> &'a mut W {
519 self.bit(false)
520 }
521 #[doc = r"Writes raw bits to the field"]
522 #[inline(always)]
523 pub fn bit(self, value: bool) -> &'a mut W {
524 self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26);
525 self.w
526 }
527}
528#[doc = "Field `RXLPISBC` writer - Enable RX LPI Indication"]
529pub struct RXLPISBC_W<'a> {
530 w: &'a mut W,
531}
532impl<'a> RXLPISBC_W<'a> {
533 #[doc = r"Sets the field bit"]
534 #[inline(always)]
535 pub fn set_bit(self) -> &'a mut W {
536 self.bit(true)
537 }
538 #[doc = r"Clears the field bit"]
539 #[inline(always)]
540 pub fn clear_bit(self) -> &'a mut W {
541 self.bit(false)
542 }
543 #[doc = r"Writes raw bits to the field"]
544 #[inline(always)]
545 pub fn bit(self, value: bool) -> &'a mut W {
546 self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27);
547 self.w
548 }
549}
550#[doc = "Field `WOL` writer - Wake On LAN"]
551pub struct WOL_W<'a> {
552 w: &'a mut W,
553}
554impl<'a> WOL_W<'a> {
555 #[doc = r"Sets the field bit"]
556 #[inline(always)]
557 pub fn set_bit(self) -> &'a mut W {
558 self.bit(true)
559 }
560 #[doc = r"Clears the field bit"]
561 #[inline(always)]
562 pub fn clear_bit(self) -> &'a mut W {
563 self.bit(false)
564 }
565 #[doc = r"Writes raw bits to the field"]
566 #[inline(always)]
567 pub fn bit(self, value: bool) -> &'a mut W {
568 self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28);
569 self.w
570 }
571}
572#[doc = "Field `TSUTIMCOMP` writer - TSU Timer Comparison"]
573pub struct TSUTIMCOMP_W<'a> {
574 w: &'a mut W,
575}
576impl<'a> TSUTIMCOMP_W<'a> {
577 #[doc = r"Sets the field bit"]
578 #[inline(always)]
579 pub fn set_bit(self) -> &'a mut W {
580 self.bit(true)
581 }
582 #[doc = r"Clears the field bit"]
583 #[inline(always)]
584 pub fn clear_bit(self) -> &'a mut W {
585 self.bit(false)
586 }
587 #[doc = r"Writes raw bits to the field"]
588 #[inline(always)]
589 pub fn bit(self, value: bool) -> &'a mut W {
590 self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29);
591 self.w
592 }
593}
594impl W {
595 #[doc = "Bit 0 - Management Frame Sent"]
596 #[inline(always)]
597 pub fn mfs(&mut self) -> MFS_W {
598 MFS_W { w: self }
599 }
600 #[doc = "Bit 1 - Receive Complete"]
601 #[inline(always)]
602 pub fn rcomp(&mut self) -> RCOMP_W {
603 RCOMP_W { w: self }
604 }
605 #[doc = "Bit 2 - RX Used Bit Read"]
606 #[inline(always)]
607 pub fn rxubr(&mut self) -> RXUBR_W {
608 RXUBR_W { w: self }
609 }
610 #[doc = "Bit 3 - TX Used Bit Read"]
611 #[inline(always)]
612 pub fn txubr(&mut self) -> TXUBR_W {
613 TXUBR_W { w: self }
614 }
615 #[doc = "Bit 4 - Transmit Underrun"]
616 #[inline(always)]
617 pub fn tur(&mut self) -> TUR_W {
618 TUR_W { w: self }
619 }
620 #[doc = "Bit 5 - Retry Limit Exceeded or Late Collision"]
621 #[inline(always)]
622 pub fn rlex(&mut self) -> RLEX_W {
623 RLEX_W { w: self }
624 }
625 #[doc = "Bit 6 - Transmit Frame Corruption Due to AHB Error"]
626 #[inline(always)]
627 pub fn tfc(&mut self) -> TFC_W {
628 TFC_W { w: self }
629 }
630 #[doc = "Bit 7 - Transmit Complete"]
631 #[inline(always)]
632 pub fn tcomp(&mut self) -> TCOMP_W {
633 TCOMP_W { w: self }
634 }
635 #[doc = "Bit 10 - Receive Overrun"]
636 #[inline(always)]
637 pub fn rovr(&mut self) -> ROVR_W {
638 ROVR_W { w: self }
639 }
640 #[doc = "Bit 11 - HRESP Not OK"]
641 #[inline(always)]
642 pub fn hresp(&mut self) -> HRESP_W {
643 HRESP_W { w: self }
644 }
645 #[doc = "Bit 12 - Pause Frame with Non-zero Pause Quantum Received"]
646 #[inline(always)]
647 pub fn pfnz(&mut self) -> PFNZ_W {
648 PFNZ_W { w: self }
649 }
650 #[doc = "Bit 13 - Pause Time Zero"]
651 #[inline(always)]
652 pub fn ptz(&mut self) -> PTZ_W {
653 PTZ_W { w: self }
654 }
655 #[doc = "Bit 14 - Pause Frame Transmitted"]
656 #[inline(always)]
657 pub fn pftr(&mut self) -> PFTR_W {
658 PFTR_W { w: self }
659 }
660 #[doc = "Bit 15 - External Interrupt"]
661 #[inline(always)]
662 pub fn exint(&mut self) -> EXINT_W {
663 EXINT_W { w: self }
664 }
665 #[doc = "Bit 18 - PTP Delay Request Frame Received"]
666 #[inline(always)]
667 pub fn drqfr(&mut self) -> DRQFR_W {
668 DRQFR_W { w: self }
669 }
670 #[doc = "Bit 19 - PTP Sync Frame Received"]
671 #[inline(always)]
672 pub fn sfr(&mut self) -> SFR_W {
673 SFR_W { w: self }
674 }
675 #[doc = "Bit 20 - PTP Delay Request Frame Transmitted"]
676 #[inline(always)]
677 pub fn drqft(&mut self) -> DRQFT_W {
678 DRQFT_W { w: self }
679 }
680 #[doc = "Bit 21 - PTP Sync Frame Transmitted"]
681 #[inline(always)]
682 pub fn sft(&mut self) -> SFT_W {
683 SFT_W { w: self }
684 }
685 #[doc = "Bit 22 - PDelay Request Frame Received"]
686 #[inline(always)]
687 pub fn pdrqfr(&mut self) -> PDRQFR_W {
688 PDRQFR_W { w: self }
689 }
690 #[doc = "Bit 23 - PDelay Response Frame Received"]
691 #[inline(always)]
692 pub fn pdrsfr(&mut self) -> PDRSFR_W {
693 PDRSFR_W { w: self }
694 }
695 #[doc = "Bit 24 - PDelay Request Frame Transmitted"]
696 #[inline(always)]
697 pub fn pdrqft(&mut self) -> PDRQFT_W {
698 PDRQFT_W { w: self }
699 }
700 #[doc = "Bit 25 - PDelay Response Frame Transmitted"]
701 #[inline(always)]
702 pub fn pdrsft(&mut self) -> PDRSFT_W {
703 PDRSFT_W { w: self }
704 }
705 #[doc = "Bit 26 - TSU Seconds Register Increment"]
706 #[inline(always)]
707 pub fn sri(&mut self) -> SRI_W {
708 SRI_W { w: self }
709 }
710 #[doc = "Bit 27 - Enable RX LPI Indication"]
711 #[inline(always)]
712 pub fn rxlpisbc(&mut self) -> RXLPISBC_W {
713 RXLPISBC_W { w: self }
714 }
715 #[doc = "Bit 28 - Wake On LAN"]
716 #[inline(always)]
717 pub fn wol(&mut self) -> WOL_W {
718 WOL_W { w: self }
719 }
720 #[doc = "Bit 29 - TSU Timer Comparison"]
721 #[inline(always)]
722 pub fn tsutimcomp(&mut self) -> TSUTIMCOMP_W {
723 TSUTIMCOMP_W { w: self }
724 }
725 #[doc = "Writes raw bits to the register."]
726 #[inline(always)]
727 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
728 self.0.bits(bits);
729 self
730 }
731}
732#[doc = "Interrupt Enable Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gmac_ier](index.html) module"]
733pub struct GMAC_IER_SPEC;
734impl crate::RegisterSpec for GMAC_IER_SPEC {
735 type Ux = u32;
736}
737#[doc = "`write(|w| ..)` method takes [gmac_ier::W](W) writer structure"]
738impl crate::Writable for GMAC_IER_SPEC {
739 type Writer = W;
740}
741#[doc = "`reset()` method sets GMAC_IER to value 0"]
742impl crate::Resettable for GMAC_IER_SPEC {
743 #[inline(always)]
744 fn reset_value() -> Self::Ux {
745 0
746 }
747}