pub type R = crate::R<SRrs>;
pub type W = crate::W<SRrs>;
pub type EOP_R = crate::BitReader;
pub type EOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OPERR_R = crate::BitReader;
pub type OPERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PROGERR_R = crate::BitReader;
pub type PROGERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WRPERR_R = crate::BitReader;
pub type WRPERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PGAERR_R = crate::BitReader;
pub type PGAERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SIZERR_R = crate::BitReader;
pub type SIZERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PGSERR_R = crate::BitReader;
pub type PGSERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MISERR_R = crate::BitReader;
pub type MISERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FASTERR_R = crate::BitReader;
pub type FASTERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RDERR_R = crate::BitReader;
pub type RDERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OPTVERR_R = crate::BitReader;
pub type OPTVERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BSY_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn eop(&self) -> EOP_R {
EOP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn operr(&self) -> OPERR_R {
OPERR_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn progerr(&self) -> PROGERR_R {
PROGERR_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn wrperr(&self) -> WRPERR_R {
WRPERR_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pgaerr(&self) -> PGAERR_R {
PGAERR_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn sizerr(&self) -> SIZERR_R {
SIZERR_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pgserr(&self) -> PGSERR_R {
PGSERR_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn miserr(&self) -> MISERR_R {
MISERR_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn fasterr(&self) -> FASTERR_R {
FASTERR_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn rderr(&self) -> RDERR_R {
RDERR_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn optverr(&self) -> OPTVERR_R {
OPTVERR_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn bsy(&self) -> BSY_R {
BSY_R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("eop", &self.eop())
.field("operr", &self.operr())
.field("progerr", &self.progerr())
.field("wrperr", &self.wrperr())
.field("pgaerr", &self.pgaerr())
.field("sizerr", &self.sizerr())
.field("pgserr", &self.pgserr())
.field("miserr", &self.miserr())
.field("fasterr", &self.fasterr())
.field("rderr", &self.rderr())
.field("optverr", &self.optverr())
.field("bsy", &self.bsy())
.finish()
}
}
impl W {
#[inline(always)]
pub fn eop(&mut self) -> EOP_W<SRrs> {
EOP_W::new(self, 0)
}
#[inline(always)]
pub fn operr(&mut self) -> OPERR_W<SRrs> {
OPERR_W::new(self, 1)
}
#[inline(always)]
pub fn progerr(&mut self) -> PROGERR_W<SRrs> {
PROGERR_W::new(self, 3)
}
#[inline(always)]
pub fn wrperr(&mut self) -> WRPERR_W<SRrs> {
WRPERR_W::new(self, 4)
}
#[inline(always)]
pub fn pgaerr(&mut self) -> PGAERR_W<SRrs> {
PGAERR_W::new(self, 5)
}
#[inline(always)]
pub fn sizerr(&mut self) -> SIZERR_W<SRrs> {
SIZERR_W::new(self, 6)
}
#[inline(always)]
pub fn pgserr(&mut self) -> PGSERR_W<SRrs> {
PGSERR_W::new(self, 7)
}
#[inline(always)]
pub fn miserr(&mut self) -> MISERR_W<SRrs> {
MISERR_W::new(self, 8)
}
#[inline(always)]
pub fn fasterr(&mut self) -> FASTERR_W<SRrs> {
FASTERR_W::new(self, 9)
}
#[inline(always)]
pub fn rderr(&mut self) -> RDERR_W<SRrs> {
RDERR_W::new(self, 14)
}
#[inline(always)]
pub fn optverr(&mut self) -> OPTVERR_W<SRrs> {
OPTVERR_W::new(self, 15)
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Writable for SRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SRrs {}