esp32c2/i2c_ana_mst/
ana_conf0.rs1#[doc = "Register `ANA_CONF0` reader"]
2pub type R = crate::R<ANA_CONF0_SPEC>;
3#[doc = "Register `ANA_CONF0` writer"]
4pub type W = crate::W<ANA_CONF0_SPEC>;
5#[doc = "Field `BBPLL_STOP_FORCE_HIGH` reader - ?"]
6pub type BBPLL_STOP_FORCE_HIGH_R = crate::BitReader;
7#[doc = "Field `BBPLL_STOP_FORCE_HIGH` writer - ?"]
8pub type BBPLL_STOP_FORCE_HIGH_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `BBPLL_STOP_FORCE_LOW` reader - ?"]
10pub type BBPLL_STOP_FORCE_LOW_R = crate::BitReader;
11#[doc = "Field `BBPLL_STOP_FORCE_LOW` writer - ?"]
12pub type BBPLL_STOP_FORCE_LOW_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `BBPLL_CAL_DONE` reader - ?"]
14pub type BBPLL_CAL_DONE_R = crate::BitReader;
15#[doc = "Field `BBPLL_CAL_DONE` writer - ?"]
16pub type BBPLL_CAL_DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[doc = "Bit 2 - ?"]
19 #[inline(always)]
20 pub fn bbpll_stop_force_high(&self) -> BBPLL_STOP_FORCE_HIGH_R {
21 BBPLL_STOP_FORCE_HIGH_R::new(((self.bits >> 2) & 1) != 0)
22 }
23 #[doc = "Bit 3 - ?"]
24 #[inline(always)]
25 pub fn bbpll_stop_force_low(&self) -> BBPLL_STOP_FORCE_LOW_R {
26 BBPLL_STOP_FORCE_LOW_R::new(((self.bits >> 3) & 1) != 0)
27 }
28 #[doc = "Bit 24 - ?"]
29 #[inline(always)]
30 pub fn bbpll_cal_done(&self) -> BBPLL_CAL_DONE_R {
31 BBPLL_CAL_DONE_R::new(((self.bits >> 24) & 1) != 0)
32 }
33}
34#[cfg(feature = "impl-register-debug")]
35impl core::fmt::Debug for R {
36 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
37 f.debug_struct("ANA_CONF0")
38 .field("bbpll_stop_force_high", &self.bbpll_stop_force_high())
39 .field("bbpll_stop_force_low", &self.bbpll_stop_force_low())
40 .field("bbpll_cal_done", &self.bbpll_cal_done())
41 .finish()
42 }
43}
44impl W {
45 #[doc = "Bit 2 - ?"]
46 #[inline(always)]
47 pub fn bbpll_stop_force_high(&mut self) -> BBPLL_STOP_FORCE_HIGH_W<ANA_CONF0_SPEC> {
48 BBPLL_STOP_FORCE_HIGH_W::new(self, 2)
49 }
50 #[doc = "Bit 3 - ?"]
51 #[inline(always)]
52 pub fn bbpll_stop_force_low(&mut self) -> BBPLL_STOP_FORCE_LOW_W<ANA_CONF0_SPEC> {
53 BBPLL_STOP_FORCE_LOW_W::new(self, 3)
54 }
55 #[doc = "Bit 24 - ?"]
56 #[inline(always)]
57 pub fn bbpll_cal_done(&mut self) -> BBPLL_CAL_DONE_W<ANA_CONF0_SPEC> {
58 BBPLL_CAL_DONE_W::new(self, 24)
59 }
60}
61#[doc = "ANA_CONF0 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ana_conf0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ana_conf0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
62pub struct ANA_CONF0_SPEC;
63impl crate::RegisterSpec for ANA_CONF0_SPEC {
64 type Ux = u32;
65}
66#[doc = "`read()` method returns [`ana_conf0::R`](R) reader structure"]
67impl crate::Readable for ANA_CONF0_SPEC {}
68#[doc = "`write(|w| ..)` method takes [`ana_conf0::W`](W) writer structure"]
69impl crate::Writable for ANA_CONF0_SPEC {
70 type Safety = crate::Unsafe;
71 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
72 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
73}
74#[doc = "`reset()` method sets ANA_CONF0 to value 0"]
75impl crate::Resettable for ANA_CONF0_SPEC {
76 const RESET_VALUE: u32 = 0;
77}