pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type ECCSEIE_R = crate::BitReader;
pub type ECCSEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECCDEIE_R = crate::BitReader;
pub type ECCDEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECCDEBWIE_R = crate::BitReader;
pub type ECCDEBWIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECCELEN_R = crate::BitReader;
pub type ECCELEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn eccseie(&self) -> ECCSEIE_R {
ECCSEIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn eccdeie(&self) -> ECCDEIE_R {
ECCDEIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn eccdebwie(&self) -> ECCDEBWIE_R {
ECCDEBWIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn eccelen(&self) -> ECCELEN_R {
ECCELEN_R::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR")
.field("eccseie", &self.eccseie())
.field("eccdeie", &self.eccdeie())
.field("eccdebwie", &self.eccdebwie())
.field("eccelen", &self.eccelen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn eccseie(&mut self) -> ECCSEIE_W<CRrs> {
ECCSEIE_W::new(self, 2)
}
#[inline(always)]
pub fn eccdeie(&mut self) -> ECCDEIE_W<CRrs> {
ECCDEIE_W::new(self, 3)
}
#[inline(always)]
pub fn eccdebwie(&mut self) -> ECCDEBWIE_W<CRrs> {
ECCDEBWIE_W::new(self, 4)
}
#[inline(always)]
pub fn eccelen(&mut self) -> ECCELEN_W<CRrs> {
ECCELEN_W::new(self, 5)
}
}
pub struct CRrs;
impl crate::RegisterSpec for CRrs {
type Ux = u32;
}
impl crate::Readable for CRrs {}
impl crate::Writable for CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRrs {}