#[doc = "Register `MMCRIR` reader"]
pub type R = crate::R<MmcrirSpec>;
#[doc = "Register `MMCRIR` writer"]
pub type W = crate::W<MmcrirSpec>;
#[doc = "Field `RFCES` reader - Received frames CRC error status"]
pub type RfcesR = crate::BitReader;
#[doc = "Field `RFCES` writer - Received frames CRC error status"]
pub type RfcesW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RFAES` reader - Received frames alignment error status"]
pub type RfaesR = crate::BitReader;
#[doc = "Field `RFAES` writer - Received frames alignment error status"]
pub type RfaesW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RGUFS` reader - Received Good Unicast Frames Status"]
pub type RgufsR = crate::BitReader;
#[doc = "Field `RGUFS` writer - Received Good Unicast Frames Status"]
pub type RgufsW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 5 - Received frames CRC error status"]
    #[inline(always)]
    pub fn rfces(&self) -> RfcesR {
        RfcesR::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Received frames alignment error status"]
    #[inline(always)]
    pub fn rfaes(&self) -> RfaesR {
        RfaesR::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 17 - Received Good Unicast Frames Status"]
    #[inline(always)]
    pub fn rgufs(&self) -> RgufsR {
        RgufsR::new(((self.bits >> 17) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 5 - Received frames CRC error status"]
    #[inline(always)]
    pub fn rfces(&mut self) -> RfcesW<'_, MmcrirSpec> {
        RfcesW::new(self, 5)
    }
    #[doc = "Bit 6 - Received frames alignment error status"]
    #[inline(always)]
    pub fn rfaes(&mut self) -> RfaesW<'_, MmcrirSpec> {
        RfaesW::new(self, 6)
    }
    #[doc = "Bit 17 - Received Good Unicast Frames Status"]
    #[inline(always)]
    pub fn rgufs(&mut self) -> RgufsW<'_, MmcrirSpec> {
        RgufsW::new(self, 17)
    }
}
#[doc = "Ethernet MMC receive interrupt register (ETH_MMCRIR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmcrir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MmcrirSpec;
impl crate::RegisterSpec for MmcrirSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`mmcrir::R`](R) reader structure"]
impl crate::Readable for MmcrirSpec {}
#[doc = "`write(|w| ..)` method takes [`mmcrir::W`](W) writer structure"]
impl crate::Writable for MmcrirSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets MMCRIR to value 0"]
impl crate::Resettable for MmcrirSpec {}
