esp32c5 0.2.2

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `CONF_STATUS` reader"]
pub type R = crate::R<CONF_STATUS_SPEC>;
#[doc = "Field `FUNC0_CONFIG0` reader - "]
pub type FUNC0_CONFIG0_R = crate::FieldReader;
#[doc = "Field `SDR25_ST` reader - "]
pub type SDR25_ST_R = crate::BitReader;
#[doc = "Field `SDR50_ST` reader - "]
pub type SDR50_ST_R = crate::BitReader;
#[doc = "Field `SDR104_ST` reader - "]
pub type SDR104_ST_R = crate::BitReader;
#[doc = "Field `DDR50_ST` reader - "]
pub type DDR50_ST_R = crate::BitReader;
#[doc = "Field `TUNE_ST` reader - "]
pub type TUNE_ST_R = crate::FieldReader;
#[doc = "Field `SDIO_SWITCH_VOLT_ST` reader - "]
pub type SDIO_SWITCH_VOLT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SWITCH_END` reader - "]
pub type SDIO_SWITCH_END_R = crate::BitReader;
impl R {
    #[doc = "Bits 0:7"]
    #[inline(always)]
    pub fn func0_config0(&self) -> FUNC0_CONFIG0_R {
        FUNC0_CONFIG0_R::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    pub fn sdr25_st(&self) -> SDR25_ST_R {
        SDR25_ST_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    pub fn sdr50_st(&self) -> SDR50_ST_R {
        SDR50_ST_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10"]
    #[inline(always)]
    pub fn sdr104_st(&self) -> SDR104_ST_R {
        SDR104_ST_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11"]
    #[inline(always)]
    pub fn ddr50_st(&self) -> DDR50_ST_R {
        DDR50_ST_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bits 12:14"]
    #[inline(always)]
    pub fn tune_st(&self) -> TUNE_ST_R {
        TUNE_ST_R::new(((self.bits >> 12) & 7) as u8)
    }
    #[doc = "Bit 15"]
    #[inline(always)]
    pub fn sdio_switch_volt_st(&self) -> SDIO_SWITCH_VOLT_ST_R {
        SDIO_SWITCH_VOLT_ST_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16"]
    #[inline(always)]
    pub fn sdio_switch_end(&self) -> SDIO_SWITCH_END_R {
        SDIO_SWITCH_END_R::new(((self.bits >> 16) & 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("CONF_STATUS")
            .field("func0_config0", &self.func0_config0())
            .field("sdr25_st", &self.sdr25_st())
            .field("sdr50_st", &self.sdr50_st())
            .field("sdr104_st", &self.sdr104_st())
            .field("ddr50_st", &self.ddr50_st())
            .field("tune_st", &self.tune_st())
            .field("sdio_switch_volt_st", &self.sdio_switch_volt_st())
            .field("sdio_switch_end", &self.sdio_switch_end())
            .finish()
    }
}
#[doc = "CONF_STATUS\n\nYou can [`read`](crate::Reg::read) this register and get [`conf_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CONF_STATUS_SPEC;
impl crate::RegisterSpec for CONF_STATUS_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`conf_status::R`](R) reader structure"]
impl crate::Readable for CONF_STATUS_SPEC {}
#[doc = "`reset()` method sets CONF_STATUS to value 0"]
impl crate::Resettable for CONF_STATUS_SPEC {}