pub type R = crate::R<PCRrs>;
pub type W = crate::W<PCRrs>;
pub type ETTXE_R = crate::BitReader;
pub type ETTXE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ETRXE_R = crate::BitReader;
pub type ETRXE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BTAE_R = crate::BitReader;
pub type BTAE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECCRXE_R = crate::BitReader;
pub type ECCRXE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CRCRXE_R = crate::BitReader;
pub type CRCRXE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ettxe(&self) -> ETTXE_R {
ETTXE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn etrxe(&self) -> ETRXE_R {
ETRXE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn btae(&self) -> BTAE_R {
BTAE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn eccrxe(&self) -> ECCRXE_R {
ECCRXE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn crcrxe(&self) -> CRCRXE_R {
CRCRXE_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PCR")
.field("ettxe", &self.ettxe())
.field("etrxe", &self.etrxe())
.field("btae", &self.btae())
.field("eccrxe", &self.eccrxe())
.field("crcrxe", &self.crcrxe())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ettxe(&mut self) -> ETTXE_W<PCRrs> {
ETTXE_W::new(self, 0)
}
#[inline(always)]
pub fn etrxe(&mut self) -> ETRXE_W<PCRrs> {
ETRXE_W::new(self, 1)
}
#[inline(always)]
pub fn btae(&mut self) -> BTAE_W<PCRrs> {
BTAE_W::new(self, 2)
}
#[inline(always)]
pub fn eccrxe(&mut self) -> ECCRXE_W<PCRrs> {
ECCRXE_W::new(self, 3)
}
#[inline(always)]
pub fn crcrxe(&mut self) -> CRCRXE_W<PCRrs> {
CRCRXE_W::new(self, 4)
}
}
pub struct PCRrs;
impl crate::RegisterSpec for PCRrs {
type Ux = u32;
}
impl crate::Readable for PCRrs {}
impl crate::Writable for PCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PCRrs {}