pub type R = crate::R<MACMIIDRrs>;
pub type W = crate::W<MACMIIDRrs>;
pub type MD_R = crate::FieldReader<u16>;
pub type MD_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn md(&self) -> MD_R {
MD_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACMIIDR").field("md", &self.md()).finish()
}
}
impl W {
#[inline(always)]
pub fn md(&mut self) -> MD_W<MACMIIDRrs> {
MD_W::new(self, 0)
}
}
pub struct MACMIIDRrs;
impl crate::RegisterSpec for MACMIIDRrs {
type Ux = u32;
}
impl crate::Readable for MACMIIDRrs {}
impl crate::Writable for MACMIIDRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACMIIDRrs {}