esp32p4/lp_sys/
lp_tcm_ram_rdn_eco_cs.rs

1#[doc = "Register `LP_TCM_RAM_RDN_ECO_CS` reader"]
2pub type R = crate::R<LP_TCM_RAM_RDN_ECO_CS_SPEC>;
3#[doc = "Register `LP_TCM_RAM_RDN_ECO_CS` writer"]
4pub type W = crate::W<LP_TCM_RAM_RDN_ECO_CS_SPEC>;
5#[doc = "Field `LP_TCM_RAM_RDN_ECO_EN` reader - need_des"]
6pub type LP_TCM_RAM_RDN_ECO_EN_R = crate::BitReader;
7#[doc = "Field `LP_TCM_RAM_RDN_ECO_EN` writer - need_des"]
8pub type LP_TCM_RAM_RDN_ECO_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `LP_TCM_RAM_RDN_ECO_RESULT` reader - need_des"]
10pub type LP_TCM_RAM_RDN_ECO_RESULT_R = crate::BitReader;
11impl R {
12    #[doc = "Bit 0 - need_des"]
13    #[inline(always)]
14    pub fn lp_tcm_ram_rdn_eco_en(&self) -> LP_TCM_RAM_RDN_ECO_EN_R {
15        LP_TCM_RAM_RDN_ECO_EN_R::new((self.bits & 1) != 0)
16    }
17    #[doc = "Bit 1 - need_des"]
18    #[inline(always)]
19    pub fn lp_tcm_ram_rdn_eco_result(&self) -> LP_TCM_RAM_RDN_ECO_RESULT_R {
20        LP_TCM_RAM_RDN_ECO_RESULT_R::new(((self.bits >> 1) & 1) != 0)
21    }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for R {
25    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
26        f.debug_struct("LP_TCM_RAM_RDN_ECO_CS")
27            .field(
28                "lp_tcm_ram_rdn_eco_en",
29                &format_args!("{}", self.lp_tcm_ram_rdn_eco_en().bit()),
30            )
31            .field(
32                "lp_tcm_ram_rdn_eco_result",
33                &format_args!("{}", self.lp_tcm_ram_rdn_eco_result().bit()),
34            )
35            .finish()
36    }
37}
38#[cfg(feature = "impl-register-debug")]
39impl core::fmt::Debug for crate::generic::Reg<LP_TCM_RAM_RDN_ECO_CS_SPEC> {
40    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
41        core::fmt::Debug::fmt(&self.read(), f)
42    }
43}
44impl W {
45    #[doc = "Bit 0 - need_des"]
46    #[inline(always)]
47    #[must_use]
48    pub fn lp_tcm_ram_rdn_eco_en(&mut self) -> LP_TCM_RAM_RDN_ECO_EN_W<LP_TCM_RAM_RDN_ECO_CS_SPEC> {
49        LP_TCM_RAM_RDN_ECO_EN_W::new(self, 0)
50    }
51}
52#[doc = "need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lp_tcm_ram_rdn_eco_cs::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lp_tcm_ram_rdn_eco_cs::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
53pub struct LP_TCM_RAM_RDN_ECO_CS_SPEC;
54impl crate::RegisterSpec for LP_TCM_RAM_RDN_ECO_CS_SPEC {
55    type Ux = u32;
56}
57#[doc = "`read()` method returns [`lp_tcm_ram_rdn_eco_cs::R`](R) reader structure"]
58impl crate::Readable for LP_TCM_RAM_RDN_ECO_CS_SPEC {}
59#[doc = "`write(|w| ..)` method takes [`lp_tcm_ram_rdn_eco_cs::W`](W) writer structure"]
60impl crate::Writable for LP_TCM_RAM_RDN_ECO_CS_SPEC {
61    type Safety = crate::Unsafe;
62    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
63    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
64}
65#[doc = "`reset()` method sets LP_TCM_RAM_RDN_ECO_CS to value 0"]
66impl crate::Resettable for LP_TCM_RAM_RDN_ECO_CS_SPEC {
67    const RESET_VALUE: u32 = 0;
68}