esp32s3/sens/
sar_meas1_ctrl1.rs1#[doc = "Register `SAR_MEAS1_CTRL1` reader"]
2pub type R = crate::R<SAR_MEAS1_CTRL1_SPEC>;
3#[doc = "Register `SAR_MEAS1_CTRL1` writer"]
4pub type W = crate::W<SAR_MEAS1_CTRL1_SPEC>;
5#[doc = "Field `FORCE_XPD_AMP` reader - no public"]
6pub type FORCE_XPD_AMP_R = crate::FieldReader;
7#[doc = "Field `FORCE_XPD_AMP` writer - no public"]
8pub type FORCE_XPD_AMP_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
9#[doc = "Field `AMP_RST_FB_FORCE` reader - no public"]
10pub type AMP_RST_FB_FORCE_R = crate::FieldReader;
11#[doc = "Field `AMP_RST_FB_FORCE` writer - no public"]
12pub type AMP_RST_FB_FORCE_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
13#[doc = "Field `AMP_SHORT_REF_FORCE` reader - no public"]
14pub type AMP_SHORT_REF_FORCE_R = crate::FieldReader;
15#[doc = "Field `AMP_SHORT_REF_FORCE` writer - no public"]
16pub type AMP_SHORT_REF_FORCE_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
17#[doc = "Field `AMP_SHORT_REF_GND_FORCE` reader - no public"]
18pub type AMP_SHORT_REF_GND_FORCE_R = crate::FieldReader;
19#[doc = "Field `AMP_SHORT_REF_GND_FORCE` writer - no public"]
20pub type AMP_SHORT_REF_GND_FORCE_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
21impl R {
22 #[doc = "Bits 24:25 - no public"]
23 #[inline(always)]
24 pub fn force_xpd_amp(&self) -> FORCE_XPD_AMP_R {
25 FORCE_XPD_AMP_R::new(((self.bits >> 24) & 3) as u8)
26 }
27 #[doc = "Bits 26:27 - no public"]
28 #[inline(always)]
29 pub fn amp_rst_fb_force(&self) -> AMP_RST_FB_FORCE_R {
30 AMP_RST_FB_FORCE_R::new(((self.bits >> 26) & 3) as u8)
31 }
32 #[doc = "Bits 28:29 - no public"]
33 #[inline(always)]
34 pub fn amp_short_ref_force(&self) -> AMP_SHORT_REF_FORCE_R {
35 AMP_SHORT_REF_FORCE_R::new(((self.bits >> 28) & 3) as u8)
36 }
37 #[doc = "Bits 30:31 - no public"]
38 #[inline(always)]
39 pub fn amp_short_ref_gnd_force(&self) -> AMP_SHORT_REF_GND_FORCE_R {
40 AMP_SHORT_REF_GND_FORCE_R::new(((self.bits >> 30) & 3) as u8)
41 }
42}
43#[cfg(feature = "impl-register-debug")]
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("SAR_MEAS1_CTRL1")
47 .field("force_xpd_amp", &self.force_xpd_amp())
48 .field("amp_rst_fb_force", &self.amp_rst_fb_force())
49 .field("amp_short_ref_force", &self.amp_short_ref_force())
50 .field("amp_short_ref_gnd_force", &self.amp_short_ref_gnd_force())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bits 24:25 - no public"]
56 #[inline(always)]
57 pub fn force_xpd_amp(&mut self) -> FORCE_XPD_AMP_W<SAR_MEAS1_CTRL1_SPEC> {
58 FORCE_XPD_AMP_W::new(self, 24)
59 }
60 #[doc = "Bits 26:27 - no public"]
61 #[inline(always)]
62 pub fn amp_rst_fb_force(&mut self) -> AMP_RST_FB_FORCE_W<SAR_MEAS1_CTRL1_SPEC> {
63 AMP_RST_FB_FORCE_W::new(self, 26)
64 }
65 #[doc = "Bits 28:29 - no public"]
66 #[inline(always)]
67 pub fn amp_short_ref_force(&mut self) -> AMP_SHORT_REF_FORCE_W<SAR_MEAS1_CTRL1_SPEC> {
68 AMP_SHORT_REF_FORCE_W::new(self, 28)
69 }
70 #[doc = "Bits 30:31 - no public"]
71 #[inline(always)]
72 pub fn amp_short_ref_gnd_force(&mut self) -> AMP_SHORT_REF_GND_FORCE_W<SAR_MEAS1_CTRL1_SPEC> {
73 AMP_SHORT_REF_GND_FORCE_W::new(self, 30)
74 }
75}
76#[doc = "no public\n\nYou can [`read`](crate::Reg::read) this register and get [`sar_meas1_ctrl1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sar_meas1_ctrl1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
77pub struct SAR_MEAS1_CTRL1_SPEC;
78impl crate::RegisterSpec for SAR_MEAS1_CTRL1_SPEC {
79 type Ux = u32;
80}
81#[doc = "`read()` method returns [`sar_meas1_ctrl1::R`](R) reader structure"]
82impl crate::Readable for SAR_MEAS1_CTRL1_SPEC {}
83#[doc = "`write(|w| ..)` method takes [`sar_meas1_ctrl1::W`](W) writer structure"]
84impl crate::Writable for SAR_MEAS1_CTRL1_SPEC {
85 type Safety = crate::Unsafe;
86 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
87 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
88}
89#[doc = "`reset()` method sets SAR_MEAS1_CTRL1 to value 0"]
90impl crate::Resettable for SAR_MEAS1_CTRL1_SPEC {
91 const RESET_VALUE: u32 = 0;
92}