///Register `MACA0HR` reader
pub type R = crate::R<MACA0HRrs>;
///Register `MACA0HR` writer
pub type W = crate::W<MACA0HRrs>;
///Field `MACA0H` reader - MAC address0 high
pub type MACA0H_R = crate::FieldReader<u16>;
///Field `MACA0H` writer - MAC address0 high
pub type MACA0H_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
///Field `MO` reader - Always 1
pub type MO_R = crate::BitReader;
impl R {
    ///Bits 0:15 - MAC address0 high
    #[inline(always)]
    pub fn maca0h(&self) -> MACA0H_R {
        MACA0H_R::new((self.bits & 0xffff) as u16)
    }
    ///Bit 31 - Always 1
    #[inline(always)]
    pub fn mo(&self) -> MO_R {
        MO_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("MACA0HR")
            .field("maca0h", &self.maca0h())
            .field("mo", &self.mo())
            .finish()
    }
}
impl W {
    ///Bits 0:15 - MAC address0 high
    #[inline(always)]
    pub fn maca0h(&mut self) -> MACA0H_W<MACA0HRrs> {
        MACA0H_W::new(self, 0)
    }
}
/**Ethernet MAC address 0 high register (ETH_MACA0HR)

You can [`read`](crate::Reg::read) this register and get [`maca0hr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca0hr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F107.html#Ethernet_MAC:MACA0HR)*/
pub struct MACA0HRrs;
impl crate::RegisterSpec for MACA0HRrs {
    type Ux = u32;
}
///`read()` method returns [`maca0hr::R`](R) reader structure
impl crate::Readable for MACA0HRrs {}
///`write(|w| ..)` method takes [`maca0hr::W`](W) writer structure
impl crate::Writable for MACA0HRrs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets MACA0HR to value 0x0010_ffff
impl crate::Resettable for MACA0HRrs {
    const RESET_VALUE: u32 = 0x0010_ffff;
}
