pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type DBGSLEEP_R = crate::BitReader;
pub type DBGSLEEP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTOP_R = crate::BitReader;
pub type DBGSTOP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTBY_R = crate::BitReader;
pub type DBGSTBY_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DCRT_R = crate::BitReader;
pub type DCRT_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 D1DBGCKEN_R = crate::BitReader;
pub type D1DBGCKEN_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(&self) -> DBGSLEEP_R {
DBGSLEEP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbgstop(&self) -> DBGSTOP_R {
DBGSTOP_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbgstby(&self) -> DBGSTBY_R {
DBGSTBY_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn dcrt(&self) -> DCRT_R {
DCRT_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn traceclken(&self) -> TRACECLKEN_R {
TRACECLKEN_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn d1dbgcken(&self) -> D1DBGCKEN_R {
D1DBGCKEN_R::new(((self.bits >> 21) & 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", &self.dbgsleep())
.field("dbgstop", &self.dbgstop())
.field("dbgstby", &self.dbgstby())
.field("dcrt", &self.dcrt())
.field("traceclken", &self.traceclken())
.field("d1dbgcken", &self.d1dbgcken())
.field("trgoen", &self.trgoen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbgsleep(&mut self) -> DBGSLEEP_W<CRrs> {
DBGSLEEP_W::new(self, 0)
}
#[inline(always)]
pub fn dbgstop(&mut self) -> DBGSTOP_W<CRrs> {
DBGSTOP_W::new(self, 1)
}
#[inline(always)]
pub fn dbgstby(&mut self) -> DBGSTBY_W<CRrs> {
DBGSTBY_W::new(self, 2)
}
#[inline(always)]
pub fn dcrt(&mut self) -> DCRT_W<CRrs> {
DCRT_W::new(self, 16)
}
#[inline(always)]
pub fn traceclken(&mut self) -> TRACECLKEN_W<CRrs> {
TRACECLKEN_W::new(self, 20)
}
#[inline(always)]
pub fn d1dbgcken(&mut self) -> D1DBGCKEN_W<CRrs> {
D1DBGCKEN_W::new(self, 21)
}
#[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 {}