pub type R = crate::R<MACHWF1Rrs>;
pub type RXFIFOSIZE_R = crate::FieldReader;
pub type TXFIFOSIZE_R = crate::FieldReader;
pub type OSTEN_R = crate::BitReader;
pub type PTOEN_R = crate::BitReader;
pub type ADVTHWORD_R = crate::BitReader;
pub type DCBEN_R = crate::BitReader;
pub type SPHEN_R = crate::BitReader;
pub type TSOEN_R = crate::BitReader;
pub type DBGMEMA_R = crate::BitReader;
pub type AVSEL_R = crate::BitReader;
pub type HASHTBLSZ_R = crate::FieldReader;
pub type L3L4FNUM_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn rxfifosize(&self) -> RXFIFOSIZE_R {
RXFIFOSIZE_R::new((self.bits & 0x1f) as u8)
}
#[inline(always)]
pub fn txfifosize(&self) -> TXFIFOSIZE_R {
TXFIFOSIZE_R::new(((self.bits >> 6) & 0x1f) as u8)
}
#[inline(always)]
pub fn osten(&self) -> OSTEN_R {
OSTEN_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn ptoen(&self) -> PTOEN_R {
PTOEN_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn advthword(&self) -> ADVTHWORD_R {
ADVTHWORD_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn dcben(&self) -> DCBEN_R {
DCBEN_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn sphen(&self) -> SPHEN_R {
SPHEN_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn tsoen(&self) -> TSOEN_R {
TSOEN_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn dbgmema(&self) -> DBGMEMA_R {
DBGMEMA_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn avsel(&self) -> AVSEL_R {
AVSEL_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn hashtblsz(&self) -> HASHTBLSZ_R {
HASHTBLSZ_R::new(((self.bits >> 24) & 3) as u8)
}
#[inline(always)]
pub fn l3l4fnum(&self) -> L3L4FNUM_R {
L3L4FNUM_R::new(((self.bits >> 27) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACHWF1R")
.field("rxfifosize", &self.rxfifosize())
.field("txfifosize", &self.txfifosize())
.field("osten", &self.osten())
.field("ptoen", &self.ptoen())
.field("advthword", &self.advthword())
.field("dcben", &self.dcben())
.field("sphen", &self.sphen())
.field("tsoen", &self.tsoen())
.field("dbgmema", &self.dbgmema())
.field("avsel", &self.avsel())
.field("hashtblsz", &self.hashtblsz())
.field("l3l4fnum", &self.l3l4fnum())
.finish()
}
}
pub struct MACHWF1Rrs;
impl crate::RegisterSpec for MACHWF1Rrs {
type Ux = u32;
}
impl crate::Readable for MACHWF1Rrs {}
impl crate::Resettable for MACHWF1Rrs {
const RESET_VALUE: u32 = 0x1184_1904;
}