pub type R = crate::R<MACA0HRrs>;
pub type W = crate::W<MACA0HRrs>;
pub type MACA0H_R = crate::FieldReader<u16>;
pub type MACA0H_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type MO_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn maca0h(&self) -> MACA0H_R {
MACA0H_R::new((self.bits & 0xffff) as u16)
}
#[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 {
#[inline(always)]
pub fn maca0h(&mut self) -> MACA0H_W<MACA0HRrs> {
MACA0H_W::new(self, 0)
}
}
pub struct MACA0HRrs;
impl crate::RegisterSpec for MACA0HRrs {
type Ux = u32;
}
impl crate::Readable for MACA0HRrs {}
impl crate::Writable for MACA0HRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACA0HRrs {
const RESET_VALUE: u32 = 0x0010_ffff;
}