esp32p4/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 `ANA_CONF1` reader - need des"]
6pub type ANA_CONF1_R = crate::FieldReader<u32>;
7#[doc = "Field `ANA_CONF1` writer - need des"]
8pub type ANA_CONF1_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
9#[doc = "Field `ANA_STATUS1` reader - need des"]
10pub type ANA_STATUS1_R = crate::FieldReader;
11impl R {
12 #[doc = "Bits 0:23 - need des"]
13 #[inline(always)]
14 pub fn ana_conf1(&self) -> ANA_CONF1_R {
15 ANA_CONF1_R::new(self.bits & 0x00ff_ffff)
16 }
17 #[doc = "Bits 24:31 - need des"]
18 #[inline(always)]
19 pub fn ana_status1(&self) -> ANA_STATUS1_R {
20 ANA_STATUS1_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("ANA_CONF1")
27 .field("ana_conf1", &format_args!("{}", self.ana_conf1().bits()))
28 .field(
29 "ana_status1",
30 &format_args!("{}", self.ana_status1().bits()),
31 )
32 .finish()
33 }
34}
35#[cfg(feature = "impl-register-debug")]
36impl core::fmt::Debug for crate::generic::Reg<ANA_CONF1_SPEC> {
37 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
38 core::fmt::Debug::fmt(&self.read(), f)
39 }
40}
41impl W {
42 #[doc = "Bits 0:23 - need des"]
43 #[inline(always)]
44 #[must_use]
45 pub fn ana_conf1(&mut self) -> ANA_CONF1_W<ANA_CONF1_SPEC> {
46 ANA_CONF1_W::new(self, 0)
47 }
48}
49#[doc = "need des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ana_conf1::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ana_conf1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
50pub struct ANA_CONF1_SPEC;
51impl crate::RegisterSpec for ANA_CONF1_SPEC {
52 type Ux = u32;
53}
54#[doc = "`read()` method returns [`ana_conf1::R`](R) reader structure"]
55impl crate::Readable for ANA_CONF1_SPEC {}
56#[doc = "`write(|w| ..)` method takes [`ana_conf1::W`](W) writer structure"]
57impl crate::Writable for ANA_CONF1_SPEC {
58 type Safety = crate::Unsafe;
59 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
60 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
61}
62#[doc = "`reset()` method sets ANA_CONF1 to value 0"]
63impl crate::Resettable for ANA_CONF1_SPEC {
64 const RESET_VALUE: u32 = 0;
65}