pub type R = crate::R<CKGAENRrs>;
pub type W = crate::W<CKGAENRrs>;
pub type AXICKG_R = crate::BitReader;
pub type AXICKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AHBCKG_R = crate::BitReader;
pub type AHBCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CPUCKG_R = crate::BitReader;
pub type CPUCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SDMMCCKG_R = crate::BitReader;
pub type SDMMCCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MDMACKG_R = crate::BitReader;
pub type MDMACKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DMA2DCKG_R = crate::BitReader;
pub type DMA2DCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LTDCCKG_R = crate::BitReader;
pub type LTDCCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GFXMMUMCKG_R = crate::BitReader;
pub type GFXMMUMCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AHB12CKG_R = crate::BitReader;
pub type AHB12CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AHB34CKG_R = crate::BitReader;
pub type AHB34CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FLIFTCKG_R = crate::BitReader;
pub type FLIFTCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OCTOSPI2CKG_R = crate::BitReader;
pub type OCTOSPI2CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FMCCKG_R = crate::BitReader;
pub type FMCCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OCTOSPI1CKG_R = crate::BitReader;
pub type OCTOSPI1CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AXIRAM1CKG_R = crate::BitReader;
pub type AXIRAM1CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AXIRAM2CKG_R = crate::BitReader;
pub type AXIRAM2CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AXIRAM3CKG_R = crate::BitReader;
pub type AXIRAM3CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GFXMMUSCKG_R = crate::BitReader;
pub type GFXMMUSCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECCRAMCKG_R = crate::BitReader;
pub type ECCRAMCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EXTICKG_R = crate::BitReader;
pub type EXTICKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type JTAGCKG_R = crate::BitReader;
pub type JTAGCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn axickg(&self) -> AXICKG_R {
AXICKG_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ahbckg(&self) -> AHBCKG_R {
AHBCKG_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cpuckg(&self) -> CPUCKG_R {
CPUCKG_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn sdmmcckg(&self) -> SDMMCCKG_R {
SDMMCCKG_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn mdmackg(&self) -> MDMACKG_R {
MDMACKG_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn dma2dckg(&self) -> DMA2DCKG_R {
DMA2DCKG_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ltdcckg(&self) -> LTDCCKG_R {
LTDCCKG_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn gfxmmumckg(&self) -> GFXMMUMCKG_R {
GFXMMUMCKG_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn ahb12ckg(&self) -> AHB12CKG_R {
AHB12CKG_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn ahb34ckg(&self) -> AHB34CKG_R {
AHB34CKG_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn fliftckg(&self) -> FLIFTCKG_R {
FLIFTCKG_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn octospi2ckg(&self) -> OCTOSPI2CKG_R {
OCTOSPI2CKG_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn fmcckg(&self) -> FMCCKG_R {
FMCCKG_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn octospi1ckg(&self) -> OCTOSPI1CKG_R {
OCTOSPI1CKG_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn axiram1ckg(&self) -> AXIRAM1CKG_R {
AXIRAM1CKG_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn axiram2ckg(&self) -> AXIRAM2CKG_R {
AXIRAM2CKG_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn axiram3ckg(&self) -> AXIRAM3CKG_R {
AXIRAM3CKG_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn gfxmmusckg(&self) -> GFXMMUSCKG_R {
GFXMMUSCKG_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn eccramckg(&self) -> ECCRAMCKG_R {
ECCRAMCKG_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn extickg(&self) -> EXTICKG_R {
EXTICKG_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn jtagckg(&self) -> JTAGCKG_R {
JTAGCKG_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CKGAENR")
.field("axickg", &self.axickg())
.field("ahbckg", &self.ahbckg())
.field("cpuckg", &self.cpuckg())
.field("sdmmcckg", &self.sdmmcckg())
.field("mdmackg", &self.mdmackg())
.field("dma2dckg", &self.dma2dckg())
.field("ltdcckg", &self.ltdcckg())
.field("gfxmmumckg", &self.gfxmmumckg())
.field("ahb12ckg", &self.ahb12ckg())
.field("ahb34ckg", &self.ahb34ckg())
.field("fliftckg", &self.fliftckg())
.field("octospi2ckg", &self.octospi2ckg())
.field("fmcckg", &self.fmcckg())
.field("octospi1ckg", &self.octospi1ckg())
.field("axiram1ckg", &self.axiram1ckg())
.field("axiram2ckg", &self.axiram2ckg())
.field("axiram3ckg", &self.axiram3ckg())
.field("gfxmmusckg", &self.gfxmmusckg())
.field("eccramckg", &self.eccramckg())
.field("extickg", &self.extickg())
.field("jtagckg", &self.jtagckg())
.finish()
}
}
impl W {
#[inline(always)]
pub fn axickg(&mut self) -> AXICKG_W<CKGAENRrs> {
AXICKG_W::new(self, 0)
}
#[inline(always)]
pub fn ahbckg(&mut self) -> AHBCKG_W<CKGAENRrs> {
AHBCKG_W::new(self, 1)
}
#[inline(always)]
pub fn cpuckg(&mut self) -> CPUCKG_W<CKGAENRrs> {
CPUCKG_W::new(self, 2)
}
#[inline(always)]
pub fn sdmmcckg(&mut self) -> SDMMCCKG_W<CKGAENRrs> {
SDMMCCKG_W::new(self, 3)
}
#[inline(always)]
pub fn mdmackg(&mut self) -> MDMACKG_W<CKGAENRrs> {
MDMACKG_W::new(self, 4)
}
#[inline(always)]
pub fn dma2dckg(&mut self) -> DMA2DCKG_W<CKGAENRrs> {
DMA2DCKG_W::new(self, 5)
}
#[inline(always)]
pub fn ltdcckg(&mut self) -> LTDCCKG_W<CKGAENRrs> {
LTDCCKG_W::new(self, 6)
}
#[inline(always)]
pub fn gfxmmumckg(&mut self) -> GFXMMUMCKG_W<CKGAENRrs> {
GFXMMUMCKG_W::new(self, 7)
}
#[inline(always)]
pub fn ahb12ckg(&mut self) -> AHB12CKG_W<CKGAENRrs> {
AHB12CKG_W::new(self, 8)
}
#[inline(always)]
pub fn ahb34ckg(&mut self) -> AHB34CKG_W<CKGAENRrs> {
AHB34CKG_W::new(self, 9)
}
#[inline(always)]
pub fn fliftckg(&mut self) -> FLIFTCKG_W<CKGAENRrs> {
FLIFTCKG_W::new(self, 10)
}
#[inline(always)]
pub fn octospi2ckg(&mut self) -> OCTOSPI2CKG_W<CKGAENRrs> {
OCTOSPI2CKG_W::new(self, 11)
}
#[inline(always)]
pub fn fmcckg(&mut self) -> FMCCKG_W<CKGAENRrs> {
FMCCKG_W::new(self, 12)
}
#[inline(always)]
pub fn octospi1ckg(&mut self) -> OCTOSPI1CKG_W<CKGAENRrs> {
OCTOSPI1CKG_W::new(self, 13)
}
#[inline(always)]
pub fn axiram1ckg(&mut self) -> AXIRAM1CKG_W<CKGAENRrs> {
AXIRAM1CKG_W::new(self, 14)
}
#[inline(always)]
pub fn axiram2ckg(&mut self) -> AXIRAM2CKG_W<CKGAENRrs> {
AXIRAM2CKG_W::new(self, 15)
}
#[inline(always)]
pub fn axiram3ckg(&mut self) -> AXIRAM3CKG_W<CKGAENRrs> {
AXIRAM3CKG_W::new(self, 16)
}
#[inline(always)]
pub fn gfxmmusckg(&mut self) -> GFXMMUSCKG_W<CKGAENRrs> {
GFXMMUSCKG_W::new(self, 17)
}
#[inline(always)]
pub fn eccramckg(&mut self) -> ECCRAMCKG_W<CKGAENRrs> {
ECCRAMCKG_W::new(self, 29)
}
#[inline(always)]
pub fn extickg(&mut self) -> EXTICKG_W<CKGAENRrs> {
EXTICKG_W::new(self, 30)
}
#[inline(always)]
pub fn jtagckg(&mut self) -> JTAGCKG_W<CKGAENRrs> {
JTAGCKG_W::new(self, 31)
}
}
pub struct CKGAENRrs;
impl crate::RegisterSpec for CKGAENRrs {
type Ux = u32;
}
impl crate::Readable for CKGAENRrs {}
impl crate::Writable for CKGAENRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CKGAENRrs {}