pub type R = crate::R<SRrs>;
pub type W = crate::W<SRrs>;
pub type BSY_R = crate::BitReader;
pub type BSY_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WBNE_R = crate::BitReader;
pub type WBNE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type QW_R = crate::BitReader;
pub type QW_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CRC_BUSY_R = crate::BitReader;
pub type CRC_BUSY_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EOP_R = crate::BitReader;
pub type EOP_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 PGSERR_R = crate::BitReader;
pub type PGSERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type STRBERR_R = crate::BitReader;
pub type STRBERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type INCERR_R = crate::BitReader;
pub type INCERR_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 RDPERR_R = crate::BitReader;
pub type RDPERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RDSERR_R = crate::BitReader;
pub type RDSERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SNECCERR_R = crate::BitReader;
pub type SNECCERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBECCERR_R = crate::BitReader;
pub type DBECCERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CRCEND_R = crate::BitReader;
pub type CRCEND_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn bsy(&self) -> BSY_R {
BSY_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn wbne(&self) -> WBNE_R {
WBNE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn qw(&self) -> QW_R {
QW_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn crc_busy(&self) -> CRC_BUSY_R {
CRC_BUSY_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn eop(&self) -> EOP_R {
EOP_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn wrperr(&self) -> WRPERR_R {
WRPERR_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn pgserr(&self) -> PGSERR_R {
PGSERR_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn strberr(&self) -> STRBERR_R {
STRBERR_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn incerr(&self) -> INCERR_R {
INCERR_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn operr(&self) -> OPERR_R {
OPERR_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn rdperr(&self) -> RDPERR_R {
RDPERR_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn rdserr(&self) -> RDSERR_R {
RDSERR_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn sneccerr(&self) -> SNECCERR_R {
SNECCERR_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn dbeccerr(&self) -> DBECCERR_R {
DBECCERR_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn crcend(&self) -> CRCEND_R {
CRCEND_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("bsy", &self.bsy())
.field("wbne", &self.wbne())
.field("qw", &self.qw())
.field("crc_busy", &self.crc_busy())
.field("eop", &self.eop())
.field("wrperr", &self.wrperr())
.field("pgserr", &self.pgserr())
.field("strberr", &self.strberr())
.field("incerr", &self.incerr())
.field("operr", &self.operr())
.field("rdperr", &self.rdperr())
.field("rdserr", &self.rdserr())
.field("sneccerr", &self.sneccerr())
.field("dbeccerr", &self.dbeccerr())
.field("crcend", &self.crcend())
.finish()
}
}
impl W {
#[inline(always)]
pub fn bsy(&mut self) -> BSY_W<SRrs> {
BSY_W::new(self, 0)
}
#[inline(always)]
pub fn wbne(&mut self) -> WBNE_W<SRrs> {
WBNE_W::new(self, 1)
}
#[inline(always)]
pub fn qw(&mut self) -> QW_W<SRrs> {
QW_W::new(self, 2)
}
#[inline(always)]
pub fn crc_busy(&mut self) -> CRC_BUSY_W<SRrs> {
CRC_BUSY_W::new(self, 3)
}
#[inline(always)]
pub fn eop(&mut self) -> EOP_W<SRrs> {
EOP_W::new(self, 16)
}
#[inline(always)]
pub fn wrperr(&mut self) -> WRPERR_W<SRrs> {
WRPERR_W::new(self, 17)
}
#[inline(always)]
pub fn pgserr(&mut self) -> PGSERR_W<SRrs> {
PGSERR_W::new(self, 18)
}
#[inline(always)]
pub fn strberr(&mut self) -> STRBERR_W<SRrs> {
STRBERR_W::new(self, 19)
}
#[inline(always)]
pub fn incerr(&mut self) -> INCERR_W<SRrs> {
INCERR_W::new(self, 21)
}
#[inline(always)]
pub fn operr(&mut self) -> OPERR_W<SRrs> {
OPERR_W::new(self, 22)
}
#[inline(always)]
pub fn rdperr(&mut self) -> RDPERR_W<SRrs> {
RDPERR_W::new(self, 23)
}
#[inline(always)]
pub fn rdserr(&mut self) -> RDSERR_W<SRrs> {
RDSERR_W::new(self, 24)
}
#[inline(always)]
pub fn sneccerr(&mut self) -> SNECCERR_W<SRrs> {
SNECCERR_W::new(self, 25)
}
#[inline(always)]
pub fn dbeccerr(&mut self) -> DBECCERR_W<SRrs> {
DBECCERR_W::new(self, 26)
}
#[inline(always)]
pub fn crcend(&mut self) -> CRCEND_W<SRrs> {
CRCEND_W::new(self, 27)
}
}
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 {}