pub type R = crate::R<CFGRrs>;
pub type W = crate::W<CFGRrs>;
pub type PVDL_R = crate::BitReader;
pub type PVDL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FLASHL_R = crate::BitReader;
pub type FLASHL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CM7L_R = crate::BitReader;
pub type CM7L_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BKRAML_R = crate::BitReader;
pub type BKRAML_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SRAM4L_R = crate::BitReader;
pub type SRAM4L_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SRAM2L_R = crate::BitReader;
pub type SRAM2L_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SRAM1L_R = crate::BitReader;
pub type SRAM1L_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DTCML_R = crate::BitReader;
pub type DTCML_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITCML_R = crate::BitReader;
pub type ITCML_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AXIRAML_R = crate::BitReader;
pub type AXIRAML_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pvdl(&self) -> PVDL_R {
PVDL_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn flashl(&self) -> FLASHL_R {
FLASHL_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cm7l(&self) -> CM7L_R {
CM7L_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn bkraml(&self) -> BKRAML_R {
BKRAML_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn sram4l(&self) -> SRAM4L_R {
SRAM4L_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn sram2l(&self) -> SRAM2L_R {
SRAM2L_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn sram1l(&self) -> SRAM1L_R {
SRAM1L_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn dtcml(&self) -> DTCML_R {
DTCML_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn itcml(&self) -> ITCML_R {
ITCML_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn axiraml(&self) -> AXIRAML_R {
AXIRAML_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CFGR")
.field("pvdl", &self.pvdl())
.field("flashl", &self.flashl())
.field("cm7l", &self.cm7l())
.field("bkraml", &self.bkraml())
.field("sram4l", &self.sram4l())
.field("sram2l", &self.sram2l())
.field("sram1l", &self.sram1l())
.field("dtcml", &self.dtcml())
.field("itcml", &self.itcml())
.field("axiraml", &self.axiraml())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pvdl(&mut self) -> PVDL_W<CFGRrs> {
PVDL_W::new(self, 2)
}
#[inline(always)]
pub fn flashl(&mut self) -> FLASHL_W<CFGRrs> {
FLASHL_W::new(self, 3)
}
#[inline(always)]
pub fn cm7l(&mut self) -> CM7L_W<CFGRrs> {
CM7L_W::new(self, 6)
}
#[inline(always)]
pub fn bkraml(&mut self) -> BKRAML_W<CFGRrs> {
BKRAML_W::new(self, 7)
}
#[inline(always)]
pub fn sram4l(&mut self) -> SRAM4L_W<CFGRrs> {
SRAM4L_W::new(self, 9)
}
#[inline(always)]
pub fn sram2l(&mut self) -> SRAM2L_W<CFGRrs> {
SRAM2L_W::new(self, 11)
}
#[inline(always)]
pub fn sram1l(&mut self) -> SRAM1L_W<CFGRrs> {
SRAM1L_W::new(self, 12)
}
#[inline(always)]
pub fn dtcml(&mut self) -> DTCML_W<CFGRrs> {
DTCML_W::new(self, 13)
}
#[inline(always)]
pub fn itcml(&mut self) -> ITCML_W<CFGRrs> {
ITCML_W::new(self, 14)
}
#[inline(always)]
pub fn axiraml(&mut self) -> AXIRAML_W<CFGRrs> {
AXIRAML_W::new(self, 15)
}
}
pub struct CFGRrs;
impl crate::RegisterSpec for CFGRrs {
type Ux = u32;
}
impl crate::Readable for CFGRrs {}
impl crate::Writable for CFGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CFGRrs {}