esp32 0.40.1

Peripheral access crate for the ESP32
Documentation
#[doc = "Register `ULP_CP_SLEEP_CYC2` reader"]
pub type R = crate::R<ULP_CP_SLEEP_CYC2_SPEC>;
#[doc = "Register `ULP_CP_SLEEP_CYC2` writer"]
pub type W = crate::W<ULP_CP_SLEEP_CYC2_SPEC>;
#[doc = "Field `SLEEP_CYCLES_S2` reader - "]
pub type SLEEP_CYCLES_S2_R = crate::FieldReader<u32>;
#[doc = "Field `SLEEP_CYCLES_S2` writer - "]
pub type SLEEP_CYCLES_S2_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
    #[doc = "Bits 0:31"]
    #[inline(always)]
    pub fn sleep_cycles_s2(&self) -> SLEEP_CYCLES_S2_R {
        SLEEP_CYCLES_S2_R::new(self.bits)
    }
}
#[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("ULP_CP_SLEEP_CYC2")
            .field("sleep_cycles_s2", &self.sleep_cycles_s2())
            .finish()
    }
}
impl W {
    #[doc = "Bits 0:31"]
    #[inline(always)]
    pub fn sleep_cycles_s2(&mut self) -> SLEEP_CYCLES_S2_W<'_, ULP_CP_SLEEP_CYC2_SPEC> {
        SLEEP_CYCLES_S2_W::new(self, 0)
    }
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`ulp_cp_sleep_cyc2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ulp_cp_sleep_cyc2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ULP_CP_SLEEP_CYC2_SPEC;
impl crate::RegisterSpec for ULP_CP_SLEEP_CYC2_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ulp_cp_sleep_cyc2::R`](R) reader structure"]
impl crate::Readable for ULP_CP_SLEEP_CYC2_SPEC {}
#[doc = "`write(|w| ..)` method takes [`ulp_cp_sleep_cyc2::W`](W) writer structure"]
impl crate::Writable for ULP_CP_SLEEP_CYC2_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets ULP_CP_SLEEP_CYC2 to value 0x32"]
impl crate::Resettable for ULP_CP_SLEEP_CYC2_SPEC {
    const RESET_VALUE: u32 = 0x32;
}