pub type R = crate::R<MACMDIOARrs>;
pub type W = crate::W<MACMDIOARrs>;
pub type GB_R = crate::BitReader;
pub type GB_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type C45E_R = crate::BitReader;
pub type C45E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GOC_R = crate::FieldReader;
pub type GOC_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type SKAP_R = crate::BitReader;
pub type SKAP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CR_R = crate::FieldReader;
pub type CR_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type NTC_R = crate::FieldReader;
pub type NTC_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type RDA_R = crate::FieldReader;
pub type RDA_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type PA_R = crate::FieldReader;
pub type PA_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type BTB_R = crate::BitReader;
pub type BTB_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PSE_R = crate::BitReader;
pub type PSE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn gb(&self) -> GB_R {
GB_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn c45e(&self) -> C45E_R {
C45E_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn goc(&self) -> GOC_R {
GOC_R::new(((self.bits >> 2) & 3) as u8)
}
#[inline(always)]
pub fn skap(&self) -> SKAP_R {
SKAP_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn cr(&self) -> CR_R {
CR_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn ntc(&self) -> NTC_R {
NTC_R::new(((self.bits >> 12) & 7) as u8)
}
#[inline(always)]
pub fn rda(&self) -> RDA_R {
RDA_R::new(((self.bits >> 16) & 0x1f) as u8)
}
#[inline(always)]
pub fn pa(&self) -> PA_R {
PA_R::new(((self.bits >> 21) & 0x1f) as u8)
}
#[inline(always)]
pub fn btb(&self) -> BTB_R {
BTB_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn pse(&self) -> PSE_R {
PSE_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACMDIOAR")
.field("gb", &self.gb())
.field("c45e", &self.c45e())
.field("goc", &self.goc())
.field("skap", &self.skap())
.field("cr", &self.cr())
.field("ntc", &self.ntc())
.field("rda", &self.rda())
.field("pa", &self.pa())
.field("btb", &self.btb())
.field("pse", &self.pse())
.finish()
}
}
impl W {
#[inline(always)]
pub fn gb(&mut self) -> GB_W<MACMDIOARrs> {
GB_W::new(self, 0)
}
#[inline(always)]
pub fn c45e(&mut self) -> C45E_W<MACMDIOARrs> {
C45E_W::new(self, 1)
}
#[inline(always)]
pub fn goc(&mut self) -> GOC_W<MACMDIOARrs> {
GOC_W::new(self, 2)
}
#[inline(always)]
pub fn skap(&mut self) -> SKAP_W<MACMDIOARrs> {
SKAP_W::new(self, 4)
}
#[inline(always)]
pub fn cr(&mut self) -> CR_W<MACMDIOARrs> {
CR_W::new(self, 8)
}
#[inline(always)]
pub fn ntc(&mut self) -> NTC_W<MACMDIOARrs> {
NTC_W::new(self, 12)
}
#[inline(always)]
pub fn rda(&mut self) -> RDA_W<MACMDIOARrs> {
RDA_W::new(self, 16)
}
#[inline(always)]
pub fn pa(&mut self) -> PA_W<MACMDIOARrs> {
PA_W::new(self, 21)
}
#[inline(always)]
pub fn btb(&mut self) -> BTB_W<MACMDIOARrs> {
BTB_W::new(self, 26)
}
#[inline(always)]
pub fn pse(&mut self) -> PSE_W<MACMDIOARrs> {
PSE_W::new(self, 27)
}
}
pub struct MACMDIOARrs;
impl crate::RegisterSpec for MACMDIOARrs {
type Ux = u32;
}
impl crate::Readable for MACMDIOARrs {}
impl crate::Writable for MACMDIOARrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACMDIOARrs {}