pub type R = crate::R<CPUCRrs>;
pub type W = crate::W<CPUCRrs>;
pub type RETDS_CD_R = crate::BitReader;
pub type RETDS_CD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDDS_SRD_R = crate::BitReader;
pub type PDDS_SRD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type STOPF_R = crate::BitReader;
pub type SBF_R = crate::BitReader;
pub type CSSF_R = crate::BitReader;
pub type CSSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RUN_SRD_R = crate::BitReader;
pub type RUN_SRD_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn retds_cd(&self) -> RETDS_CD_R {
RETDS_CD_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pdds_srd(&self) -> PDDS_SRD_R {
PDDS_SRD_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn stopf(&self) -> STOPF_R {
STOPF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn sbf(&self) -> SBF_R {
SBF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn cssf(&self) -> CSSF_R {
CSSF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn run_srd(&self) -> RUN_SRD_R {
RUN_SRD_R::new(((self.bits >> 11) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CPUCR")
.field("retds_cd", &self.retds_cd())
.field("pdds_srd", &self.pdds_srd())
.field("stopf", &self.stopf())
.field("sbf", &self.sbf())
.field("cssf", &self.cssf())
.field("run_srd", &self.run_srd())
.finish()
}
}
impl W {
#[inline(always)]
pub fn retds_cd(&mut self) -> RETDS_CD_W<CPUCRrs> {
RETDS_CD_W::new(self, 0)
}
#[inline(always)]
pub fn pdds_srd(&mut self) -> PDDS_SRD_W<CPUCRrs> {
PDDS_SRD_W::new(self, 2)
}
#[inline(always)]
pub fn cssf(&mut self) -> CSSF_W<CPUCRrs> {
CSSF_W::new(self, 9)
}
#[inline(always)]
pub fn run_srd(&mut self) -> RUN_SRD_W<CPUCRrs> {
RUN_SRD_W::new(self, 11)
}
}
pub struct CPUCRrs;
impl crate::RegisterSpec for CPUCRrs {
type Ux = u32;
}
impl crate::Readable for CPUCRrs {}
impl crate::Writable for CPUCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CPUCRrs {}