esp32c6_lp/lp_i2c_ana_mst/
ana_conf1.rs1#[doc = "Register `ANA_CONF1` reader"]
2pub type R = crate::R<ANA_CONF1_SPEC>;
3#[doc = "Register `ANA_CONF1` writer"]
4pub type W = crate::W<ANA_CONF1_SPEC>;
5#[doc = "Field `LP_I2C_ANA_MAST_ANA_CONF1` reader - need_des"]
6pub type LP_I2C_ANA_MAST_ANA_CONF1_R = crate::FieldReader<u32>;
7#[doc = "Field `LP_I2C_ANA_MAST_ANA_CONF1` writer - need_des"]
8pub type LP_I2C_ANA_MAST_ANA_CONF1_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
9impl R {
10 #[doc = "Bits 0:23 - need_des"]
11 #[inline(always)]
12 pub fn lp_i2c_ana_mast_ana_conf1(&self) -> LP_I2C_ANA_MAST_ANA_CONF1_R {
13 LP_I2C_ANA_MAST_ANA_CONF1_R::new(self.bits & 0x00ff_ffff)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("ANA_CONF1")
20 .field(
21 "lp_i2c_ana_mast_ana_conf1",
22 &self.lp_i2c_ana_mast_ana_conf1(),
23 )
24 .finish()
25 }
26}
27impl W {
28 #[doc = "Bits 0:23 - need_des"]
29 #[inline(always)]
30 #[must_use]
31 pub fn lp_i2c_ana_mast_ana_conf1(&mut self) -> LP_I2C_ANA_MAST_ANA_CONF1_W<ANA_CONF1_SPEC> {
32 LP_I2C_ANA_MAST_ANA_CONF1_W::new(self, 0)
33 }
34}
35#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`ana_conf1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ana_conf1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
36pub struct ANA_CONF1_SPEC;
37impl crate::RegisterSpec for ANA_CONF1_SPEC {
38 type Ux = u32;
39}
40#[doc = "`read()` method returns [`ana_conf1::R`](R) reader structure"]
41impl crate::Readable for ANA_CONF1_SPEC {}
42#[doc = "`write(|w| ..)` method takes [`ana_conf1::W`](W) writer structure"]
43impl crate::Writable for ANA_CONF1_SPEC {
44 type Safety = crate::Unsafe;
45 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
46 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
47}
48#[doc = "`reset()` method sets ANA_CONF1 to value 0"]
49impl crate::Resettable for ANA_CONF1_SPEC {
50 const RESET_VALUE: u32 = 0;
51}