pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type DBGSLPD1_R = crate::BitReader;
pub type DBGSLPD1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTPD1_R = crate::BitReader;
pub type DBGSTPD1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTBD1_R = crate::BitReader;
pub type DBGSTBD1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSLPD2_R = crate::BitReader;
pub type DBGSLPD2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTPD2_R = crate::BitReader;
pub type DBGSTPD2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTBD2_R = crate::BitReader;
pub type DBGSTBD2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTPD3_R = crate::BitReader;
pub type DBGSTPD3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBGSTBD3_R = crate::BitReader;
pub type DBGSTBD3_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 dbgslpd1(&self) -> DBGSLPD1_R {
DBGSLPD1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dbgstpd1(&self) -> DBGSTPD1_R {
DBGSTPD1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dbgstbd1(&self) -> DBGSTBD1_R {
DBGSTBD1_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn dbgslpd2(&self) -> DBGSLPD2_R {
DBGSLPD2_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn dbgstpd2(&self) -> DBGSTPD2_R {
DBGSTPD2_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn dbgstbd2(&self) -> DBGSTBD2_R {
DBGSTBD2_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn dbgstpd3(&self) -> DBGSTPD3_R {
DBGSTPD3_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn dbgstbd3(&self) -> DBGSTBD3_R {
DBGSTBD3_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 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("dbgslpd1", &self.dbgslpd1())
.field("dbgstpd1", &self.dbgstpd1())
.field("dbgstbd1", &self.dbgstbd1())
.field("dbgslpd2", &self.dbgslpd2())
.field("dbgstpd2", &self.dbgstpd2())
.field("dbgstbd2", &self.dbgstbd2())
.field("dbgstpd3", &self.dbgstpd3())
.field("dbgstbd3", &self.dbgstbd3())
.field("traceclken", &self.traceclken())
.field("d1dbgcken", &self.d1dbgcken())
.field("d3dbgcken", &self.d3dbgcken())
.field("trgoen", &self.trgoen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbgslpd1(&mut self) -> DBGSLPD1_W<CRrs> {
DBGSLPD1_W::new(self, 0)
}
#[inline(always)]
pub fn dbgstpd1(&mut self) -> DBGSTPD1_W<CRrs> {
DBGSTPD1_W::new(self, 1)
}
#[inline(always)]
pub fn dbgstbd1(&mut self) -> DBGSTBD1_W<CRrs> {
DBGSTBD1_W::new(self, 2)
}
#[inline(always)]
pub fn dbgslpd2(&mut self) -> DBGSLPD2_W<CRrs> {
DBGSLPD2_W::new(self, 3)
}
#[inline(always)]
pub fn dbgstpd2(&mut self) -> DBGSTPD2_W<CRrs> {
DBGSTPD2_W::new(self, 4)
}
#[inline(always)]
pub fn dbgstbd2(&mut self) -> DBGSTBD2_W<CRrs> {
DBGSTBD2_W::new(self, 5)
}
#[inline(always)]
pub fn dbgstpd3(&mut self) -> DBGSTPD3_W<CRrs> {
DBGSTPD3_W::new(self, 7)
}
#[inline(always)]
pub fn dbgstbd3(&mut self) -> DBGSTBD3_W<CRrs> {
DBGSTBD3_W::new(self, 8)
}
#[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 {}