esp32p4/ppa/
eco_cell_ctrl.rs1#[doc = "Register `ECO_CELL_CTRL` reader"]
2pub type R = crate::R<ECO_CELL_CTRL_SPEC>;
3#[doc = "Register `ECO_CELL_CTRL` writer"]
4pub type W = crate::W<ECO_CELL_CTRL_SPEC>;
5#[doc = "Field `RDN_RESULT` reader - Reserved."]
6pub type RDN_RESULT_R = crate::BitReader;
7#[doc = "Field `RDN_ENA` reader - Reserved."]
8pub type RDN_ENA_R = crate::BitReader;
9#[doc = "Field `RDN_ENA` writer - Reserved."]
10pub type RDN_ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
11impl R {
12 #[doc = "Bit 0 - Reserved."]
13 #[inline(always)]
14 pub fn rdn_result(&self) -> RDN_RESULT_R {
15 RDN_RESULT_R::new((self.bits & 1) != 0)
16 }
17 #[doc = "Bit 1 - Reserved."]
18 #[inline(always)]
19 pub fn rdn_ena(&self) -> RDN_ENA_R {
20 RDN_ENA_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("ECO_CELL_CTRL")
27 .field("rdn_result", &format_args!("{}", self.rdn_result().bit()))
28 .field("rdn_ena", &format_args!("{}", self.rdn_ena().bit()))
29 .finish()
30 }
31}
32#[cfg(feature = "impl-register-debug")]
33impl core::fmt::Debug for crate::generic::Reg<ECO_CELL_CTRL_SPEC> {
34 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
35 core::fmt::Debug::fmt(&self.read(), f)
36 }
37}
38impl W {
39 #[doc = "Bit 1 - Reserved."]
40 #[inline(always)]
41 #[must_use]
42 pub fn rdn_ena(&mut self) -> RDN_ENA_W<ECO_CELL_CTRL_SPEC> {
43 RDN_ENA_W::new(self, 1)
44 }
45}
46#[doc = "Reserved.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`eco_cell_ctrl::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 [`eco_cell_ctrl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
47pub struct ECO_CELL_CTRL_SPEC;
48impl crate::RegisterSpec for ECO_CELL_CTRL_SPEC {
49 type Ux = u32;
50}
51#[doc = "`read()` method returns [`eco_cell_ctrl::R`](R) reader structure"]
52impl crate::Readable for ECO_CELL_CTRL_SPEC {}
53#[doc = "`write(|w| ..)` method takes [`eco_cell_ctrl::W`](W) writer structure"]
54impl crate::Writable for ECO_CELL_CTRL_SPEC {
55 type Safety = crate::Unsafe;
56 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
57 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
58}
59#[doc = "`reset()` method sets ECO_CELL_CTRL to value 0"]
60impl crate::Resettable for ECO_CELL_CTRL_SPEC {
61 const RESET_VALUE: u32 = 0;
62}