esp32p4/pvt/
comb_pd_site3_unit0_vt0_conf1.rs

1#[doc = "Register `COMB_PD_SITE3_UNIT0_VT0_CONF1` reader"]
2pub type R = crate::R<COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC>;
3#[doc = "Register `COMB_PD_SITE3_UNIT0_VT0_CONF1` writer"]
4pub type W = crate::W<COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC>;
5#[doc = "Field `MONITOR_EN_VT0_PD_SITE3_UNIT0` reader - needs field desc"]
6pub type MONITOR_EN_VT0_PD_SITE3_UNIT0_R = crate::BitReader;
7#[doc = "Field `MONITOR_EN_VT0_PD_SITE3_UNIT0` writer - needs field desc"]
8pub type MONITOR_EN_VT0_PD_SITE3_UNIT0_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TIMING_ERR_CNT_CLR_VT0_PD_SITE3_UNIT0` writer - needs field desc"]
10pub type TIMING_ERR_CNT_CLR_VT0_PD_SITE3_UNIT0_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `DELAY_LIMIT_VT0_PD_SITE3_UNIT0` reader - needs field desc"]
12pub type DELAY_LIMIT_VT0_PD_SITE3_UNIT0_R = crate::FieldReader;
13#[doc = "Field `DELAY_LIMIT_VT0_PD_SITE3_UNIT0` writer - needs field desc"]
14pub type DELAY_LIMIT_VT0_PD_SITE3_UNIT0_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
15#[doc = "Field `DELAY_NUM_O_VT0_PD_SITE3_UNIT0` reader - needs field desc"]
16pub type DELAY_NUM_O_VT0_PD_SITE3_UNIT0_R = crate::FieldReader;
17#[doc = "Field `TIMING_ERR_VT0_PD_SITE3_UNIT0` reader - needs field desc"]
18pub type TIMING_ERR_VT0_PD_SITE3_UNIT0_R = crate::BitReader;
19impl R {
20    #[doc = "Bit 0 - needs field desc"]
21    #[inline(always)]
22    pub fn monitor_en_vt0_pd_site3_unit0(&self) -> MONITOR_EN_VT0_PD_SITE3_UNIT0_R {
23        MONITOR_EN_VT0_PD_SITE3_UNIT0_R::new((self.bits & 1) != 0)
24    }
25    #[doc = "Bits 2:9 - needs field desc"]
26    #[inline(always)]
27    pub fn delay_limit_vt0_pd_site3_unit0(&self) -> DELAY_LIMIT_VT0_PD_SITE3_UNIT0_R {
28        DELAY_LIMIT_VT0_PD_SITE3_UNIT0_R::new(((self.bits >> 2) & 0xff) as u8)
29    }
30    #[doc = "Bits 23:30 - needs field desc"]
31    #[inline(always)]
32    pub fn delay_num_o_vt0_pd_site3_unit0(&self) -> DELAY_NUM_O_VT0_PD_SITE3_UNIT0_R {
33        DELAY_NUM_O_VT0_PD_SITE3_UNIT0_R::new(((self.bits >> 23) & 0xff) as u8)
34    }
35    #[doc = "Bit 31 - needs field desc"]
36    #[inline(always)]
37    pub fn timing_err_vt0_pd_site3_unit0(&self) -> TIMING_ERR_VT0_PD_SITE3_UNIT0_R {
38        TIMING_ERR_VT0_PD_SITE3_UNIT0_R::new(((self.bits >> 31) & 1) != 0)
39    }
40}
41#[cfg(feature = "impl-register-debug")]
42impl core::fmt::Debug for R {
43    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
44        f.debug_struct("COMB_PD_SITE3_UNIT0_VT0_CONF1")
45            .field(
46                "monitor_en_vt0_pd_site3_unit0",
47                &format_args!("{}", self.monitor_en_vt0_pd_site3_unit0().bit()),
48            )
49            .field(
50                "delay_limit_vt0_pd_site3_unit0",
51                &format_args!("{}", self.delay_limit_vt0_pd_site3_unit0().bits()),
52            )
53            .field(
54                "delay_num_o_vt0_pd_site3_unit0",
55                &format_args!("{}", self.delay_num_o_vt0_pd_site3_unit0().bits()),
56            )
57            .field(
58                "timing_err_vt0_pd_site3_unit0",
59                &format_args!("{}", self.timing_err_vt0_pd_site3_unit0().bit()),
60            )
61            .finish()
62    }
63}
64#[cfg(feature = "impl-register-debug")]
65impl core::fmt::Debug for crate::generic::Reg<COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC> {
66    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
67        core::fmt::Debug::fmt(&self.read(), f)
68    }
69}
70impl W {
71    #[doc = "Bit 0 - needs field desc"]
72    #[inline(always)]
73    #[must_use]
74    pub fn monitor_en_vt0_pd_site3_unit0(
75        &mut self,
76    ) -> MONITOR_EN_VT0_PD_SITE3_UNIT0_W<COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC> {
77        MONITOR_EN_VT0_PD_SITE3_UNIT0_W::new(self, 0)
78    }
79    #[doc = "Bit 1 - needs field desc"]
80    #[inline(always)]
81    #[must_use]
82    pub fn timing_err_cnt_clr_vt0_pd_site3_unit0(
83        &mut self,
84    ) -> TIMING_ERR_CNT_CLR_VT0_PD_SITE3_UNIT0_W<COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC> {
85        TIMING_ERR_CNT_CLR_VT0_PD_SITE3_UNIT0_W::new(self, 1)
86    }
87    #[doc = "Bits 2:9 - needs field desc"]
88    #[inline(always)]
89    #[must_use]
90    pub fn delay_limit_vt0_pd_site3_unit0(
91        &mut self,
92    ) -> DELAY_LIMIT_VT0_PD_SITE3_UNIT0_W<COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC> {
93        DELAY_LIMIT_VT0_PD_SITE3_UNIT0_W::new(self, 2)
94    }
95}
96#[doc = "needs desc\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`comb_pd_site3_unit0_vt0_conf1::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 [`comb_pd_site3_unit0_vt0_conf1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
97pub struct COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC;
98impl crate::RegisterSpec for COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC {
99    type Ux = u32;
100}
101#[doc = "`read()` method returns [`comb_pd_site3_unit0_vt0_conf1::R`](R) reader structure"]
102impl crate::Readable for COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC {}
103#[doc = "`write(|w| ..)` method takes [`comb_pd_site3_unit0_vt0_conf1::W`](W) writer structure"]
104impl crate::Writable for COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC {
105    type Safety = crate::Unsafe;
106    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
107    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
108}
109#[doc = "`reset()` method sets COMB_PD_SITE3_UNIT0_VT0_CONF1 to value 0x50"]
110impl crate::Resettable for COMB_PD_SITE3_UNIT0_VT0_CONF1_SPEC {
111    const RESET_VALUE: u32 = 0x50;
112}