esp32c6/lp_i2c_ana_mst/
i2c0_conf.rs

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