esp32c5 0.2.2

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `COMB_PD_SITE2_UNIT2_VT1_CONF1` reader"]
pub type R = crate::R<COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC>;
#[doc = "Register `COMB_PD_SITE2_UNIT2_VT1_CONF1` writer"]
pub type W = crate::W<COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC>;
#[doc = "Field `MONITOR_EN_VT1_PD_SITE2_UNIT2` reader - needs field desc"]
pub type MONITOR_EN_VT1_PD_SITE2_UNIT2_R = crate::BitReader;
#[doc = "Field `MONITOR_EN_VT1_PD_SITE2_UNIT2` writer - needs field desc"]
pub type MONITOR_EN_VT1_PD_SITE2_UNIT2_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TIMING_ERR_CNT_CLR_VT1_PD_SITE2_UNIT2` writer - needs field desc"]
pub type TIMING_ERR_CNT_CLR_VT1_PD_SITE2_UNIT2_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DELAY_LIMIT_VT1_PD_SITE2_UNIT2` reader - needs field desc"]
pub type DELAY_LIMIT_VT1_PD_SITE2_UNIT2_R = crate::FieldReader;
#[doc = "Field `DELAY_LIMIT_VT1_PD_SITE2_UNIT2` writer - needs field desc"]
pub type DELAY_LIMIT_VT1_PD_SITE2_UNIT2_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
#[doc = "Field `DELAY_NUM_O_VT1_PD_SITE2_UNIT2` reader - needs field desc"]
pub type DELAY_NUM_O_VT1_PD_SITE2_UNIT2_R = crate::FieldReader;
#[doc = "Field `TIMING_ERR_VT1_PD_SITE2_UNIT2` reader - needs field desc"]
pub type TIMING_ERR_VT1_PD_SITE2_UNIT2_R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - needs field desc"]
    #[inline(always)]
    pub fn monitor_en_vt1_pd_site2_unit2(&self) -> MONITOR_EN_VT1_PD_SITE2_UNIT2_R {
        MONITOR_EN_VT1_PD_SITE2_UNIT2_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bits 2:9 - needs field desc"]
    #[inline(always)]
    pub fn delay_limit_vt1_pd_site2_unit2(&self) -> DELAY_LIMIT_VT1_PD_SITE2_UNIT2_R {
        DELAY_LIMIT_VT1_PD_SITE2_UNIT2_R::new(((self.bits >> 2) & 0xff) as u8)
    }
    #[doc = "Bits 23:30 - needs field desc"]
    #[inline(always)]
    pub fn delay_num_o_vt1_pd_site2_unit2(&self) -> DELAY_NUM_O_VT1_PD_SITE2_UNIT2_R {
        DELAY_NUM_O_VT1_PD_SITE2_UNIT2_R::new(((self.bits >> 23) & 0xff) as u8)
    }
    #[doc = "Bit 31 - needs field desc"]
    #[inline(always)]
    pub fn timing_err_vt1_pd_site2_unit2(&self) -> TIMING_ERR_VT1_PD_SITE2_UNIT2_R {
        TIMING_ERR_VT1_PD_SITE2_UNIT2_R::new(((self.bits >> 31) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("COMB_PD_SITE2_UNIT2_VT1_CONF1")
            .field(
                "monitor_en_vt1_pd_site2_unit2",
                &self.monitor_en_vt1_pd_site2_unit2(),
            )
            .field(
                "delay_limit_vt1_pd_site2_unit2",
                &self.delay_limit_vt1_pd_site2_unit2(),
            )
            .field(
                "delay_num_o_vt1_pd_site2_unit2",
                &self.delay_num_o_vt1_pd_site2_unit2(),
            )
            .field(
                "timing_err_vt1_pd_site2_unit2",
                &self.timing_err_vt1_pd_site2_unit2(),
            )
            .finish()
    }
}
impl W {
    #[doc = "Bit 0 - needs field desc"]
    #[inline(always)]
    pub fn monitor_en_vt1_pd_site2_unit2(
        &mut self,
    ) -> MONITOR_EN_VT1_PD_SITE2_UNIT2_W<'_, COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC> {
        MONITOR_EN_VT1_PD_SITE2_UNIT2_W::new(self, 0)
    }
    #[doc = "Bit 1 - needs field desc"]
    #[inline(always)]
    pub fn timing_err_cnt_clr_vt1_pd_site2_unit2(
        &mut self,
    ) -> TIMING_ERR_CNT_CLR_VT1_PD_SITE2_UNIT2_W<'_, COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC> {
        TIMING_ERR_CNT_CLR_VT1_PD_SITE2_UNIT2_W::new(self, 1)
    }
    #[doc = "Bits 2:9 - needs field desc"]
    #[inline(always)]
    pub fn delay_limit_vt1_pd_site2_unit2(
        &mut self,
    ) -> DELAY_LIMIT_VT1_PD_SITE2_UNIT2_W<'_, COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC> {
        DELAY_LIMIT_VT1_PD_SITE2_UNIT2_W::new(self, 2)
    }
}
#[doc = "needs desc\n\nYou can [`read`](crate::Reg::read) this register and get [`comb_pd_site2_unit2_vt1_conf1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comb_pd_site2_unit2_vt1_conf1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC;
impl crate::RegisterSpec for COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`comb_pd_site2_unit2_vt1_conf1::R`](R) reader structure"]
impl crate::Readable for COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC {}
#[doc = "`write(|w| ..)` method takes [`comb_pd_site2_unit2_vt1_conf1::W`](W) writer structure"]
impl crate::Writable for COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets COMB_PD_SITE2_UNIT2_VT1_CONF1 to value 0x50"]
impl crate::Resettable for COMB_PD_SITE2_UNIT2_VT1_CONF1_SPEC {
    const RESET_VALUE: u32 = 0x50;
}