pub type R = crate::R<MTLTX_QURrs>;
pub type W = crate::W<MTLTX_QURrs>;
pub type UFFRMCNT_R = crate::FieldReader<u16>;
pub type UFFRMCNT_W<'a, REG> = crate::FieldWriter<'a, REG, 11, u16>;
pub type UFCNTOVF_R = crate::BitReader;
pub type UFCNTOVF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn uffrmcnt(&self) -> UFFRMCNT_R {
UFFRMCNT_R::new((self.bits & 0x07ff) as u16)
}
#[inline(always)]
pub fn ufcntovf(&self) -> UFCNTOVF_R {
UFCNTOVF_R::new(((self.bits >> 11) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MTLTxQUR")
.field("ufcntovf", &self.ufcntovf())
.field("uffrmcnt", &self.uffrmcnt())
.finish()
}
}
impl W {
#[inline(always)]
pub fn uffrmcnt(&mut self) -> UFFRMCNT_W<MTLTX_QURrs> {
UFFRMCNT_W::new(self, 0)
}
#[inline(always)]
pub fn ufcntovf(&mut self) -> UFCNTOVF_W<MTLTX_QURrs> {
UFCNTOVF_W::new(self, 11)
}
}
pub struct MTLTX_QURrs;
impl crate::RegisterSpec for MTLTX_QURrs {
type Ux = u32;
}
impl crate::Readable for MTLTX_QURrs {}
impl crate::Writable for MTLTX_QURrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MTLTX_QURrs {}