esp32s3/sens/
sar_amp_ctrl3.rs1#[doc = "Register `SAR_AMP_CTRL3` reader"]
2pub type R = crate::R<SAR_AMP_CTRL3_SPEC>;
3#[doc = "Register `SAR_AMP_CTRL3` writer"]
4pub type W = crate::W<SAR_AMP_CTRL3_SPEC>;
5#[doc = "Field `SAR1_DAC_XPD_FSM` reader - no public"]
6pub type SAR1_DAC_XPD_FSM_R = crate::FieldReader;
7#[doc = "Field `SAR1_DAC_XPD_FSM` writer - no public"]
8pub type SAR1_DAC_XPD_FSM_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
9#[doc = "Field `XPD_SAR_AMP_FSM` reader - no public"]
10pub type XPD_SAR_AMP_FSM_R = crate::FieldReader;
11#[doc = "Field `XPD_SAR_AMP_FSM` writer - no public"]
12pub type XPD_SAR_AMP_FSM_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
13#[doc = "Field `AMP_RST_FB_FSM` reader - no public"]
14pub type AMP_RST_FB_FSM_R = crate::FieldReader;
15#[doc = "Field `AMP_RST_FB_FSM` writer - no public"]
16pub type AMP_RST_FB_FSM_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
17#[doc = "Field `AMP_SHORT_REF_FSM` reader - no public"]
18pub type AMP_SHORT_REF_FSM_R = crate::FieldReader;
19#[doc = "Field `AMP_SHORT_REF_FSM` writer - no public"]
20pub type AMP_SHORT_REF_FSM_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
21#[doc = "Field `AMP_SHORT_REF_GND_FSM` reader - no public"]
22pub type AMP_SHORT_REF_GND_FSM_R = crate::FieldReader;
23#[doc = "Field `AMP_SHORT_REF_GND_FSM` writer - no public"]
24pub type AMP_SHORT_REF_GND_FSM_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
25#[doc = "Field `XPD_SAR_FSM` reader - no public"]
26pub type XPD_SAR_FSM_R = crate::FieldReader;
27#[doc = "Field `XPD_SAR_FSM` writer - no public"]
28pub type XPD_SAR_FSM_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
29#[doc = "Field `RSTB_FSM` reader - no public"]
30pub type RSTB_FSM_R = crate::FieldReader;
31#[doc = "Field `RSTB_FSM` writer - no public"]
32pub type RSTB_FSM_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
33impl R {
34 #[doc = "Bits 0:3 - no public"]
35 #[inline(always)]
36 pub fn sar1_dac_xpd_fsm(&self) -> SAR1_DAC_XPD_FSM_R {
37 SAR1_DAC_XPD_FSM_R::new((self.bits & 0x0f) as u8)
38 }
39 #[doc = "Bits 4:7 - no public"]
40 #[inline(always)]
41 pub fn xpd_sar_amp_fsm(&self) -> XPD_SAR_AMP_FSM_R {
42 XPD_SAR_AMP_FSM_R::new(((self.bits >> 4) & 0x0f) as u8)
43 }
44 #[doc = "Bits 8:11 - no public"]
45 #[inline(always)]
46 pub fn amp_rst_fb_fsm(&self) -> AMP_RST_FB_FSM_R {
47 AMP_RST_FB_FSM_R::new(((self.bits >> 8) & 0x0f) as u8)
48 }
49 #[doc = "Bits 12:15 - no public"]
50 #[inline(always)]
51 pub fn amp_short_ref_fsm(&self) -> AMP_SHORT_REF_FSM_R {
52 AMP_SHORT_REF_FSM_R::new(((self.bits >> 12) & 0x0f) as u8)
53 }
54 #[doc = "Bits 16:19 - no public"]
55 #[inline(always)]
56 pub fn amp_short_ref_gnd_fsm(&self) -> AMP_SHORT_REF_GND_FSM_R {
57 AMP_SHORT_REF_GND_FSM_R::new(((self.bits >> 16) & 0x0f) as u8)
58 }
59 #[doc = "Bits 20:23 - no public"]
60 #[inline(always)]
61 pub fn xpd_sar_fsm(&self) -> XPD_SAR_FSM_R {
62 XPD_SAR_FSM_R::new(((self.bits >> 20) & 0x0f) as u8)
63 }
64 #[doc = "Bits 24:27 - no public"]
65 #[inline(always)]
66 pub fn rstb_fsm(&self) -> RSTB_FSM_R {
67 RSTB_FSM_R::new(((self.bits >> 24) & 0x0f) as u8)
68 }
69}
70#[cfg(feature = "impl-register-debug")]
71impl core::fmt::Debug for R {
72 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
73 f.debug_struct("SAR_AMP_CTRL3")
74 .field("sar1_dac_xpd_fsm", &self.sar1_dac_xpd_fsm())
75 .field("xpd_sar_amp_fsm", &self.xpd_sar_amp_fsm())
76 .field("amp_rst_fb_fsm", &self.amp_rst_fb_fsm())
77 .field("amp_short_ref_fsm", &self.amp_short_ref_fsm())
78 .field("amp_short_ref_gnd_fsm", &self.amp_short_ref_gnd_fsm())
79 .field("xpd_sar_fsm", &self.xpd_sar_fsm())
80 .field("rstb_fsm", &self.rstb_fsm())
81 .finish()
82 }
83}
84impl W {
85 #[doc = "Bits 0:3 - no public"]
86 #[inline(always)]
87 pub fn sar1_dac_xpd_fsm(&mut self) -> SAR1_DAC_XPD_FSM_W<SAR_AMP_CTRL3_SPEC> {
88 SAR1_DAC_XPD_FSM_W::new(self, 0)
89 }
90 #[doc = "Bits 4:7 - no public"]
91 #[inline(always)]
92 pub fn xpd_sar_amp_fsm(&mut self) -> XPD_SAR_AMP_FSM_W<SAR_AMP_CTRL3_SPEC> {
93 XPD_SAR_AMP_FSM_W::new(self, 4)
94 }
95 #[doc = "Bits 8:11 - no public"]
96 #[inline(always)]
97 pub fn amp_rst_fb_fsm(&mut self) -> AMP_RST_FB_FSM_W<SAR_AMP_CTRL3_SPEC> {
98 AMP_RST_FB_FSM_W::new(self, 8)
99 }
100 #[doc = "Bits 12:15 - no public"]
101 #[inline(always)]
102 pub fn amp_short_ref_fsm(&mut self) -> AMP_SHORT_REF_FSM_W<SAR_AMP_CTRL3_SPEC> {
103 AMP_SHORT_REF_FSM_W::new(self, 12)
104 }
105 #[doc = "Bits 16:19 - no public"]
106 #[inline(always)]
107 pub fn amp_short_ref_gnd_fsm(&mut self) -> AMP_SHORT_REF_GND_FSM_W<SAR_AMP_CTRL3_SPEC> {
108 AMP_SHORT_REF_GND_FSM_W::new(self, 16)
109 }
110 #[doc = "Bits 20:23 - no public"]
111 #[inline(always)]
112 pub fn xpd_sar_fsm(&mut self) -> XPD_SAR_FSM_W<SAR_AMP_CTRL3_SPEC> {
113 XPD_SAR_FSM_W::new(self, 20)
114 }
115 #[doc = "Bits 24:27 - no public"]
116 #[inline(always)]
117 pub fn rstb_fsm(&mut self) -> RSTB_FSM_W<SAR_AMP_CTRL3_SPEC> {
118 RSTB_FSM_W::new(self, 24)
119 }
120}
121#[doc = "no public\n\nYou can [`read`](crate::Reg::read) this register and get [`sar_amp_ctrl3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sar_amp_ctrl3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
122pub struct SAR_AMP_CTRL3_SPEC;
123impl crate::RegisterSpec for SAR_AMP_CTRL3_SPEC {
124 type Ux = u32;
125}
126#[doc = "`read()` method returns [`sar_amp_ctrl3::R`](R) reader structure"]
127impl crate::Readable for SAR_AMP_CTRL3_SPEC {}
128#[doc = "`write(|w| ..)` method takes [`sar_amp_ctrl3::W`](W) writer structure"]
129impl crate::Writable for SAR_AMP_CTRL3_SPEC {
130 type Safety = crate::Unsafe;
131}
132#[doc = "`reset()` method sets SAR_AMP_CTRL3 to value 0x0073_38f3"]
133impl crate::Resettable for SAR_AMP_CTRL3_SPEC {
134 const RESET_VALUE: u32 = 0x0073_38f3;
135}