pub type R = crate::R<DBGCRrs>;
pub type W = crate::W<DBGCRrs>;
pub type AP_UNLOCK_R = crate::FieldReader;
pub type AP_UNLOCK_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type DBG_UNLOCK_R = crate::FieldReader;
pub type DBG_UNLOCK_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type DBG_AUTH_HDPL_R = crate::FieldReader;
pub type DBG_AUTH_HDPL_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn ap_unlock(&self) -> AP_UNLOCK_R {
AP_UNLOCK_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn dbg_unlock(&self) -> DBG_UNLOCK_R {
DBG_UNLOCK_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn dbg_auth_hdpl(&self) -> DBG_AUTH_HDPL_R {
DBG_AUTH_HDPL_R::new(((self.bits >> 16) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DBGCR")
.field("ap_unlock", &self.ap_unlock())
.field("dbg_unlock", &self.dbg_unlock())
.field("dbg_auth_hdpl", &self.dbg_auth_hdpl())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ap_unlock(&mut self) -> AP_UNLOCK_W<DBGCRrs> {
AP_UNLOCK_W::new(self, 0)
}
#[inline(always)]
pub fn dbg_unlock(&mut self) -> DBG_UNLOCK_W<DBGCRrs> {
DBG_UNLOCK_W::new(self, 8)
}
#[inline(always)]
pub fn dbg_auth_hdpl(&mut self) -> DBG_AUTH_HDPL_W<DBGCRrs> {
DBG_AUTH_HDPL_W::new(self, 16)
}
}
pub struct DBGCRrs;
impl crate::RegisterSpec for DBGCRrs {
type Ux = u32;
}
impl crate::Readable for DBGCRrs {}
impl crate::Writable for DBGCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DBGCRrs {}