pub type R = crate::R<BKLOCKRrs>;
pub type W = crate::W<BKLOCKRrs>;
pub type PVD_BL_R = crate::BitReader;
pub type PVD_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FLASHECC_BL_R = crate::BitReader;
pub type FLASHECC_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CM7LCKUP_BL_R = crate::BitReader;
pub type CM7LCKUP_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BKRAMECC_BL_R = crate::BitReader;
pub type BKRAMECC_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DTCMECC_BL_R = crate::BitReader;
pub type DTCMECC_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITCMECC_BL_R = crate::BitReader;
pub type ITCMECC_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ARAM3ECC_BL_R = crate::BitReader;
pub type ARAM3ECC_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ARAM1ECC_BL_R = crate::BitReader;
pub type ARAM1ECC_BL_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pvd_bl(&self) -> PVD_BL_R {
PVD_BL_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn flashecc_bl(&self) -> FLASHECC_BL_R {
FLASHECC_BL_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cm7lckup_bl(&self) -> CM7LCKUP_BL_R {
CM7LCKUP_BL_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn bkramecc_bl(&self) -> BKRAMECC_BL_R {
BKRAMECC_BL_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn dtcmecc_bl(&self) -> DTCMECC_BL_R {
DTCMECC_BL_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn itcmecc_bl(&self) -> ITCMECC_BL_R {
ITCMECC_BL_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn aram3ecc_bl(&self) -> ARAM3ECC_BL_R {
ARAM3ECC_BL_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn aram1ecc_bl(&self) -> ARAM1ECC_BL_R {
ARAM1ECC_BL_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BKLOCKR")
.field("pvd_bl", &self.pvd_bl())
.field("flashecc_bl", &self.flashecc_bl())
.field("cm7lckup_bl", &self.cm7lckup_bl())
.field("bkramecc_bl", &self.bkramecc_bl())
.field("dtcmecc_bl", &self.dtcmecc_bl())
.field("itcmecc_bl", &self.itcmecc_bl())
.field("aram3ecc_bl", &self.aram3ecc_bl())
.field("aram1ecc_bl", &self.aram1ecc_bl())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pvd_bl(&mut self) -> PVD_BL_W<BKLOCKRrs> {
PVD_BL_W::new(self, 2)
}
#[inline(always)]
pub fn flashecc_bl(&mut self) -> FLASHECC_BL_W<BKLOCKRrs> {
FLASHECC_BL_W::new(self, 3)
}
#[inline(always)]
pub fn cm7lckup_bl(&mut self) -> CM7LCKUP_BL_W<BKLOCKRrs> {
CM7LCKUP_BL_W::new(self, 6)
}
#[inline(always)]
pub fn bkramecc_bl(&mut self) -> BKRAMECC_BL_W<BKLOCKRrs> {
BKRAMECC_BL_W::new(self, 7)
}
#[inline(always)]
pub fn dtcmecc_bl(&mut self) -> DTCMECC_BL_W<BKLOCKRrs> {
DTCMECC_BL_W::new(self, 13)
}
#[inline(always)]
pub fn itcmecc_bl(&mut self) -> ITCMECC_BL_W<BKLOCKRrs> {
ITCMECC_BL_W::new(self, 14)
}
#[inline(always)]
pub fn aram3ecc_bl(&mut self) -> ARAM3ECC_BL_W<BKLOCKRrs> {
ARAM3ECC_BL_W::new(self, 21)
}
#[inline(always)]
pub fn aram1ecc_bl(&mut self) -> ARAM1ECC_BL_W<BKLOCKRrs> {
ARAM1ECC_BL_W::new(self, 23)
}
}
pub struct BKLOCKRrs;
impl crate::RegisterSpec for BKLOCKRrs {
type Ux = u32;
}
impl crate::Readable for BKLOCKRrs {}
impl crate::Writable for BKLOCKRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BKLOCKRrs {
const RESET_VALUE: u32 = 0x88;
}