esp32c6 0.5.0

Peripheral access crate for the ESP32-C6
Documentation
#[doc = "Register `CH_ENA_AD0_CLR` writer"]
pub struct W(crate::W<CH_ENA_AD0_CLR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<CH_ENA_AD0_CLR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<CH_ENA_AD0_CLR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<CH_ENA_AD0_CLR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `CH_CLR0` writer - ch0 clear"]
pub type CH_CLR0_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR1` writer - ch1 clear"]
pub type CH_CLR1_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR2` writer - ch2 clear"]
pub type CH_CLR2_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR3` writer - ch3 clear"]
pub type CH_CLR3_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR4` writer - ch4 clear"]
pub type CH_CLR4_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR5` writer - ch5 clear"]
pub type CH_CLR5_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR6` writer - ch6 clear"]
pub type CH_CLR6_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR7` writer - ch7 clear"]
pub type CH_CLR7_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR8` writer - ch8 clear"]
pub type CH_CLR8_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR9` writer - ch9 clear"]
pub type CH_CLR9_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR10` writer - ch10 clear"]
pub type CH_CLR10_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR11` writer - ch11 clear"]
pub type CH_CLR11_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR12` writer - ch12 clear"]
pub type CH_CLR12_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR13` writer - ch13 clear"]
pub type CH_CLR13_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR14` writer - ch14 clear"]
pub type CH_CLR14_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR15` writer - ch15 clear"]
pub type CH_CLR15_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR16` writer - ch16 clear"]
pub type CH_CLR16_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR17` writer - ch17 clear"]
pub type CH_CLR17_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR18` writer - ch18 clear"]
pub type CH_CLR18_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR19` writer - ch19 clear"]
pub type CH_CLR19_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR20` writer - ch20 clear"]
pub type CH_CLR20_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR21` writer - ch21 clear"]
pub type CH_CLR21_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR22` writer - ch22 clear"]
pub type CH_CLR22_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR23` writer - ch23 clear"]
pub type CH_CLR23_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR24` writer - ch24 clear"]
pub type CH_CLR24_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR25` writer - ch25 clear"]
pub type CH_CLR25_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR26` writer - ch26 clear"]
pub type CH_CLR26_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR27` writer - ch27 clear"]
pub type CH_CLR27_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR28` writer - ch28 clear"]
pub type CH_CLR28_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR29` writer - ch29 clear"]
pub type CH_CLR29_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR30` writer - ch30 clear"]
pub type CH_CLR30_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR31` writer - ch31 clear"]
pub type CH_CLR31_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<CH_ENA_AD0_CLR_SPEC> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    #[doc = "Bit 0 - ch0 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr0(&mut self) -> CH_CLR0_W<0> {
        CH_CLR0_W::new(self)
    }
    #[doc = "Bit 1 - ch1 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr1(&mut self) -> CH_CLR1_W<1> {
        CH_CLR1_W::new(self)
    }
    #[doc = "Bit 2 - ch2 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr2(&mut self) -> CH_CLR2_W<2> {
        CH_CLR2_W::new(self)
    }
    #[doc = "Bit 3 - ch3 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr3(&mut self) -> CH_CLR3_W<3> {
        CH_CLR3_W::new(self)
    }
    #[doc = "Bit 4 - ch4 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr4(&mut self) -> CH_CLR4_W<4> {
        CH_CLR4_W::new(self)
    }
    #[doc = "Bit 5 - ch5 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr5(&mut self) -> CH_CLR5_W<5> {
        CH_CLR5_W::new(self)
    }
    #[doc = "Bit 6 - ch6 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr6(&mut self) -> CH_CLR6_W<6> {
        CH_CLR6_W::new(self)
    }
    #[doc = "Bit 7 - ch7 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr7(&mut self) -> CH_CLR7_W<7> {
        CH_CLR7_W::new(self)
    }
    #[doc = "Bit 8 - ch8 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr8(&mut self) -> CH_CLR8_W<8> {
        CH_CLR8_W::new(self)
    }
    #[doc = "Bit 9 - ch9 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr9(&mut self) -> CH_CLR9_W<9> {
        CH_CLR9_W::new(self)
    }
    #[doc = "Bit 10 - ch10 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr10(&mut self) -> CH_CLR10_W<10> {
        CH_CLR10_W::new(self)
    }
    #[doc = "Bit 11 - ch11 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr11(&mut self) -> CH_CLR11_W<11> {
        CH_CLR11_W::new(self)
    }
    #[doc = "Bit 12 - ch12 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr12(&mut self) -> CH_CLR12_W<12> {
        CH_CLR12_W::new(self)
    }
    #[doc = "Bit 13 - ch13 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr13(&mut self) -> CH_CLR13_W<13> {
        CH_CLR13_W::new(self)
    }
    #[doc = "Bit 14 - ch14 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr14(&mut self) -> CH_CLR14_W<14> {
        CH_CLR14_W::new(self)
    }
    #[doc = "Bit 15 - ch15 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr15(&mut self) -> CH_CLR15_W<15> {
        CH_CLR15_W::new(self)
    }
    #[doc = "Bit 16 - ch16 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr16(&mut self) -> CH_CLR16_W<16> {
        CH_CLR16_W::new(self)
    }
    #[doc = "Bit 17 - ch17 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr17(&mut self) -> CH_CLR17_W<17> {
        CH_CLR17_W::new(self)
    }
    #[doc = "Bit 18 - ch18 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr18(&mut self) -> CH_CLR18_W<18> {
        CH_CLR18_W::new(self)
    }
    #[doc = "Bit 19 - ch19 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr19(&mut self) -> CH_CLR19_W<19> {
        CH_CLR19_W::new(self)
    }
    #[doc = "Bit 20 - ch20 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr20(&mut self) -> CH_CLR20_W<20> {
        CH_CLR20_W::new(self)
    }
    #[doc = "Bit 21 - ch21 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr21(&mut self) -> CH_CLR21_W<21> {
        CH_CLR21_W::new(self)
    }
    #[doc = "Bit 22 - ch22 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr22(&mut self) -> CH_CLR22_W<22> {
        CH_CLR22_W::new(self)
    }
    #[doc = "Bit 23 - ch23 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr23(&mut self) -> CH_CLR23_W<23> {
        CH_CLR23_W::new(self)
    }
    #[doc = "Bit 24 - ch24 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr24(&mut self) -> CH_CLR24_W<24> {
        CH_CLR24_W::new(self)
    }
    #[doc = "Bit 25 - ch25 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr25(&mut self) -> CH_CLR25_W<25> {
        CH_CLR25_W::new(self)
    }
    #[doc = "Bit 26 - ch26 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr26(&mut self) -> CH_CLR26_W<26> {
        CH_CLR26_W::new(self)
    }
    #[doc = "Bit 27 - ch27 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr27(&mut self) -> CH_CLR27_W<27> {
        CH_CLR27_W::new(self)
    }
    #[doc = "Bit 28 - ch28 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr28(&mut self) -> CH_CLR28_W<28> {
        CH_CLR28_W::new(self)
    }
    #[doc = "Bit 29 - ch29 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr29(&mut self) -> CH_CLR29_W<29> {
        CH_CLR29_W::new(self)
    }
    #[doc = "Bit 30 - ch30 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr30(&mut self) -> CH_CLR30_W<30> {
        CH_CLR30_W::new(self)
    }
    #[doc = "Bit 31 - ch31 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr31(&mut self) -> CH_CLR31_W<31> {
        CH_CLR31_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "channel enable clear register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch_ena_ad0_clr](index.html) module"]
pub struct CH_ENA_AD0_CLR_SPEC;
impl crate::RegisterSpec for CH_ENA_AD0_CLR_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [ch_ena_ad0_clr::W](W) writer structure"]
impl crate::Writable for CH_ENA_AD0_CLR_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets CH_ENA_AD0_CLR to value 0"]
impl crate::Resettable for CH_ENA_AD0_CLR_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}