pub type R = crate::R<CPU2CRrs>;
pub type W = crate::W<CPU2CRrs>;
pub type PDDS_D1_R = crate::BitReader;
pub type PDDS_D1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDDS_D2_R = crate::BitReader;
pub type PDDS_D2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDDS_D3_R = crate::BitReader;
pub type PDDS_D3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HOLD1F_R = crate::BitReader;
pub type HOLD1F_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type STOPF_R = crate::BitReader;
pub type STOPF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SBF_R = crate::BitReader;
pub type SBF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SBF_D1_R = crate::BitReader;
pub type SBF_D1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SBF_D2_R = crate::BitReader;
pub type SBF_D2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSSF_R = crate::BitReader;
pub type CSSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HOLD1_R = crate::BitReader;
pub type HOLD1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RUN_D3_R = crate::BitReader;
pub type RUN_D3_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pdds_d1(&self) -> PDDS_D1_R {
PDDS_D1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pdds_d2(&self) -> PDDS_D2_R {
PDDS_D2_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pdds_d3(&self) -> PDDS_D3_R {
PDDS_D3_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn hold1f(&self) -> HOLD1F_R {
HOLD1F_R::new(((self.bits >> 4) & 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 sbf_d1(&self) -> SBF_D1_R {
SBF_D1_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn sbf_d2(&self) -> SBF_D2_R {
SBF_D2_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn cssf(&self) -> CSSF_R {
CSSF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hold1(&self) -> HOLD1_R {
HOLD1_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn run_d3(&self) -> RUN_D3_R {
RUN_D3_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("CPU2CR")
.field("pdds_d1", &self.pdds_d1())
.field("pdds_d2", &self.pdds_d2())
.field("pdds_d3", &self.pdds_d3())
.field("hold1f", &self.hold1f())
.field("stopf", &self.stopf())
.field("sbf", &self.sbf())
.field("sbf_d1", &self.sbf_d1())
.field("sbf_d2", &self.sbf_d2())
.field("cssf", &self.cssf())
.field("hold1", &self.hold1())
.field("run_d3", &self.run_d3())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pdds_d1(&mut self) -> PDDS_D1_W<CPU2CRrs> {
PDDS_D1_W::new(self, 0)
}
#[inline(always)]
pub fn pdds_d2(&mut self) -> PDDS_D2_W<CPU2CRrs> {
PDDS_D2_W::new(self, 1)
}
#[inline(always)]
pub fn pdds_d3(&mut self) -> PDDS_D3_W<CPU2CRrs> {
PDDS_D3_W::new(self, 2)
}
#[inline(always)]
pub fn hold1f(&mut self) -> HOLD1F_W<CPU2CRrs> {
HOLD1F_W::new(self, 4)
}
#[inline(always)]
pub fn stopf(&mut self) -> STOPF_W<CPU2CRrs> {
STOPF_W::new(self, 5)
}
#[inline(always)]
pub fn sbf(&mut self) -> SBF_W<CPU2CRrs> {
SBF_W::new(self, 6)
}
#[inline(always)]
pub fn sbf_d1(&mut self) -> SBF_D1_W<CPU2CRrs> {
SBF_D1_W::new(self, 7)
}
#[inline(always)]
pub fn sbf_d2(&mut self) -> SBF_D2_W<CPU2CRrs> {
SBF_D2_W::new(self, 8)
}
#[inline(always)]
pub fn cssf(&mut self) -> CSSF_W<CPU2CRrs> {
CSSF_W::new(self, 9)
}
#[inline(always)]
pub fn hold1(&mut self) -> HOLD1_W<CPU2CRrs> {
HOLD1_W::new(self, 10)
}
#[inline(always)]
pub fn run_d3(&mut self) -> RUN_D3_W<CPU2CRrs> {
RUN_D3_W::new(self, 11)
}
}
pub struct CPU2CRrs;
impl crate::RegisterSpec for CPU2CRrs {
type Ux = u32;
}
impl crate::Readable for CPU2CRrs {}
impl crate::Writable for CPU2CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CPU2CRrs {}