pub type R = crate::R<MTLOMRrs>;
pub type W = crate::W<MTLOMRrs>;
pub type DTXSTS_R = crate::BitReader;
pub type DTXSTS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CNTPRST_R = crate::BitReader;
pub type CNTPRST_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CNTCLR_R = crate::BitReader;
pub type CNTCLR_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dtxsts(&self) -> DTXSTS_R {
DTXSTS_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cntprst(&self) -> CNTPRST_R {
CNTPRST_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn cntclr(&self) -> CNTCLR_R {
CNTCLR_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("MTLOMR")
.field("cntclr", &self.cntclr())
.field("cntprst", &self.cntprst())
.field("dtxsts", &self.dtxsts())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dtxsts(&mut self) -> DTXSTS_W<MTLOMRrs> {
DTXSTS_W::new(self, 1)
}
#[inline(always)]
pub fn cntprst(&mut self) -> CNTPRST_W<MTLOMRrs> {
CNTPRST_W::new(self, 8)
}
#[inline(always)]
pub fn cntclr(&mut self) -> CNTCLR_W<MTLOMRrs> {
CNTCLR_W::new(self, 9)
}
}
pub struct MTLOMRrs;
impl crate::RegisterSpec for MTLOMRrs {
type Ux = u32;
}
impl crate::Readable for MTLOMRrs {}
impl crate::Writable for MTLOMRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MTLOMRrs {}