pub type R = crate::R<MACTSSRrs>;
pub type TSSOVF_R = crate::BitReader;
pub type TSTARGT0_R = crate::BitReader;
pub type AUXTSTRIG_R = crate::BitReader;
pub type TSTRGTERR0_R = crate::BitReader;
pub type TXTSSIS_R = crate::BitReader;
pub type ATSSTN_R = crate::FieldReader;
pub type ATSSTM_R = crate::BitReader;
pub type ATSNS_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn tssovf(&self) -> TSSOVF_R {
TSSOVF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tstargt0(&self) -> TSTARGT0_R {
TSTARGT0_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn auxtstrig(&self) -> AUXTSTRIG_R {
AUXTSTRIG_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tstrgterr0(&self) -> TSTRGTERR0_R {
TSTRGTERR0_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn txtssis(&self) -> TXTSSIS_R {
TXTSSIS_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn atsstn(&self) -> ATSSTN_R {
ATSSTN_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[inline(always)]
pub fn atsstm(&self) -> ATSSTM_R {
ATSSTM_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn atsns(&self) -> ATSNS_R {
ATSNS_R::new(((self.bits >> 25) & 0x1f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACTSSR")
.field("tssovf", &self.tssovf())
.field("tstargt0", &self.tstargt0())
.field("auxtstrig", &self.auxtstrig())
.field("tstrgterr0", &self.tstrgterr0())
.field("txtssis", &self.txtssis())
.field("atsstn", &self.atsstn())
.field("atsstm", &self.atsstm())
.field("atsns", &self.atsns())
.finish()
}
}
pub struct MACTSSRrs;
impl crate::RegisterSpec for MACTSSRrs {
type Ux = u32;
}
impl crate::Readable for MACTSSRrs {}
impl crate::Resettable for MACTSSRrs {}