#[doc = "Register `SRAM_CTRL_1` reader"]
pub type R = crate::R<SRAM_CTRL_1_SPEC>;
#[doc = "Register `SRAM_CTRL_1` writer"]
pub type W = crate::W<SRAM_CTRL_1_SPEC>;
#[doc = "Field `SRAM_FORCE_PD` reader - This field is used to power down internal SRAM."]
pub type SRAM_FORCE_PD_R = crate::FieldReader<u32>;
#[doc = "Field `SRAM_FORCE_PD` writer - This field is used to power down internal SRAM."]
pub type SRAM_FORCE_PD_W<'a, REG> = crate::FieldWriter<'a, REG, 22, u32>;
impl R {
    #[doc = "Bits 0:21 - This field is used to power down internal SRAM."]
    #[inline(always)]
    pub fn sram_force_pd(&self) -> SRAM_FORCE_PD_R {
        SRAM_FORCE_PD_R::new(self.bits & 0x003f_ffff)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SRAM_CTRL_1")
            .field("sram_force_pd", &self.sram_force_pd())
            .finish()
    }
}
impl W {
    #[doc = "Bits 0:21 - This field is used to power down internal SRAM."]
    #[inline(always)]
    pub fn sram_force_pd(&mut self) -> SRAM_FORCE_PD_W<'_, SRAM_CTRL_1_SPEC> {
        SRAM_FORCE_PD_W::new(self, 0)
    }
}
#[doc = "System SRAM configuration register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sram_ctrl_1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sram_ctrl_1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SRAM_CTRL_1_SPEC;
impl crate::RegisterSpec for SRAM_CTRL_1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`sram_ctrl_1::R`](R) reader structure"]
impl crate::Readable for SRAM_CTRL_1_SPEC {}
#[doc = "`write(|w| ..)` method takes [`sram_ctrl_1::W`](W) writer structure"]
impl crate::Writable for SRAM_CTRL_1_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets SRAM_CTRL_1 to value 0"]
impl crate::Resettable for SRAM_CTRL_1_SPEC {}
