pub type R = crate::R<SRrs>;
pub type INITOK_R = crate::BitReader;
pub type LMF_R = crate::BitReader;
pub type BUSY_R = crate::BitReader;
pub type PROCENDF_R = crate::BitReader;
pub type RAMERRF_R = crate::BitReader;
pub type ADDRERRF_R = crate::BitReader;
pub type OPERRF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn initok(&self) -> INITOK_R {
INITOK_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn lmf(&self) -> LMF_R {
LMF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn busy(&self) -> BUSY_R {
BUSY_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn procendf(&self) -> PROCENDF_R {
PROCENDF_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn ramerrf(&self) -> RAMERRF_R {
RAMERRF_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn addrerrf(&self) -> ADDRERRF_R {
ADDRERRF_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn operrf(&self) -> OPERRF_R {
OPERRF_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("SR")
.field("initok", &self.initok())
.field("lmf", &self.lmf())
.field("busy", &self.busy())
.field("procendf", &self.procendf())
.field("ramerrf", &self.ramerrf())
.field("addrerrf", &self.addrerrf())
.field("operrf", &self.operrf())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {}