pub type R = crate::R<MACRX_TX_SRrs>;
pub type TJT_R = crate::BitReader;
pub type NCARR_R = crate::BitReader;
pub type LCARR_R = crate::BitReader;
pub type EXDEF_R = crate::BitReader;
pub type LCOL_R = crate::BitReader;
pub type EXCOL_R = crate::BitReader;
pub type RWT_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn tjt(&self) -> TJT_R {
TJT_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ncarr(&self) -> NCARR_R {
NCARR_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn lcarr(&self) -> LCARR_R {
LCARR_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn exdef(&self) -> EXDEF_R {
EXDEF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn lcol(&self) -> LCOL_R {
LCOL_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn excol(&self) -> EXCOL_R {
EXCOL_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn rwt(&self) -> RWT_R {
RWT_R::new(((self.bits >> 8) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACRxTxSR")
.field("tjt", &self.tjt())
.field("ncarr", &self.ncarr())
.field("lcarr", &self.lcarr())
.field("exdef", &self.exdef())
.field("lcol", &self.lcol())
.field("excol", &self.excol())
.field("rwt", &self.rwt())
.finish()
}
}
pub struct MACRX_TX_SRrs;
impl crate::RegisterSpec for MACRX_TX_SRrs {
type Ux = u32;
}
impl crate::Readable for MACRX_TX_SRrs {}
impl crate::Resettable for MACRX_TX_SRrs {}