pub type R = crate::R<MACFCRrs>;
pub type W = crate::W<MACFCRrs>;
pub type FCB_R = crate::BitReader;
pub type FCB_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TFCE_R = crate::BitReader;
pub type TFCE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFCE_R = crate::BitReader;
pub type RFCE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UPFD_R = crate::BitReader;
pub type UPFD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PLT_R = crate::FieldReader;
pub type PLT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type ZQPD_R = crate::BitReader;
pub type ZQPD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PT_R = crate::FieldReader<u16>;
pub type PT_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn fcb(&self) -> FCB_R {
FCB_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tfce(&self) -> TFCE_R {
TFCE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rfce(&self) -> RFCE_R {
RFCE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn upfd(&self) -> UPFD_R {
UPFD_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn plt(&self) -> PLT_R {
PLT_R::new(((self.bits >> 4) & 3) as u8)
}
#[inline(always)]
pub fn zqpd(&self) -> ZQPD_R {
ZQPD_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn pt(&self) -> PT_R {
PT_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACFCR")
.field("fcb", &self.fcb())
.field("tfce", &self.tfce())
.field("rfce", &self.rfce())
.field("upfd", &self.upfd())
.field("plt", &self.plt())
.field("zqpd", &self.zqpd())
.field("pt", &self.pt())
.finish()
}
}
impl W {
#[inline(always)]
pub fn fcb(&mut self) -> FCB_W<MACFCRrs> {
FCB_W::new(self, 0)
}
#[inline(always)]
pub fn tfce(&mut self) -> TFCE_W<MACFCRrs> {
TFCE_W::new(self, 1)
}
#[inline(always)]
pub fn rfce(&mut self) -> RFCE_W<MACFCRrs> {
RFCE_W::new(self, 2)
}
#[inline(always)]
pub fn upfd(&mut self) -> UPFD_W<MACFCRrs> {
UPFD_W::new(self, 3)
}
#[inline(always)]
pub fn plt(&mut self) -> PLT_W<MACFCRrs> {
PLT_W::new(self, 4)
}
#[inline(always)]
pub fn zqpd(&mut self) -> ZQPD_W<MACFCRrs> {
ZQPD_W::new(self, 7)
}
#[inline(always)]
pub fn pt(&mut self) -> PT_W<MACFCRrs> {
PT_W::new(self, 16)
}
}
pub struct MACFCRrs;
impl crate::RegisterSpec for MACFCRrs {
type Ux = u32;
}
impl crate::Readable for MACFCRrs {}
impl crate::Writable for MACFCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACFCRrs {}