pub type R = crate::R<CKGDISRrs>;
pub type W = crate::W<CKGDISRrs>;
pub type AXICKG_R = crate::BitReader;
pub type AXICKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AHBMCKG_R = crate::BitReader;
pub type AHBMCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SDMMC1CKG_R = crate::BitReader;
pub type SDMMC1CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HPDMA1CKG_R = crate::BitReader;
pub type HPDMA1CKG_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 GPUS0CKG_R = crate::BitReader;
pub type GPUS0CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GPUS1CKG_R = crate::BitReader;
pub type GPUS1CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GPUCLCKG_R = crate::BitReader;
pub type GPUCLCKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DCMIPPCKG_R = crate::BitReader;
pub type DCMIPPCKG_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 GFXMMUSCKG_R = crate::BitReader;
pub type GFXMMUSCKG_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 AHBSCKG_R = crate::BitReader;
pub type AHBSCKG_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 XSPI1CKG_R = crate::BitReader;
pub type XSPI1CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type XSPI2CKG_R = crate::BitReader;
pub type XSPI2CKG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AXIRAM4CKG_R = crate::BitReader;
pub type AXIRAM4CKG_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 AXIRAM2CKG_R = crate::BitReader;
pub type AXIRAM2CKG_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 FLITFCKG_R = crate::BitReader;
pub type FLITFCKG_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 ahbmckg(&self) -> AHBMCKG_R {
AHBMCKG_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn sdmmc1ckg(&self) -> SDMMC1CKG_R {
SDMMC1CKG_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn hpdma1ckg(&self) -> HPDMA1CKG_R {
HPDMA1CKG_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cpuckg(&self) -> CPUCKG_R {
CPUCKG_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn gpus0ckg(&self) -> GPUS0CKG_R {
GPUS0CKG_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn gpus1ckg(&self) -> GPUS1CKG_R {
GPUS1CKG_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn gpuclckg(&self) -> GPUCLCKG_R {
GPUCLCKG_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn dcmippckg(&self) -> DCMIPPCKG_R {
DCMIPPCKG_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn dma2dckg(&self) -> DMA2DCKG_R {
DMA2DCKG_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn gfxmmusckg(&self) -> GFXMMUSCKG_R {
GFXMMUSCKG_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn ltdcckg(&self) -> LTDCCKG_R {
LTDCCKG_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn gfxmmumckg(&self) -> GFXMMUMCKG_R {
GFXMMUMCKG_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn ahbsckg(&self) -> AHBSCKG_R {
AHBSCKG_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn fmcckg(&self) -> FMCCKG_R {
FMCCKG_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn xspi1ckg(&self) -> XSPI1CKG_R {
XSPI1CKG_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn xspi2ckg(&self) -> XSPI2CKG_R {
XSPI2CKG_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn axiram4ckg(&self) -> AXIRAM4CKG_R {
AXIRAM4CKG_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn axiram3ckg(&self) -> AXIRAM3CKG_R {
AXIRAM3CKG_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn axiram2ckg(&self) -> AXIRAM2CKG_R {
AXIRAM2CKG_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn axiram1ckg(&self) -> AXIRAM1CKG_R {
AXIRAM1CKG_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn flitfckg(&self) -> FLITFCKG_R {
FLITFCKG_R::new(((self.bits >> 21) & 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("CKGDISR")
.field("axickg", &self.axickg())
.field("ahbmckg", &self.ahbmckg())
.field("sdmmc1ckg", &self.sdmmc1ckg())
.field("hpdma1ckg", &self.hpdma1ckg())
.field("cpuckg", &self.cpuckg())
.field("gpus0ckg", &self.gpus0ckg())
.field("gpus1ckg", &self.gpus1ckg())
.field("gpuclckg", &self.gpuclckg())
.field("dcmippckg", &self.dcmippckg())
.field("dma2dckg", &self.dma2dckg())
.field("gfxmmusckg", &self.gfxmmusckg())
.field("ltdcckg", &self.ltdcckg())
.field("gfxmmumckg", &self.gfxmmumckg())
.field("ahbsckg", &self.ahbsckg())
.field("fmcckg", &self.fmcckg())
.field("xspi1ckg", &self.xspi1ckg())
.field("xspi2ckg", &self.xspi2ckg())
.field("axiram4ckg", &self.axiram4ckg())
.field("axiram3ckg", &self.axiram3ckg())
.field("axiram2ckg", &self.axiram2ckg())
.field("axiram1ckg", &self.axiram1ckg())
.field("flitfckg", &self.flitfckg())
.field("extickg", &self.extickg())
.field("jtagckg", &self.jtagckg())
.finish()
}
}
impl W {
#[inline(always)]
pub fn axickg(&mut self) -> AXICKG_W<CKGDISRrs> {
AXICKG_W::new(self, 0)
}
#[inline(always)]
pub fn ahbmckg(&mut self) -> AHBMCKG_W<CKGDISRrs> {
AHBMCKG_W::new(self, 1)
}
#[inline(always)]
pub fn sdmmc1ckg(&mut self) -> SDMMC1CKG_W<CKGDISRrs> {
SDMMC1CKG_W::new(self, 2)
}
#[inline(always)]
pub fn hpdma1ckg(&mut self) -> HPDMA1CKG_W<CKGDISRrs> {
HPDMA1CKG_W::new(self, 3)
}
#[inline(always)]
pub fn cpuckg(&mut self) -> CPUCKG_W<CKGDISRrs> {
CPUCKG_W::new(self, 4)
}
#[inline(always)]
pub fn gpus0ckg(&mut self) -> GPUS0CKG_W<CKGDISRrs> {
GPUS0CKG_W::new(self, 5)
}
#[inline(always)]
pub fn gpus1ckg(&mut self) -> GPUS1CKG_W<CKGDISRrs> {
GPUS1CKG_W::new(self, 6)
}
#[inline(always)]
pub fn gpuclckg(&mut self) -> GPUCLCKG_W<CKGDISRrs> {
GPUCLCKG_W::new(self, 7)
}
#[inline(always)]
pub fn dcmippckg(&mut self) -> DCMIPPCKG_W<CKGDISRrs> {
DCMIPPCKG_W::new(self, 8)
}
#[inline(always)]
pub fn dma2dckg(&mut self) -> DMA2DCKG_W<CKGDISRrs> {
DMA2DCKG_W::new(self, 9)
}
#[inline(always)]
pub fn gfxmmusckg(&mut self) -> GFXMMUSCKG_W<CKGDISRrs> {
GFXMMUSCKG_W::new(self, 10)
}
#[inline(always)]
pub fn ltdcckg(&mut self) -> LTDCCKG_W<CKGDISRrs> {
LTDCCKG_W::new(self, 11)
}
#[inline(always)]
pub fn gfxmmumckg(&mut self) -> GFXMMUMCKG_W<CKGDISRrs> {
GFXMMUMCKG_W::new(self, 12)
}
#[inline(always)]
pub fn ahbsckg(&mut self) -> AHBSCKG_W<CKGDISRrs> {
AHBSCKG_W::new(self, 13)
}
#[inline(always)]
pub fn fmcckg(&mut self) -> FMCCKG_W<CKGDISRrs> {
FMCCKG_W::new(self, 14)
}
#[inline(always)]
pub fn xspi1ckg(&mut self) -> XSPI1CKG_W<CKGDISRrs> {
XSPI1CKG_W::new(self, 15)
}
#[inline(always)]
pub fn xspi2ckg(&mut self) -> XSPI2CKG_W<CKGDISRrs> {
XSPI2CKG_W::new(self, 16)
}
#[inline(always)]
pub fn axiram4ckg(&mut self) -> AXIRAM4CKG_W<CKGDISRrs> {
AXIRAM4CKG_W::new(self, 17)
}
#[inline(always)]
pub fn axiram3ckg(&mut self) -> AXIRAM3CKG_W<CKGDISRrs> {
AXIRAM3CKG_W::new(self, 18)
}
#[inline(always)]
pub fn axiram2ckg(&mut self) -> AXIRAM2CKG_W<CKGDISRrs> {
AXIRAM2CKG_W::new(self, 19)
}
#[inline(always)]
pub fn axiram1ckg(&mut self) -> AXIRAM1CKG_W<CKGDISRrs> {
AXIRAM1CKG_W::new(self, 20)
}
#[inline(always)]
pub fn flitfckg(&mut self) -> FLITFCKG_W<CKGDISRrs> {
FLITFCKG_W::new(self, 21)
}
#[inline(always)]
pub fn extickg(&mut self) -> EXTICKG_W<CKGDISRrs> {
EXTICKG_W::new(self, 30)
}
#[inline(always)]
pub fn jtagckg(&mut self) -> JTAGCKG_W<CKGDISRrs> {
JTAGCKG_W::new(self, 31)
}
}
pub struct CKGDISRrs;
impl crate::RegisterSpec for CKGDISRrs {
type Ux = u32;
}
impl crate::Readable for CKGDISRrs {}
impl crate::Writable for CKGDISRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CKGDISRrs {
const RESET_VALUE: u32 = 0x8000_0000;
}