pub type R = crate::R<MTLRX_QMPOCRrs>;
pub type OVFPKTCNT_R = crate::FieldReader<u16>;
pub type OVFCNTOVF_R = crate::BitReader;
pub type MISPKTCNT_R = crate::FieldReader<u16>;
pub type MISCNTOVF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn ovfpktcnt(&self) -> OVFPKTCNT_R {
OVFPKTCNT_R::new((self.bits & 0x07ff) as u16)
}
#[inline(always)]
pub fn ovfcntovf(&self) -> OVFCNTOVF_R {
OVFCNTOVF_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn mispktcnt(&self) -> MISPKTCNT_R {
MISPKTCNT_R::new(((self.bits >> 16) & 0x07ff) as u16)
}
#[inline(always)]
pub fn miscntovf(&self) -> MISCNTOVF_R {
MISCNTOVF_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MTLRxQMPOCR")
.field("ovfpktcnt", &self.ovfpktcnt())
.field("ovfcntovf", &self.ovfcntovf())
.field("mispktcnt", &self.mispktcnt())
.field("miscntovf", &self.miscntovf())
.finish()
}
}
pub struct MTLRX_QMPOCRrs;
impl crate::RegisterSpec for MTLRX_QMPOCRrs {
type Ux = u32;
}
impl crate::Readable for MTLRX_QMPOCRrs {}
impl crate::Resettable for MTLRX_QMPOCRrs {}