esp32c3/system/
comb_pvt_nvt_conf.rs1#[doc = "Register `COMB_PVT_NVT_CONF` reader"]
2pub type R = crate::R<COMB_PVT_NVT_CONF_SPEC>;
3#[doc = "Register `COMB_PVT_NVT_CONF` writer"]
4pub type W = crate::W<COMB_PVT_NVT_CONF_SPEC>;
5#[doc = "Field `COMB_PATH_LEN_NVT` reader - reg_comb_path_len_nvt"]
6pub type COMB_PATH_LEN_NVT_R = crate::FieldReader;
7#[doc = "Field `COMB_PATH_LEN_NVT` writer - reg_comb_path_len_nvt"]
8pub type COMB_PATH_LEN_NVT_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
9#[doc = "Field `COMB_ERR_CNT_CLR_NVT` writer - reg_comb_err_cnt_clr_nvt"]
10pub type COMB_ERR_CNT_CLR_NVT_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `COMB_PVT_MONITOR_EN_NVT` reader - reg_comb_pvt_monitor_en_nvt"]
12pub type COMB_PVT_MONITOR_EN_NVT_R = crate::BitReader;
13#[doc = "Field `COMB_PVT_MONITOR_EN_NVT` writer - reg_comb_pvt_monitor_en_nvt"]
14pub type COMB_PVT_MONITOR_EN_NVT_W<'a, REG> = crate::BitWriter<'a, REG>;
15impl R {
16    #[doc = "Bits 0:4 - reg_comb_path_len_nvt"]
17    #[inline(always)]
18    pub fn comb_path_len_nvt(&self) -> COMB_PATH_LEN_NVT_R {
19        COMB_PATH_LEN_NVT_R::new((self.bits & 0x1f) as u8)
20    }
21    #[doc = "Bit 6 - reg_comb_pvt_monitor_en_nvt"]
22    #[inline(always)]
23    pub fn comb_pvt_monitor_en_nvt(&self) -> COMB_PVT_MONITOR_EN_NVT_R {
24        COMB_PVT_MONITOR_EN_NVT_R::new(((self.bits >> 6) & 1) != 0)
25    }
26}
27#[cfg(feature = "impl-register-debug")]
28impl core::fmt::Debug for R {
29    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
30        f.debug_struct("COMB_PVT_NVT_CONF")
31            .field("comb_path_len_nvt", &self.comb_path_len_nvt())
32            .field("comb_pvt_monitor_en_nvt", &self.comb_pvt_monitor_en_nvt())
33            .finish()
34    }
35}
36impl W {
37    #[doc = "Bits 0:4 - reg_comb_path_len_nvt"]
38    #[inline(always)]
39    pub fn comb_path_len_nvt(&mut self) -> COMB_PATH_LEN_NVT_W<COMB_PVT_NVT_CONF_SPEC> {
40        COMB_PATH_LEN_NVT_W::new(self, 0)
41    }
42    #[doc = "Bit 5 - reg_comb_err_cnt_clr_nvt"]
43    #[inline(always)]
44    pub fn comb_err_cnt_clr_nvt(&mut self) -> COMB_ERR_CNT_CLR_NVT_W<COMB_PVT_NVT_CONF_SPEC> {
45        COMB_ERR_CNT_CLR_NVT_W::new(self, 5)
46    }
47    #[doc = "Bit 6 - reg_comb_pvt_monitor_en_nvt"]
48    #[inline(always)]
49    pub fn comb_pvt_monitor_en_nvt(&mut self) -> COMB_PVT_MONITOR_EN_NVT_W<COMB_PVT_NVT_CONF_SPEC> {
50        COMB_PVT_MONITOR_EN_NVT_W::new(self, 6)
51    }
52}
53#[doc = "mem pvt register\n\nYou can [`read`](crate::Reg::read) this register and get [`comb_pvt_nvt_conf::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comb_pvt_nvt_conf::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
54pub struct COMB_PVT_NVT_CONF_SPEC;
55impl crate::RegisterSpec for COMB_PVT_NVT_CONF_SPEC {
56    type Ux = u32;
57}
58#[doc = "`read()` method returns [`comb_pvt_nvt_conf::R`](R) reader structure"]
59impl crate::Readable for COMB_PVT_NVT_CONF_SPEC {}
60#[doc = "`write(|w| ..)` method takes [`comb_pvt_nvt_conf::W`](W) writer structure"]
61impl crate::Writable for COMB_PVT_NVT_CONF_SPEC {
62    type Safety = crate::Unsafe;
63}
64#[doc = "`reset()` method sets COMB_PVT_NVT_CONF to value 0x03"]
65impl crate::Resettable for COMB_PVT_NVT_CONF_SPEC {
66    const RESET_VALUE: u32 = 0x03;
67}