pub type R = crate::R<MTLTX_QDRrs>;
pub type W = crate::W<MTLTX_QDRrs>;
pub type TXQPAUSED_R = crate::BitReader;
pub type TXQPAUSED_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TRCSTS_R = crate::FieldReader;
pub type TRCSTS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TWCSTS_R = crate::BitReader;
pub type TWCSTS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXQSTS_R = crate::BitReader;
pub type TXQSTS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXSTSFSTS_R = crate::BitReader;
pub type TXSTSFSTS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PTXQ_R = crate::FieldReader;
pub type PTXQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type STXSTSF_R = crate::FieldReader;
pub type STXSTSF_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
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("stxstsf", &self.stxstsf())
.field("ptxq", &self.ptxq())
.field("txstsfsts", &self.txstsfsts())
.field("txqsts", &self.txqsts())
.field("twcsts", &self.twcsts())
.field("trcsts", &self.trcsts())
.field("txqpaused", &self.txqpaused())
.finish()
}
}
impl W {
#[inline(always)]
pub fn txqpaused(&mut self) -> TXQPAUSED_W<MTLTX_QDRrs> {
TXQPAUSED_W::new(self, 0)
}
#[inline(always)]
pub fn trcsts(&mut self) -> TRCSTS_W<MTLTX_QDRrs> {
TRCSTS_W::new(self, 1)
}
#[inline(always)]
pub fn twcsts(&mut self) -> TWCSTS_W<MTLTX_QDRrs> {
TWCSTS_W::new(self, 3)
}
#[inline(always)]
pub fn txqsts(&mut self) -> TXQSTS_W<MTLTX_QDRrs> {
TXQSTS_W::new(self, 4)
}
#[inline(always)]
pub fn txstsfsts(&mut self) -> TXSTSFSTS_W<MTLTX_QDRrs> {
TXSTSFSTS_W::new(self, 5)
}
#[inline(always)]
pub fn ptxq(&mut self) -> PTXQ_W<MTLTX_QDRrs> {
PTXQ_W::new(self, 16)
}
#[inline(always)]
pub fn stxstsf(&mut self) -> STXSTSF_W<MTLTX_QDRrs> {
STXSTSF_W::new(self, 20)
}
}
pub struct MTLTX_QDRrs;
impl crate::RegisterSpec for MTLTX_QDRrs {
type Ux = u32;
}
impl crate::Readable for MTLTX_QDRrs {}
impl crate::Writable for MTLTX_QDRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MTLTX_QDRrs {}