esp32/dport/
sram_pd_ctrl_1.rs

1#[doc = "Register `SRAM_PD_CTRL_1` reader"]
2pub type R = crate::R<SRAM_PD_CTRL_1_SPEC>;
3#[doc = "Register `SRAM_PD_CTRL_1` writer"]
4pub type W = crate::W<SRAM_PD_CTRL_1_SPEC>;
5#[doc = "Field `SRAM_PD_1` reader - "]
6pub type SRAM_PD_1_R = crate::BitReader;
7#[doc = "Field `SRAM_PD_1` writer - "]
8pub type SRAM_PD_1_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10    #[doc = "Bit 0"]
11    #[inline(always)]
12    pub fn sram_pd_1(&self) -> SRAM_PD_1_R {
13        SRAM_PD_1_R::new((self.bits & 1) != 0)
14    }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19        f.debug_struct("SRAM_PD_CTRL_1")
20            .field("sram_pd_1", &self.sram_pd_1())
21            .finish()
22    }
23}
24impl W {
25    #[doc = "Bit 0"]
26    #[inline(always)]
27    pub fn sram_pd_1(&mut self) -> SRAM_PD_1_W<SRAM_PD_CTRL_1_SPEC> {
28        SRAM_PD_1_W::new(self, 0)
29    }
30}
31#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`sram_pd_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_pd_ctrl_1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct SRAM_PD_CTRL_1_SPEC;
33impl crate::RegisterSpec for SRAM_PD_CTRL_1_SPEC {
34    type Ux = u32;
35}
36#[doc = "`read()` method returns [`sram_pd_ctrl_1::R`](R) reader structure"]
37impl crate::Readable for SRAM_PD_CTRL_1_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`sram_pd_ctrl_1::W`](W) writer structure"]
39impl crate::Writable for SRAM_PD_CTRL_1_SPEC {
40    type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets SRAM_PD_CTRL_1 to value 0"]
43impl crate::Resettable for SRAM_PD_CTRL_1_SPEC {}