pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type EN_R = crate::BitReader;
pub type EN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type START_R = crate::BitReader;
pub type START_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MODE_R = crate::FieldReader;
pub type MODE_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
pub type PROCENDIE_R = crate::BitReader;
pub type PROCENDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RAMERRIE_R = crate::BitReader;
pub type RAMERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ADDRERRIE_R = crate::BitReader;
pub type ADDRERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OPERRIE_R = crate::BitReader;
pub type OPERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn en(&self) -> EN_R {
EN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn start(&self) -> START_R {
START_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn mode(&self) -> MODE_R {
MODE_R::new(((self.bits >> 8) & 0x3f) as u8)
}
#[inline(always)]
pub fn procendie(&self) -> PROCENDIE_R {
PROCENDIE_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn ramerrie(&self) -> RAMERRIE_R {
RAMERRIE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn addrerrie(&self) -> ADDRERRIE_R {
ADDRERRIE_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn operrie(&self) -> OPERRIE_R {
OPERRIE_R::new(((self.bits >> 21) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR")
.field("en", &self.en())
.field("start", &self.start())
.field("mode", &self.mode())
.field("procendie", &self.procendie())
.field("ramerrie", &self.ramerrie())
.field("addrerrie", &self.addrerrie())
.field("operrie", &self.operrie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn en(&mut self) -> EN_W<CRrs> {
EN_W::new(self, 0)
}
#[inline(always)]
pub fn start(&mut self) -> START_W<CRrs> {
START_W::new(self, 1)
}
#[inline(always)]
pub fn mode(&mut self) -> MODE_W<CRrs> {
MODE_W::new(self, 8)
}
#[inline(always)]
pub fn procendie(&mut self) -> PROCENDIE_W<CRrs> {
PROCENDIE_W::new(self, 17)
}
#[inline(always)]
pub fn ramerrie(&mut self) -> RAMERRIE_W<CRrs> {
RAMERRIE_W::new(self, 19)
}
#[inline(always)]
pub fn addrerrie(&mut self) -> ADDRERRIE_W<CRrs> {
ADDRERRIE_W::new(self, 20)
}
#[inline(always)]
pub fn operrie(&mut self) -> OPERRIE_W<CRrs> {
OPERRIE_W::new(self, 21)
}
}
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 {}