pub type R = crate::R<MTLTX_QDRrs>;
pub type TXQPAUSED_R = crate::BitReader;
pub type TRCSTS_R = crate::FieldReader;
pub type TWCSTS_R = crate::BitReader;
pub type TXQSTS_R = crate::BitReader;
pub type TXSTSFSTS_R = crate::BitReader;
pub type PTXQ_R = crate::FieldReader;
pub type STXSTSF_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn txqpaused(&self) -> TXQPAUSED_R {
TXQPAUSED_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn trcsts(&self) -> TRCSTS_R {
TRCSTS_R::new(((self.bits >> 1) & 3) as u8)
}
#[inline(always)]
pub fn twcsts(&self) -> TWCSTS_R {
TWCSTS_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn txqsts(&self) -> TXQSTS_R {
TXQSTS_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn txstsfsts(&self) -> TXSTSFSTS_R {
TXSTSFSTS_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ptxq(&self) -> PTXQ_R {
PTXQ_R::new(((self.bits >> 16) & 7) as u8)
}
#[inline(always)]
pub fn stxstsf(&self) -> STXSTSF_R {
STXSTSF_R::new(((self.bits >> 20) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MTLTxQDR")
.field("txqpaused", &self.txqpaused())
.field("trcsts", &self.trcsts())
.field("twcsts", &self.twcsts())
.field("txqsts", &self.txqsts())
.field("txstsfsts", &self.txstsfsts())
.field("ptxq", &self.ptxq())
.field("stxstsf", &self.stxstsf())
.finish()
}
}
pub struct MTLTX_QDRrs;
impl crate::RegisterSpec for MTLTX_QDRrs {
type Ux = u32;
}
impl crate::Readable for MTLTX_QDRrs {}
impl crate::Resettable for MTLTX_QDRrs {}