pub type R = crate::R<MACIMRrs>;
pub type W = crate::W<MACIMRrs>;
pub type PMTIM_R = crate::BitReader;
pub type PMTIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSTIM_R = crate::BitReader;
pub type TSTIM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pmtim(&self) -> PMTIM_R {
PMTIM_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tstim(&self) -> TSTIM_R {
TSTIM_R::new(((self.bits >> 9) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACIMR")
.field("pmtim", &self.pmtim())
.field("tstim", &self.tstim())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pmtim(&mut self) -> PMTIM_W<MACIMRrs> {
PMTIM_W::new(self, 3)
}
#[inline(always)]
pub fn tstim(&mut self) -> TSTIM_W<MACIMRrs> {
TSTIM_W::new(self, 9)
}
}
pub struct MACIMRrs;
impl crate::RegisterSpec for MACIMRrs {
type Ux = u32;
}
impl crate::Readable for MACIMRrs {}
impl crate::Writable for MACIMRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACIMRrs {}