esp32c5 0.2.2

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `SIGMADELTA_MISC` reader"]
pub type R = crate::R<SIGMADELTA_MISC_SPEC>;
#[doc = "Register `SIGMADELTA_MISC` writer"]
pub type W = crate::W<SIGMADELTA_MISC_SPEC>;
#[doc = "Field `SIGMADELTA_CLK_EN` reader - Configures whether or not to enable the clock for sigma delta modulation.\\\\ 0: Not enable\\\\ 1: Enable\\\\%\\label{fielddesc:GPIOSDSPISWAP}- \\[GPIOSD_SPI_SWAP\\] Reserved."]
pub type SIGMADELTA_CLK_EN_R = crate::BitReader;
#[doc = "Field `SIGMADELTA_CLK_EN` writer - Configures whether or not to enable the clock for sigma delta modulation.\\\\ 0: Not enable\\\\ 1: Enable\\\\%\\label{fielddesc:GPIOSDSPISWAP}- \\[GPIOSD_SPI_SWAP\\] Reserved."]
pub type SIGMADELTA_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Configures whether or not to enable the clock for sigma delta modulation.\\\\ 0: Not enable\\\\ 1: Enable\\\\%\\label{fielddesc:GPIOSDSPISWAP}- \\[GPIOSD_SPI_SWAP\\] Reserved."]
    #[inline(always)]
    pub fn sigmadelta_clk_en(&self) -> SIGMADELTA_CLK_EN_R {
        SIGMADELTA_CLK_EN_R::new((self.bits & 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("SIGMADELTA_MISC")
            .field("sigmadelta_clk_en", &self.sigmadelta_clk_en())
            .finish()
    }
}
impl W {
    #[doc = "Bit 0 - Configures whether or not to enable the clock for sigma delta modulation.\\\\ 0: Not enable\\\\ 1: Enable\\\\%\\label{fielddesc:GPIOSDSPISWAP}- \\[GPIOSD_SPI_SWAP\\] Reserved."]
    #[inline(always)]
    pub fn sigmadelta_clk_en(&mut self) -> SIGMADELTA_CLK_EN_W<'_, SIGMADELTA_MISC_SPEC> {
        SIGMADELTA_CLK_EN_W::new(self, 0)
    }
}
#[doc = "MISC Register\n\nYou can [`read`](crate::Reg::read) this register and get [`sigmadelta_misc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sigmadelta_misc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SIGMADELTA_MISC_SPEC;
impl crate::RegisterSpec for SIGMADELTA_MISC_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`sigmadelta_misc::R`](R) reader structure"]
impl crate::Readable for SIGMADELTA_MISC_SPEC {}
#[doc = "`write(|w| ..)` method takes [`sigmadelta_misc::W`](W) writer structure"]
impl crate::Writable for SIGMADELTA_MISC_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets SIGMADELTA_MISC to value 0"]
impl crate::Resettable for SIGMADELTA_MISC_SPEC {}