pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type DBGSLEEP_D1_R = crate::BitReader;
pub type DBGSLEEP_D1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTOP_D1_R = crate::BitReader;
pub type DBGSTOP_D1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTBY_D1_R = crate::BitReader;
pub type DBGSTBY_D1_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 D3DBGCKEN_R = crate::BitReader;
pub type D3DBGCKEN_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_d1(&self) -> DBGSLEEP_D1_R {
DBGSLEEP_D1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbgstop_d1(&self) -> DBGSTOP_D1_R {
DBGSTOP_D1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbgstby_d1(&self) -> DBGSTBY_D1_R {
DBGSTBY_D1_R::new(((self.bits >> 2) & 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 d3dbgcken(&self) -> D3DBGCKEN_R {
D3DBGCKEN_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_d1", &self.dbgsleep_d1())
.field("dbgstop_d1", &self.dbgstop_d1())
.field("dbgstby_d1", &self.dbgstby_d1())
.field("traceclken", &self.traceclken())
.field("d1dbgcken", &self.d1dbgcken())
.field("d3dbgcken", &self.d3dbgcken())
.field("trgoen", &self.trgoen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbgsleep_d1(&mut self) -> DBGSLEEP_D1_W<CRrs> {
DBGSLEEP_D1_W::new(self, 0)
}
#[inline(always)]
pub fn dbgstop_d1(&mut self) -> DBGSTOP_D1_W<CRrs> {
DBGSTOP_D1_W::new(self, 1)
}
#[inline(always)]
pub fn dbgstby_d1(&mut self) -> DBGSTBY_D1_W<CRrs> {
DBGSTBY_D1_W::new(self, 2)
}
#[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 d3dbgcken(&mut self) -> D3DBGCKEN_W<CRrs> {
D3DBGCKEN_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 {}