ra6e1/edmac0/
eesr.rs

1#[doc = "Register `EESR` reader"]
2pub struct R(crate::R<EESR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<EESR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<EESR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<EESR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `EESR` writer"]
17pub struct W(crate::W<EESR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<EESR_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<EESR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<EESR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `CERF` reader - CRC Error Flag"]
38pub type CERF_R = crate::BitReader<CERF_A>;
39#[doc = "CRC Error Flag\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum CERF_A {
42    #[doc = "0: CRC error not detected"]
43    _0 = 0,
44    #[doc = "1: CRC error detected."]
45    _1 = 1,
46}
47impl From<CERF_A> for bool {
48    #[inline(always)]
49    fn from(variant: CERF_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl CERF_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> CERF_A {
57        match self.bits {
58            false => CERF_A::_0,
59            true => CERF_A::_1,
60        }
61    }
62    #[doc = "Checks if the value of the field is `_0`"]
63    #[inline(always)]
64    pub fn is_0(&self) -> bool {
65        *self == CERF_A::_0
66    }
67    #[doc = "Checks if the value of the field is `_1`"]
68    #[inline(always)]
69    pub fn is_1(&self) -> bool {
70        *self == CERF_A::_1
71    }
72}
73#[doc = "Field `CERF` writer - CRC Error Flag"]
74pub type CERF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, CERF_A, O>;
75impl<'a, const O: u8> CERF_W<'a, O> {
76    #[doc = "CRC error not detected"]
77    #[inline(always)]
78    pub fn _0(self) -> &'a mut W {
79        self.variant(CERF_A::_0)
80    }
81    #[doc = "CRC error detected."]
82    #[inline(always)]
83    pub fn _1(self) -> &'a mut W {
84        self.variant(CERF_A::_1)
85    }
86}
87#[doc = "Field `PRE` reader - PHY-LSI Receive Error Flag"]
88pub type PRE_R = crate::BitReader<PRE_A>;
89#[doc = "PHY-LSI Receive Error Flag\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum PRE_A {
92    #[doc = "0: PHY-LSI receive error not detected"]
93    _0 = 0,
94    #[doc = "1: PHY-LSI receive error detected."]
95    _1 = 1,
96}
97impl From<PRE_A> for bool {
98    #[inline(always)]
99    fn from(variant: PRE_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl PRE_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> PRE_A {
107        match self.bits {
108            false => PRE_A::_0,
109            true => PRE_A::_1,
110        }
111    }
112    #[doc = "Checks if the value of the field is `_0`"]
113    #[inline(always)]
114    pub fn is_0(&self) -> bool {
115        *self == PRE_A::_0
116    }
117    #[doc = "Checks if the value of the field is `_1`"]
118    #[inline(always)]
119    pub fn is_1(&self) -> bool {
120        *self == PRE_A::_1
121    }
122}
123#[doc = "Field `PRE` writer - PHY-LSI Receive Error Flag"]
124pub type PRE_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, PRE_A, O>;
125impl<'a, const O: u8> PRE_W<'a, O> {
126    #[doc = "PHY-LSI receive error not detected"]
127    #[inline(always)]
128    pub fn _0(self) -> &'a mut W {
129        self.variant(PRE_A::_0)
130    }
131    #[doc = "PHY-LSI receive error detected."]
132    #[inline(always)]
133    pub fn _1(self) -> &'a mut W {
134        self.variant(PRE_A::_1)
135    }
136}
137#[doc = "Field `RTSF` reader - Frame-Too-Short Error Flag"]
138pub type RTSF_R = crate::BitReader<RTSF_A>;
139#[doc = "Frame-Too-Short Error Flag\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum RTSF_A {
142    #[doc = "0: Frame-too-short error not detected"]
143    _0 = 0,
144    #[doc = "1: Frame-too-short error detected."]
145    _1 = 1,
146}
147impl From<RTSF_A> for bool {
148    #[inline(always)]
149    fn from(variant: RTSF_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl RTSF_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> RTSF_A {
157        match self.bits {
158            false => RTSF_A::_0,
159            true => RTSF_A::_1,
160        }
161    }
162    #[doc = "Checks if the value of the field is `_0`"]
163    #[inline(always)]
164    pub fn is_0(&self) -> bool {
165        *self == RTSF_A::_0
166    }
167    #[doc = "Checks if the value of the field is `_1`"]
168    #[inline(always)]
169    pub fn is_1(&self) -> bool {
170        *self == RTSF_A::_1
171    }
172}
173#[doc = "Field `RTSF` writer - Frame-Too-Short Error Flag"]
174pub type RTSF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RTSF_A, O>;
175impl<'a, const O: u8> RTSF_W<'a, O> {
176    #[doc = "Frame-too-short error not detected"]
177    #[inline(always)]
178    pub fn _0(self) -> &'a mut W {
179        self.variant(RTSF_A::_0)
180    }
181    #[doc = "Frame-too-short error detected."]
182    #[inline(always)]
183    pub fn _1(self) -> &'a mut W {
184        self.variant(RTSF_A::_1)
185    }
186}
187#[doc = "Field `RTLF` reader - Frame-Too-Long Error Flag"]
188pub type RTLF_R = crate::BitReader<RTLF_A>;
189#[doc = "Frame-Too-Long Error Flag\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum RTLF_A {
192    #[doc = "0: Frame-too-long error not detected"]
193    _0 = 0,
194    #[doc = "1: Frame-too-long error detected."]
195    _1 = 1,
196}
197impl From<RTLF_A> for bool {
198    #[inline(always)]
199    fn from(variant: RTLF_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl RTLF_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> RTLF_A {
207        match self.bits {
208            false => RTLF_A::_0,
209            true => RTLF_A::_1,
210        }
211    }
212    #[doc = "Checks if the value of the field is `_0`"]
213    #[inline(always)]
214    pub fn is_0(&self) -> bool {
215        *self == RTLF_A::_0
216    }
217    #[doc = "Checks if the value of the field is `_1`"]
218    #[inline(always)]
219    pub fn is_1(&self) -> bool {
220        *self == RTLF_A::_1
221    }
222}
223#[doc = "Field `RTLF` writer - Frame-Too-Long Error Flag"]
224pub type RTLF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RTLF_A, O>;
225impl<'a, const O: u8> RTLF_W<'a, O> {
226    #[doc = "Frame-too-long error not detected"]
227    #[inline(always)]
228    pub fn _0(self) -> &'a mut W {
229        self.variant(RTLF_A::_0)
230    }
231    #[doc = "Frame-too-long error detected."]
232    #[inline(always)]
233    pub fn _1(self) -> &'a mut W {
234        self.variant(RTLF_A::_1)
235    }
236}
237#[doc = "Field `RRF` reader - Alignment Error Flag"]
238pub type RRF_R = crate::BitReader<RRF_A>;
239#[doc = "Alignment Error Flag\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum RRF_A {
242    #[doc = "0: Alignment error not detected"]
243    _0 = 0,
244    #[doc = "1: Alignment error detected."]
245    _1 = 1,
246}
247impl From<RRF_A> for bool {
248    #[inline(always)]
249    fn from(variant: RRF_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl RRF_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> RRF_A {
257        match self.bits {
258            false => RRF_A::_0,
259            true => RRF_A::_1,
260        }
261    }
262    #[doc = "Checks if the value of the field is `_0`"]
263    #[inline(always)]
264    pub fn is_0(&self) -> bool {
265        *self == RRF_A::_0
266    }
267    #[doc = "Checks if the value of the field is `_1`"]
268    #[inline(always)]
269    pub fn is_1(&self) -> bool {
270        *self == RRF_A::_1
271    }
272}
273#[doc = "Field `RRF` writer - Alignment Error Flag"]
274pub type RRF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RRF_A, O>;
275impl<'a, const O: u8> RRF_W<'a, O> {
276    #[doc = "Alignment error not detected"]
277    #[inline(always)]
278    pub fn _0(self) -> &'a mut W {
279        self.variant(RRF_A::_0)
280    }
281    #[doc = "Alignment error detected."]
282    #[inline(always)]
283    pub fn _1(self) -> &'a mut W {
284        self.variant(RRF_A::_1)
285    }
286}
287#[doc = "Field `RMAF` reader - Multicast Address Frame Receive Flag"]
288pub type RMAF_R = crate::BitReader<RMAF_A>;
289#[doc = "Multicast Address Frame Receive Flag\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum RMAF_A {
292    #[doc = "0: Multicast address frame not received"]
293    _0 = 0,
294    #[doc = "1: Multicast address frame received."]
295    _1 = 1,
296}
297impl From<RMAF_A> for bool {
298    #[inline(always)]
299    fn from(variant: RMAF_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl RMAF_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> RMAF_A {
307        match self.bits {
308            false => RMAF_A::_0,
309            true => RMAF_A::_1,
310        }
311    }
312    #[doc = "Checks if the value of the field is `_0`"]
313    #[inline(always)]
314    pub fn is_0(&self) -> bool {
315        *self == RMAF_A::_0
316    }
317    #[doc = "Checks if the value of the field is `_1`"]
318    #[inline(always)]
319    pub fn is_1(&self) -> bool {
320        *self == RMAF_A::_1
321    }
322}
323#[doc = "Field `RMAF` writer - Multicast Address Frame Receive Flag"]
324pub type RMAF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RMAF_A, O>;
325impl<'a, const O: u8> RMAF_W<'a, O> {
326    #[doc = "Multicast address frame not received"]
327    #[inline(always)]
328    pub fn _0(self) -> &'a mut W {
329        self.variant(RMAF_A::_0)
330    }
331    #[doc = "Multicast address frame received."]
332    #[inline(always)]
333    pub fn _1(self) -> &'a mut W {
334        self.variant(RMAF_A::_1)
335    }
336}
337#[doc = "Field `TRO` reader - Transmit Retry Over Flag"]
338pub type TRO_R = crate::BitReader<TRO_A>;
339#[doc = "Transmit Retry Over Flag\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum TRO_A {
342    #[doc = "0: Transmit retry-over condition not detected"]
343    _0 = 0,
344    #[doc = "1: Transmit retry-over condition detected."]
345    _1 = 1,
346}
347impl From<TRO_A> for bool {
348    #[inline(always)]
349    fn from(variant: TRO_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl TRO_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> TRO_A {
357        match self.bits {
358            false => TRO_A::_0,
359            true => TRO_A::_1,
360        }
361    }
362    #[doc = "Checks if the value of the field is `_0`"]
363    #[inline(always)]
364    pub fn is_0(&self) -> bool {
365        *self == TRO_A::_0
366    }
367    #[doc = "Checks if the value of the field is `_1`"]
368    #[inline(always)]
369    pub fn is_1(&self) -> bool {
370        *self == TRO_A::_1
371    }
372}
373#[doc = "Field `TRO` writer - Transmit Retry Over Flag"]
374pub type TRO_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, TRO_A, O>;
375impl<'a, const O: u8> TRO_W<'a, O> {
376    #[doc = "Transmit retry-over condition not detected"]
377    #[inline(always)]
378    pub fn _0(self) -> &'a mut W {
379        self.variant(TRO_A::_0)
380    }
381    #[doc = "Transmit retry-over condition detected."]
382    #[inline(always)]
383    pub fn _1(self) -> &'a mut W {
384        self.variant(TRO_A::_1)
385    }
386}
387#[doc = "Field `CD` reader - Late Collision Detect Flag"]
388pub type CD_R = crate::BitReader<CD_A>;
389#[doc = "Late Collision Detect Flag\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum CD_A {
392    #[doc = "0: Late collision not detected"]
393    _0 = 0,
394    #[doc = "1: Late collision detected during frame transmission."]
395    _1 = 1,
396}
397impl From<CD_A> for bool {
398    #[inline(always)]
399    fn from(variant: CD_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl CD_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> CD_A {
407        match self.bits {
408            false => CD_A::_0,
409            true => CD_A::_1,
410        }
411    }
412    #[doc = "Checks if the value of the field is `_0`"]
413    #[inline(always)]
414    pub fn is_0(&self) -> bool {
415        *self == CD_A::_0
416    }
417    #[doc = "Checks if the value of the field is `_1`"]
418    #[inline(always)]
419    pub fn is_1(&self) -> bool {
420        *self == CD_A::_1
421    }
422}
423#[doc = "Field `CD` writer - Late Collision Detect Flag"]
424pub type CD_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, CD_A, O>;
425impl<'a, const O: u8> CD_W<'a, O> {
426    #[doc = "Late collision not detected"]
427    #[inline(always)]
428    pub fn _0(self) -> &'a mut W {
429        self.variant(CD_A::_0)
430    }
431    #[doc = "Late collision detected during frame transmission."]
432    #[inline(always)]
433    pub fn _1(self) -> &'a mut W {
434        self.variant(CD_A::_1)
435    }
436}
437#[doc = "Field `DLC` reader - Loss of Carrier Detect Flag"]
438pub type DLC_R = crate::BitReader<DLC_A>;
439#[doc = "Loss of Carrier Detect Flag\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum DLC_A {
442    #[doc = "0: Loss of carrier not detected"]
443    _0 = 0,
444    #[doc = "1: Loss of carrier detected during frame transmission."]
445    _1 = 1,
446}
447impl From<DLC_A> for bool {
448    #[inline(always)]
449    fn from(variant: DLC_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl DLC_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> DLC_A {
457        match self.bits {
458            false => DLC_A::_0,
459            true => DLC_A::_1,
460        }
461    }
462    #[doc = "Checks if the value of the field is `_0`"]
463    #[inline(always)]
464    pub fn is_0(&self) -> bool {
465        *self == DLC_A::_0
466    }
467    #[doc = "Checks if the value of the field is `_1`"]
468    #[inline(always)]
469    pub fn is_1(&self) -> bool {
470        *self == DLC_A::_1
471    }
472}
473#[doc = "Field `DLC` writer - Loss of Carrier Detect Flag"]
474pub type DLC_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, DLC_A, O>;
475impl<'a, const O: u8> DLC_W<'a, O> {
476    #[doc = "Loss of carrier not detected"]
477    #[inline(always)]
478    pub fn _0(self) -> &'a mut W {
479        self.variant(DLC_A::_0)
480    }
481    #[doc = "Loss of carrier detected during frame transmission."]
482    #[inline(always)]
483    pub fn _1(self) -> &'a mut W {
484        self.variant(DLC_A::_1)
485    }
486}
487#[doc = "Field `CND` reader - Carrier Not Detect Flag"]
488pub type CND_R = crate::BitReader<CND_A>;
489#[doc = "Carrier Not Detect Flag\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum CND_A {
492    #[doc = "0: Carrier detected when transmission started"]
493    _0 = 0,
494    #[doc = "1: Carrier not detected during preamble transmission."]
495    _1 = 1,
496}
497impl From<CND_A> for bool {
498    #[inline(always)]
499    fn from(variant: CND_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl CND_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> CND_A {
507        match self.bits {
508            false => CND_A::_0,
509            true => CND_A::_1,
510        }
511    }
512    #[doc = "Checks if the value of the field is `_0`"]
513    #[inline(always)]
514    pub fn is_0(&self) -> bool {
515        *self == CND_A::_0
516    }
517    #[doc = "Checks if the value of the field is `_1`"]
518    #[inline(always)]
519    pub fn is_1(&self) -> bool {
520        *self == CND_A::_1
521    }
522}
523#[doc = "Field `CND` writer - Carrier Not Detect Flag"]
524pub type CND_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, CND_A, O>;
525impl<'a, const O: u8> CND_W<'a, O> {
526    #[doc = "Carrier detected when transmission started"]
527    #[inline(always)]
528    pub fn _0(self) -> &'a mut W {
529        self.variant(CND_A::_0)
530    }
531    #[doc = "Carrier not detected during preamble transmission."]
532    #[inline(always)]
533    pub fn _1(self) -> &'a mut W {
534        self.variant(CND_A::_1)
535    }
536}
537#[doc = "Field `RFOF` reader - Receive FIFO Overflow Flag"]
538pub type RFOF_R = crate::BitReader<RFOF_A>;
539#[doc = "Receive FIFO Overflow Flag\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum RFOF_A {
542    #[doc = "0: No overflow occurred"]
543    _0 = 0,
544    #[doc = "1: Overflow occurred."]
545    _1 = 1,
546}
547impl From<RFOF_A> for bool {
548    #[inline(always)]
549    fn from(variant: RFOF_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl RFOF_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> RFOF_A {
557        match self.bits {
558            false => RFOF_A::_0,
559            true => RFOF_A::_1,
560        }
561    }
562    #[doc = "Checks if the value of the field is `_0`"]
563    #[inline(always)]
564    pub fn is_0(&self) -> bool {
565        *self == RFOF_A::_0
566    }
567    #[doc = "Checks if the value of the field is `_1`"]
568    #[inline(always)]
569    pub fn is_1(&self) -> bool {
570        *self == RFOF_A::_1
571    }
572}
573#[doc = "Field `RFOF` writer - Receive FIFO Overflow Flag"]
574pub type RFOF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RFOF_A, O>;
575impl<'a, const O: u8> RFOF_W<'a, O> {
576    #[doc = "No overflow occurred"]
577    #[inline(always)]
578    pub fn _0(self) -> &'a mut W {
579        self.variant(RFOF_A::_0)
580    }
581    #[doc = "Overflow occurred."]
582    #[inline(always)]
583    pub fn _1(self) -> &'a mut W {
584        self.variant(RFOF_A::_1)
585    }
586}
587#[doc = "Field `RDE` reader - Receive Descriptor Empty Flag"]
588pub type RDE_R = crate::BitReader<RDE_A>;
589#[doc = "Receive Descriptor Empty Flag\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
591pub enum RDE_A {
592    #[doc = "0: EDMAC detected that the receive descriptor valid bit (RD0.RACT) is 1"]
593    _0 = 0,
594    #[doc = "1: EDMAC detected that the receive descriptor valid bit (RD0.RACT) is 0."]
595    _1 = 1,
596}
597impl From<RDE_A> for bool {
598    #[inline(always)]
599    fn from(variant: RDE_A) -> Self {
600        variant as u8 != 0
601    }
602}
603impl RDE_R {
604    #[doc = "Get enumerated values variant"]
605    #[inline(always)]
606    pub fn variant(&self) -> RDE_A {
607        match self.bits {
608            false => RDE_A::_0,
609            true => RDE_A::_1,
610        }
611    }
612    #[doc = "Checks if the value of the field is `_0`"]
613    #[inline(always)]
614    pub fn is_0(&self) -> bool {
615        *self == RDE_A::_0
616    }
617    #[doc = "Checks if the value of the field is `_1`"]
618    #[inline(always)]
619    pub fn is_1(&self) -> bool {
620        *self == RDE_A::_1
621    }
622}
623#[doc = "Field `RDE` writer - Receive Descriptor Empty Flag"]
624pub type RDE_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RDE_A, O>;
625impl<'a, const O: u8> RDE_W<'a, O> {
626    #[doc = "EDMAC detected that the receive descriptor valid bit (RD0.RACT) is 1"]
627    #[inline(always)]
628    pub fn _0(self) -> &'a mut W {
629        self.variant(RDE_A::_0)
630    }
631    #[doc = "EDMAC detected that the receive descriptor valid bit (RD0.RACT) is 0."]
632    #[inline(always)]
633    pub fn _1(self) -> &'a mut W {
634        self.variant(RDE_A::_1)
635    }
636}
637#[doc = "Field `FR` reader - Frame Receive Flag"]
638pub type FR_R = crate::BitReader<FR_A>;
639#[doc = "Frame Receive Flag\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq, Eq)]
641pub enum FR_A {
642    #[doc = "0: Frame not received"]
643    _0 = 0,
644    #[doc = "1: Frame received and update of the receive descriptor is complete."]
645    _1 = 1,
646}
647impl From<FR_A> for bool {
648    #[inline(always)]
649    fn from(variant: FR_A) -> Self {
650        variant as u8 != 0
651    }
652}
653impl FR_R {
654    #[doc = "Get enumerated values variant"]
655    #[inline(always)]
656    pub fn variant(&self) -> FR_A {
657        match self.bits {
658            false => FR_A::_0,
659            true => FR_A::_1,
660        }
661    }
662    #[doc = "Checks if the value of the field is `_0`"]
663    #[inline(always)]
664    pub fn is_0(&self) -> bool {
665        *self == FR_A::_0
666    }
667    #[doc = "Checks if the value of the field is `_1`"]
668    #[inline(always)]
669    pub fn is_1(&self) -> bool {
670        *self == FR_A::_1
671    }
672}
673#[doc = "Field `FR` writer - Frame Receive Flag"]
674pub type FR_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, FR_A, O>;
675impl<'a, const O: u8> FR_W<'a, O> {
676    #[doc = "Frame not received"]
677    #[inline(always)]
678    pub fn _0(self) -> &'a mut W {
679        self.variant(FR_A::_0)
680    }
681    #[doc = "Frame received and update of the receive descriptor is complete."]
682    #[inline(always)]
683    pub fn _1(self) -> &'a mut W {
684        self.variant(FR_A::_1)
685    }
686}
687#[doc = "Field `TFUF` reader - Transmit FIFO Underflow Flag"]
688pub type TFUF_R = crate::BitReader<TFUF_A>;
689#[doc = "Transmit FIFO Underflow Flag\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691pub enum TFUF_A {
692    #[doc = "0: No underflow occurred"]
693    _0 = 0,
694    #[doc = "1: Underflow occurred."]
695    _1 = 1,
696}
697impl From<TFUF_A> for bool {
698    #[inline(always)]
699    fn from(variant: TFUF_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl TFUF_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> TFUF_A {
707        match self.bits {
708            false => TFUF_A::_0,
709            true => TFUF_A::_1,
710        }
711    }
712    #[doc = "Checks if the value of the field is `_0`"]
713    #[inline(always)]
714    pub fn is_0(&self) -> bool {
715        *self == TFUF_A::_0
716    }
717    #[doc = "Checks if the value of the field is `_1`"]
718    #[inline(always)]
719    pub fn is_1(&self) -> bool {
720        *self == TFUF_A::_1
721    }
722}
723#[doc = "Field `TFUF` writer - Transmit FIFO Underflow Flag"]
724pub type TFUF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, TFUF_A, O>;
725impl<'a, const O: u8> TFUF_W<'a, O> {
726    #[doc = "No underflow occurred"]
727    #[inline(always)]
728    pub fn _0(self) -> &'a mut W {
729        self.variant(TFUF_A::_0)
730    }
731    #[doc = "Underflow occurred."]
732    #[inline(always)]
733    pub fn _1(self) -> &'a mut W {
734        self.variant(TFUF_A::_1)
735    }
736}
737#[doc = "Field `TDE` reader - Transmit Descriptor Empty Flag"]
738pub type TDE_R = crate::BitReader<TDE_A>;
739#[doc = "Transmit Descriptor Empty Flag\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq, Eq)]
741pub enum TDE_A {
742    #[doc = "0: EDMAC detected that the transmit descriptor valid bit (TD0.TACT) is 1"]
743    _0 = 0,
744    #[doc = "1: EDMAC detected that the transmit descriptor valid bit (TD0.TACT) is 0."]
745    _1 = 1,
746}
747impl From<TDE_A> for bool {
748    #[inline(always)]
749    fn from(variant: TDE_A) -> Self {
750        variant as u8 != 0
751    }
752}
753impl TDE_R {
754    #[doc = "Get enumerated values variant"]
755    #[inline(always)]
756    pub fn variant(&self) -> TDE_A {
757        match self.bits {
758            false => TDE_A::_0,
759            true => TDE_A::_1,
760        }
761    }
762    #[doc = "Checks if the value of the field is `_0`"]
763    #[inline(always)]
764    pub fn is_0(&self) -> bool {
765        *self == TDE_A::_0
766    }
767    #[doc = "Checks if the value of the field is `_1`"]
768    #[inline(always)]
769    pub fn is_1(&self) -> bool {
770        *self == TDE_A::_1
771    }
772}
773#[doc = "Field `TDE` writer - Transmit Descriptor Empty Flag"]
774pub type TDE_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, TDE_A, O>;
775impl<'a, const O: u8> TDE_W<'a, O> {
776    #[doc = "EDMAC detected that the transmit descriptor valid bit (TD0.TACT) is 1"]
777    #[inline(always)]
778    pub fn _0(self) -> &'a mut W {
779        self.variant(TDE_A::_0)
780    }
781    #[doc = "EDMAC detected that the transmit descriptor valid bit (TD0.TACT) is 0."]
782    #[inline(always)]
783    pub fn _1(self) -> &'a mut W {
784        self.variant(TDE_A::_1)
785    }
786}
787#[doc = "Field `TC` reader - Frame Transfer Complete Flag"]
788pub type TC_R = crate::BitReader<TC_A>;
789#[doc = "Frame Transfer Complete Flag\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq, Eq)]
791pub enum TC_A {
792    #[doc = "0: Transfer not complete or no transfer requested"]
793    _0 = 0,
794    #[doc = "1: All frames indicated in the transmit descriptor were completely transferred to the transmit FIFO."]
795    _1 = 1,
796}
797impl From<TC_A> for bool {
798    #[inline(always)]
799    fn from(variant: TC_A) -> Self {
800        variant as u8 != 0
801    }
802}
803impl TC_R {
804    #[doc = "Get enumerated values variant"]
805    #[inline(always)]
806    pub fn variant(&self) -> TC_A {
807        match self.bits {
808            false => TC_A::_0,
809            true => TC_A::_1,
810        }
811    }
812    #[doc = "Checks if the value of the field is `_0`"]
813    #[inline(always)]
814    pub fn is_0(&self) -> bool {
815        *self == TC_A::_0
816    }
817    #[doc = "Checks if the value of the field is `_1`"]
818    #[inline(always)]
819    pub fn is_1(&self) -> bool {
820        *self == TC_A::_1
821    }
822}
823#[doc = "Field `TC` writer - Frame Transfer Complete Flag"]
824pub type TC_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, TC_A, O>;
825impl<'a, const O: u8> TC_W<'a, O> {
826    #[doc = "Transfer not complete or no transfer requested"]
827    #[inline(always)]
828    pub fn _0(self) -> &'a mut W {
829        self.variant(TC_A::_0)
830    }
831    #[doc = "All frames indicated in the transmit descriptor were completely transferred to the transmit FIFO."]
832    #[inline(always)]
833    pub fn _1(self) -> &'a mut W {
834        self.variant(TC_A::_1)
835    }
836}
837#[doc = "Field `ECI` reader - ETHERC Status Register Source Flag"]
838pub type ECI_R = crate::BitReader<ECI_A>;
839#[doc = "ETHERC Status Register Source Flag\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq, Eq)]
841pub enum ECI_A {
842    #[doc = "0: ETHERC status interrupt source not detected"]
843    _0 = 0,
844    #[doc = "1: ETHERC status interrupt source detected."]
845    _1 = 1,
846}
847impl From<ECI_A> for bool {
848    #[inline(always)]
849    fn from(variant: ECI_A) -> Self {
850        variant as u8 != 0
851    }
852}
853impl ECI_R {
854    #[doc = "Get enumerated values variant"]
855    #[inline(always)]
856    pub fn variant(&self) -> ECI_A {
857        match self.bits {
858            false => ECI_A::_0,
859            true => ECI_A::_1,
860        }
861    }
862    #[doc = "Checks if the value of the field is `_0`"]
863    #[inline(always)]
864    pub fn is_0(&self) -> bool {
865        *self == ECI_A::_0
866    }
867    #[doc = "Checks if the value of the field is `_1`"]
868    #[inline(always)]
869    pub fn is_1(&self) -> bool {
870        *self == ECI_A::_1
871    }
872}
873#[doc = "Field `ADE` reader - Address Error Flag"]
874pub type ADE_R = crate::BitReader<ADE_A>;
875#[doc = "Address Error Flag\n\nValue on reset: 0"]
876#[derive(Clone, Copy, Debug, PartialEq, Eq)]
877pub enum ADE_A {
878    #[doc = "0: Invalid memory address not detected (normal operation)"]
879    _0 = 0,
880    #[doc = "1: Invalid memory address detected."]
881    _1 = 1,
882}
883impl From<ADE_A> for bool {
884    #[inline(always)]
885    fn from(variant: ADE_A) -> Self {
886        variant as u8 != 0
887    }
888}
889impl ADE_R {
890    #[doc = "Get enumerated values variant"]
891    #[inline(always)]
892    pub fn variant(&self) -> ADE_A {
893        match self.bits {
894            false => ADE_A::_0,
895            true => ADE_A::_1,
896        }
897    }
898    #[doc = "Checks if the value of the field is `_0`"]
899    #[inline(always)]
900    pub fn is_0(&self) -> bool {
901        *self == ADE_A::_0
902    }
903    #[doc = "Checks if the value of the field is `_1`"]
904    #[inline(always)]
905    pub fn is_1(&self) -> bool {
906        *self == ADE_A::_1
907    }
908}
909#[doc = "Field `ADE` writer - Address Error Flag"]
910pub type ADE_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, ADE_A, O>;
911impl<'a, const O: u8> ADE_W<'a, O> {
912    #[doc = "Invalid memory address not detected (normal operation)"]
913    #[inline(always)]
914    pub fn _0(self) -> &'a mut W {
915        self.variant(ADE_A::_0)
916    }
917    #[doc = "Invalid memory address detected."]
918    #[inline(always)]
919    pub fn _1(self) -> &'a mut W {
920        self.variant(ADE_A::_1)
921    }
922}
923#[doc = "Field `RFCOF` reader - Receive Frame Counter Overflow Flag"]
924pub type RFCOF_R = crate::BitReader<RFCOF_A>;
925#[doc = "Receive Frame Counter Overflow Flag\n\nValue on reset: 0"]
926#[derive(Clone, Copy, Debug, PartialEq, Eq)]
927pub enum RFCOF_A {
928    #[doc = "0: Receive frame counter did not overflow"]
929    _0 = 0,
930    #[doc = "1: Receive frame counter overflowed."]
931    _1 = 1,
932}
933impl From<RFCOF_A> for bool {
934    #[inline(always)]
935    fn from(variant: RFCOF_A) -> Self {
936        variant as u8 != 0
937    }
938}
939impl RFCOF_R {
940    #[doc = "Get enumerated values variant"]
941    #[inline(always)]
942    pub fn variant(&self) -> RFCOF_A {
943        match self.bits {
944            false => RFCOF_A::_0,
945            true => RFCOF_A::_1,
946        }
947    }
948    #[doc = "Checks if the value of the field is `_0`"]
949    #[inline(always)]
950    pub fn is_0(&self) -> bool {
951        *self == RFCOF_A::_0
952    }
953    #[doc = "Checks if the value of the field is `_1`"]
954    #[inline(always)]
955    pub fn is_1(&self) -> bool {
956        *self == RFCOF_A::_1
957    }
958}
959#[doc = "Field `RFCOF` writer - Receive Frame Counter Overflow Flag"]
960pub type RFCOF_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RFCOF_A, O>;
961impl<'a, const O: u8> RFCOF_W<'a, O> {
962    #[doc = "Receive frame counter did not overflow"]
963    #[inline(always)]
964    pub fn _0(self) -> &'a mut W {
965        self.variant(RFCOF_A::_0)
966    }
967    #[doc = "Receive frame counter overflowed."]
968    #[inline(always)]
969    pub fn _1(self) -> &'a mut W {
970        self.variant(RFCOF_A::_1)
971    }
972}
973#[doc = "Field `RABT` reader - Receive Abort Detect Flag"]
974pub type RABT_R = crate::BitReader<RABT_A>;
975#[doc = "Receive Abort Detect Flag\n\nValue on reset: 0"]
976#[derive(Clone, Copy, Debug, PartialEq, Eq)]
977pub enum RABT_A {
978    #[doc = "0: Frame reception not aborted or no reception requested"]
979    _0 = 0,
980    #[doc = "1: Frame reception aborted."]
981    _1 = 1,
982}
983impl From<RABT_A> for bool {
984    #[inline(always)]
985    fn from(variant: RABT_A) -> Self {
986        variant as u8 != 0
987    }
988}
989impl RABT_R {
990    #[doc = "Get enumerated values variant"]
991    #[inline(always)]
992    pub fn variant(&self) -> RABT_A {
993        match self.bits {
994            false => RABT_A::_0,
995            true => RABT_A::_1,
996        }
997    }
998    #[doc = "Checks if the value of the field is `_0`"]
999    #[inline(always)]
1000    pub fn is_0(&self) -> bool {
1001        *self == RABT_A::_0
1002    }
1003    #[doc = "Checks if the value of the field is `_1`"]
1004    #[inline(always)]
1005    pub fn is_1(&self) -> bool {
1006        *self == RABT_A::_1
1007    }
1008}
1009#[doc = "Field `RABT` writer - Receive Abort Detect Flag"]
1010pub type RABT_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, RABT_A, O>;
1011impl<'a, const O: u8> RABT_W<'a, O> {
1012    #[doc = "Frame reception not aborted or no reception requested"]
1013    #[inline(always)]
1014    pub fn _0(self) -> &'a mut W {
1015        self.variant(RABT_A::_0)
1016    }
1017    #[doc = "Frame reception aborted."]
1018    #[inline(always)]
1019    pub fn _1(self) -> &'a mut W {
1020        self.variant(RABT_A::_1)
1021    }
1022}
1023#[doc = "Field `TABT` reader - Transmit Abort Detect Flag"]
1024pub type TABT_R = crate::BitReader<TABT_A>;
1025#[doc = "Transmit Abort Detect Flag\n\nValue on reset: 0"]
1026#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1027pub enum TABT_A {
1028    #[doc = "0: Frame transmission not aborted or no transmission requested."]
1029    _0 = 0,
1030    #[doc = "1: Frame transmission aborted."]
1031    _1 = 1,
1032}
1033impl From<TABT_A> for bool {
1034    #[inline(always)]
1035    fn from(variant: TABT_A) -> Self {
1036        variant as u8 != 0
1037    }
1038}
1039impl TABT_R {
1040    #[doc = "Get enumerated values variant"]
1041    #[inline(always)]
1042    pub fn variant(&self) -> TABT_A {
1043        match self.bits {
1044            false => TABT_A::_0,
1045            true => TABT_A::_1,
1046        }
1047    }
1048    #[doc = "Checks if the value of the field is `_0`"]
1049    #[inline(always)]
1050    pub fn is_0(&self) -> bool {
1051        *self == TABT_A::_0
1052    }
1053    #[doc = "Checks if the value of the field is `_1`"]
1054    #[inline(always)]
1055    pub fn is_1(&self) -> bool {
1056        *self == TABT_A::_1
1057    }
1058}
1059#[doc = "Field `TABT` writer - Transmit Abort Detect Flag"]
1060pub type TABT_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, TABT_A, O>;
1061impl<'a, const O: u8> TABT_W<'a, O> {
1062    #[doc = "Frame transmission not aborted or no transmission requested."]
1063    #[inline(always)]
1064    pub fn _0(self) -> &'a mut W {
1065        self.variant(TABT_A::_0)
1066    }
1067    #[doc = "Frame transmission aborted."]
1068    #[inline(always)]
1069    pub fn _1(self) -> &'a mut W {
1070        self.variant(TABT_A::_1)
1071    }
1072}
1073#[doc = "Field `TWB` reader - Write-Back Complete Flag"]
1074pub type TWB_R = crate::BitReader<TWB_A>;
1075#[doc = "Write-Back Complete Flag\n\nValue on reset: 0"]
1076#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1077pub enum TWB_A {
1078    #[doc = "0: Write-back not complete or no transmission requested"]
1079    _0 = 0,
1080    #[doc = "1: Write-back to the transmit descriptor completed."]
1081    _1 = 1,
1082}
1083impl From<TWB_A> for bool {
1084    #[inline(always)]
1085    fn from(variant: TWB_A) -> Self {
1086        variant as u8 != 0
1087    }
1088}
1089impl TWB_R {
1090    #[doc = "Get enumerated values variant"]
1091    #[inline(always)]
1092    pub fn variant(&self) -> TWB_A {
1093        match self.bits {
1094            false => TWB_A::_0,
1095            true => TWB_A::_1,
1096        }
1097    }
1098    #[doc = "Checks if the value of the field is `_0`"]
1099    #[inline(always)]
1100    pub fn is_0(&self) -> bool {
1101        *self == TWB_A::_0
1102    }
1103    #[doc = "Checks if the value of the field is `_1`"]
1104    #[inline(always)]
1105    pub fn is_1(&self) -> bool {
1106        *self == TWB_A::_1
1107    }
1108}
1109#[doc = "Field `TWB` writer - Write-Back Complete Flag"]
1110pub type TWB_W<'a, const O: u8> = crate::BitWriter<'a, u32, EESR_SPEC, TWB_A, O>;
1111impl<'a, const O: u8> TWB_W<'a, O> {
1112    #[doc = "Write-back not complete or no transmission requested"]
1113    #[inline(always)]
1114    pub fn _0(self) -> &'a mut W {
1115        self.variant(TWB_A::_0)
1116    }
1117    #[doc = "Write-back to the transmit descriptor completed."]
1118    #[inline(always)]
1119    pub fn _1(self) -> &'a mut W {
1120        self.variant(TWB_A::_1)
1121    }
1122}
1123impl R {
1124    #[doc = "Bit 0 - CRC Error Flag"]
1125    #[inline(always)]
1126    pub fn cerf(&self) -> CERF_R {
1127        CERF_R::new((self.bits & 1) != 0)
1128    }
1129    #[doc = "Bit 1 - PHY-LSI Receive Error Flag"]
1130    #[inline(always)]
1131    pub fn pre(&self) -> PRE_R {
1132        PRE_R::new(((self.bits >> 1) & 1) != 0)
1133    }
1134    #[doc = "Bit 2 - Frame-Too-Short Error Flag"]
1135    #[inline(always)]
1136    pub fn rtsf(&self) -> RTSF_R {
1137        RTSF_R::new(((self.bits >> 2) & 1) != 0)
1138    }
1139    #[doc = "Bit 3 - Frame-Too-Long Error Flag"]
1140    #[inline(always)]
1141    pub fn rtlf(&self) -> RTLF_R {
1142        RTLF_R::new(((self.bits >> 3) & 1) != 0)
1143    }
1144    #[doc = "Bit 4 - Alignment Error Flag"]
1145    #[inline(always)]
1146    pub fn rrf(&self) -> RRF_R {
1147        RRF_R::new(((self.bits >> 4) & 1) != 0)
1148    }
1149    #[doc = "Bit 7 - Multicast Address Frame Receive Flag"]
1150    #[inline(always)]
1151    pub fn rmaf(&self) -> RMAF_R {
1152        RMAF_R::new(((self.bits >> 7) & 1) != 0)
1153    }
1154    #[doc = "Bit 8 - Transmit Retry Over Flag"]
1155    #[inline(always)]
1156    pub fn tro(&self) -> TRO_R {
1157        TRO_R::new(((self.bits >> 8) & 1) != 0)
1158    }
1159    #[doc = "Bit 9 - Late Collision Detect Flag"]
1160    #[inline(always)]
1161    pub fn cd(&self) -> CD_R {
1162        CD_R::new(((self.bits >> 9) & 1) != 0)
1163    }
1164    #[doc = "Bit 10 - Loss of Carrier Detect Flag"]
1165    #[inline(always)]
1166    pub fn dlc(&self) -> DLC_R {
1167        DLC_R::new(((self.bits >> 10) & 1) != 0)
1168    }
1169    #[doc = "Bit 11 - Carrier Not Detect Flag"]
1170    #[inline(always)]
1171    pub fn cnd(&self) -> CND_R {
1172        CND_R::new(((self.bits >> 11) & 1) != 0)
1173    }
1174    #[doc = "Bit 16 - Receive FIFO Overflow Flag"]
1175    #[inline(always)]
1176    pub fn rfof(&self) -> RFOF_R {
1177        RFOF_R::new(((self.bits >> 16) & 1) != 0)
1178    }
1179    #[doc = "Bit 17 - Receive Descriptor Empty Flag"]
1180    #[inline(always)]
1181    pub fn rde(&self) -> RDE_R {
1182        RDE_R::new(((self.bits >> 17) & 1) != 0)
1183    }
1184    #[doc = "Bit 18 - Frame Receive Flag"]
1185    #[inline(always)]
1186    pub fn fr(&self) -> FR_R {
1187        FR_R::new(((self.bits >> 18) & 1) != 0)
1188    }
1189    #[doc = "Bit 19 - Transmit FIFO Underflow Flag"]
1190    #[inline(always)]
1191    pub fn tfuf(&self) -> TFUF_R {
1192        TFUF_R::new(((self.bits >> 19) & 1) != 0)
1193    }
1194    #[doc = "Bit 20 - Transmit Descriptor Empty Flag"]
1195    #[inline(always)]
1196    pub fn tde(&self) -> TDE_R {
1197        TDE_R::new(((self.bits >> 20) & 1) != 0)
1198    }
1199    #[doc = "Bit 21 - Frame Transfer Complete Flag"]
1200    #[inline(always)]
1201    pub fn tc(&self) -> TC_R {
1202        TC_R::new(((self.bits >> 21) & 1) != 0)
1203    }
1204    #[doc = "Bit 22 - ETHERC Status Register Source Flag"]
1205    #[inline(always)]
1206    pub fn eci(&self) -> ECI_R {
1207        ECI_R::new(((self.bits >> 22) & 1) != 0)
1208    }
1209    #[doc = "Bit 23 - Address Error Flag"]
1210    #[inline(always)]
1211    pub fn ade(&self) -> ADE_R {
1212        ADE_R::new(((self.bits >> 23) & 1) != 0)
1213    }
1214    #[doc = "Bit 24 - Receive Frame Counter Overflow Flag"]
1215    #[inline(always)]
1216    pub fn rfcof(&self) -> RFCOF_R {
1217        RFCOF_R::new(((self.bits >> 24) & 1) != 0)
1218    }
1219    #[doc = "Bit 25 - Receive Abort Detect Flag"]
1220    #[inline(always)]
1221    pub fn rabt(&self) -> RABT_R {
1222        RABT_R::new(((self.bits >> 25) & 1) != 0)
1223    }
1224    #[doc = "Bit 26 - Transmit Abort Detect Flag"]
1225    #[inline(always)]
1226    pub fn tabt(&self) -> TABT_R {
1227        TABT_R::new(((self.bits >> 26) & 1) != 0)
1228    }
1229    #[doc = "Bit 30 - Write-Back Complete Flag"]
1230    #[inline(always)]
1231    pub fn twb(&self) -> TWB_R {
1232        TWB_R::new(((self.bits >> 30) & 1) != 0)
1233    }
1234}
1235impl W {
1236    #[doc = "Bit 0 - CRC Error Flag"]
1237    #[inline(always)]
1238    #[must_use]
1239    pub fn cerf(&mut self) -> CERF_W<0> {
1240        CERF_W::new(self)
1241    }
1242    #[doc = "Bit 1 - PHY-LSI Receive Error Flag"]
1243    #[inline(always)]
1244    #[must_use]
1245    pub fn pre(&mut self) -> PRE_W<1> {
1246        PRE_W::new(self)
1247    }
1248    #[doc = "Bit 2 - Frame-Too-Short Error Flag"]
1249    #[inline(always)]
1250    #[must_use]
1251    pub fn rtsf(&mut self) -> RTSF_W<2> {
1252        RTSF_W::new(self)
1253    }
1254    #[doc = "Bit 3 - Frame-Too-Long Error Flag"]
1255    #[inline(always)]
1256    #[must_use]
1257    pub fn rtlf(&mut self) -> RTLF_W<3> {
1258        RTLF_W::new(self)
1259    }
1260    #[doc = "Bit 4 - Alignment Error Flag"]
1261    #[inline(always)]
1262    #[must_use]
1263    pub fn rrf(&mut self) -> RRF_W<4> {
1264        RRF_W::new(self)
1265    }
1266    #[doc = "Bit 7 - Multicast Address Frame Receive Flag"]
1267    #[inline(always)]
1268    #[must_use]
1269    pub fn rmaf(&mut self) -> RMAF_W<7> {
1270        RMAF_W::new(self)
1271    }
1272    #[doc = "Bit 8 - Transmit Retry Over Flag"]
1273    #[inline(always)]
1274    #[must_use]
1275    pub fn tro(&mut self) -> TRO_W<8> {
1276        TRO_W::new(self)
1277    }
1278    #[doc = "Bit 9 - Late Collision Detect Flag"]
1279    #[inline(always)]
1280    #[must_use]
1281    pub fn cd(&mut self) -> CD_W<9> {
1282        CD_W::new(self)
1283    }
1284    #[doc = "Bit 10 - Loss of Carrier Detect Flag"]
1285    #[inline(always)]
1286    #[must_use]
1287    pub fn dlc(&mut self) -> DLC_W<10> {
1288        DLC_W::new(self)
1289    }
1290    #[doc = "Bit 11 - Carrier Not Detect Flag"]
1291    #[inline(always)]
1292    #[must_use]
1293    pub fn cnd(&mut self) -> CND_W<11> {
1294        CND_W::new(self)
1295    }
1296    #[doc = "Bit 16 - Receive FIFO Overflow Flag"]
1297    #[inline(always)]
1298    #[must_use]
1299    pub fn rfof(&mut self) -> RFOF_W<16> {
1300        RFOF_W::new(self)
1301    }
1302    #[doc = "Bit 17 - Receive Descriptor Empty Flag"]
1303    #[inline(always)]
1304    #[must_use]
1305    pub fn rde(&mut self) -> RDE_W<17> {
1306        RDE_W::new(self)
1307    }
1308    #[doc = "Bit 18 - Frame Receive Flag"]
1309    #[inline(always)]
1310    #[must_use]
1311    pub fn fr(&mut self) -> FR_W<18> {
1312        FR_W::new(self)
1313    }
1314    #[doc = "Bit 19 - Transmit FIFO Underflow Flag"]
1315    #[inline(always)]
1316    #[must_use]
1317    pub fn tfuf(&mut self) -> TFUF_W<19> {
1318        TFUF_W::new(self)
1319    }
1320    #[doc = "Bit 20 - Transmit Descriptor Empty Flag"]
1321    #[inline(always)]
1322    #[must_use]
1323    pub fn tde(&mut self) -> TDE_W<20> {
1324        TDE_W::new(self)
1325    }
1326    #[doc = "Bit 21 - Frame Transfer Complete Flag"]
1327    #[inline(always)]
1328    #[must_use]
1329    pub fn tc(&mut self) -> TC_W<21> {
1330        TC_W::new(self)
1331    }
1332    #[doc = "Bit 23 - Address Error Flag"]
1333    #[inline(always)]
1334    #[must_use]
1335    pub fn ade(&mut self) -> ADE_W<23> {
1336        ADE_W::new(self)
1337    }
1338    #[doc = "Bit 24 - Receive Frame Counter Overflow Flag"]
1339    #[inline(always)]
1340    #[must_use]
1341    pub fn rfcof(&mut self) -> RFCOF_W<24> {
1342        RFCOF_W::new(self)
1343    }
1344    #[doc = "Bit 25 - Receive Abort Detect Flag"]
1345    #[inline(always)]
1346    #[must_use]
1347    pub fn rabt(&mut self) -> RABT_W<25> {
1348        RABT_W::new(self)
1349    }
1350    #[doc = "Bit 26 - Transmit Abort Detect Flag"]
1351    #[inline(always)]
1352    #[must_use]
1353    pub fn tabt(&mut self) -> TABT_W<26> {
1354        TABT_W::new(self)
1355    }
1356    #[doc = "Bit 30 - Write-Back Complete Flag"]
1357    #[inline(always)]
1358    #[must_use]
1359    pub fn twb(&mut self) -> TWB_W<30> {
1360        TWB_W::new(self)
1361    }
1362    #[doc = "Writes raw bits to the register."]
1363    #[inline(always)]
1364    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1365        self.0.bits(bits);
1366        self
1367    }
1368}
1369#[doc = "ETHERC/EDMAC Status Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [eesr](index.html) module"]
1370pub struct EESR_SPEC;
1371impl crate::RegisterSpec for EESR_SPEC {
1372    type Ux = u32;
1373}
1374#[doc = "`read()` method returns [eesr::R](R) reader structure"]
1375impl crate::Readable for EESR_SPEC {
1376    type Reader = R;
1377}
1378#[doc = "`write(|w| ..)` method takes [eesr::W](W) writer structure"]
1379impl crate::Writable for EESR_SPEC {
1380    type Writer = W;
1381    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1382    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1383}
1384#[doc = "`reset()` method sets EESR to value 0"]
1385impl crate::Resettable for EESR_SPEC {
1386    const RESET_VALUE: Self::Ux = 0;
1387}