pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type DBGSLEEP_CD_R = crate::BitReader;
pub type DBGSLEEP_CD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTOP_CD_R = crate::BitReader;
pub type DBGSTOP_CD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTBY_CD_R = crate::BitReader;
pub type DBGSTBY_CD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTOP_SRD_R = crate::BitReader;
pub type DBGSTOP_SRD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTBY_SRD_R = crate::BitReader;
pub type DBGSTBY_SRD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TRACECLKEN_R = crate::BitReader;
pub type TRACECLKEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CDDBGCKEN_R = crate::BitReader;
pub type CDDBGCKEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SRDDBGCKEN_R = crate::BitReader;
pub type SRDDBGCKEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TRGOEN_R = crate::BitReader;
pub type TRGOEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dbgsleep_cd(&self) -> DBGSLEEP_CD_R {
DBGSLEEP_CD_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbgstop_cd(&self) -> DBGSTOP_CD_R {
DBGSTOP_CD_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbgstby_cd(&self) -> DBGSTBY_CD_R {
DBGSTBY_CD_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn dbgstop_srd(&self) -> DBGSTOP_SRD_R {
DBGSTOP_SRD_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn dbgstby_srd(&self) -> DBGSTBY_SRD_R {
DBGSTBY_SRD_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn traceclken(&self) -> TRACECLKEN_R {
TRACECLKEN_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn cddbgcken(&self) -> CDDBGCKEN_R {
CDDBGCKEN_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn srddbgcken(&self) -> SRDDBGCKEN_R {
SRDDBGCKEN_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn trgoen(&self) -> TRGOEN_R {
TRGOEN_R::new(((self.bits >> 28) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR")
.field("dbgsleep_cd", &self.dbgsleep_cd())
.field("dbgstop_cd", &self.dbgstop_cd())
.field("dbgstby_cd", &self.dbgstby_cd())
.field("dbgstop_srd", &self.dbgstop_srd())
.field("dbgstby_srd", &self.dbgstby_srd())
.field("traceclken", &self.traceclken())
.field("cddbgcken", &self.cddbgcken())
.field("srddbgcken", &self.srddbgcken())
.field("trgoen", &self.trgoen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbgsleep_cd(&mut self) -> DBGSLEEP_CD_W<CRrs> {
DBGSLEEP_CD_W::new(self, 0)
}
#[inline(always)]
pub fn dbgstop_cd(&mut self) -> DBGSTOP_CD_W<CRrs> {
DBGSTOP_CD_W::new(self, 1)
}
#[inline(always)]
pub fn dbgstby_cd(&mut self) -> DBGSTBY_CD_W<CRrs> {
DBGSTBY_CD_W::new(self, 2)
}
#[inline(always)]
pub fn dbgstop_srd(&mut self) -> DBGSTOP_SRD_W<CRrs> {
DBGSTOP_SRD_W::new(self, 7)
}
#[inline(always)]
pub fn dbgstby_srd(&mut self) -> DBGSTBY_SRD_W<CRrs> {
DBGSTBY_SRD_W::new(self, 8)
}
#[inline(always)]
pub fn traceclken(&mut self) -> TRACECLKEN_W<CRrs> {
TRACECLKEN_W::new(self, 20)
}
#[inline(always)]
pub fn cddbgcken(&mut self) -> CDDBGCKEN_W<CRrs> {
CDDBGCKEN_W::new(self, 21)
}
#[inline(always)]
pub fn srddbgcken(&mut self) -> SRDDBGCKEN_W<CRrs> {
SRDDBGCKEN_W::new(self, 22)
}
#[inline(always)]
pub fn trgoen(&mut self) -> TRGOEN_W<CRrs> {
TRGOEN_W::new(self, 28)
}
}
pub struct CRrs;
impl crate::RegisterSpec for CRrs {
type Ux = u32;
}
impl crate::Readable for CRrs {}
impl crate::Writable for CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRrs {}