esp32s3/sens/
sar_touch_status13.rs

1#[doc = "Register `SAR_TOUCH_STATUS13` reader"]
2pub type R = crate::R<SAR_TOUCH_STATUS13_SPEC>;
3#[doc = "Field `SAR_TOUCH_PAD13_DATA` reader - touch data debounce of touch pad 13"]
4pub type SAR_TOUCH_PAD13_DATA_R = crate::FieldReader<u32>;
5#[doc = "Field `SAR_TOUCH_PAD13_DEBOUNCE` reader - touch current debounce of touch pad 13"]
6pub type SAR_TOUCH_PAD13_DEBOUNCE_R = crate::FieldReader;
7impl R {
8    #[doc = "Bits 0:21 - touch data debounce of touch pad 13"]
9    #[inline(always)]
10    pub fn sar_touch_pad13_data(&self) -> SAR_TOUCH_PAD13_DATA_R {
11        SAR_TOUCH_PAD13_DATA_R::new(self.bits & 0x003f_ffff)
12    }
13    #[doc = "Bits 29:31 - touch current debounce of touch pad 13"]
14    #[inline(always)]
15    pub fn sar_touch_pad13_debounce(&self) -> SAR_TOUCH_PAD13_DEBOUNCE_R {
16        SAR_TOUCH_PAD13_DEBOUNCE_R::new(((self.bits >> 29) & 7) as u8)
17    }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22        f.debug_struct("SAR_TOUCH_STATUS13")
23            .field("sar_touch_pad13_data", &self.sar_touch_pad13_data())
24            .field("sar_touch_pad13_debounce", &self.sar_touch_pad13_debounce())
25            .finish()
26    }
27}
28#[doc = "touch channel status of touch pad 13\n\nYou can [`read`](crate::Reg::read) this register and get [`sar_touch_status13::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct SAR_TOUCH_STATUS13_SPEC;
30impl crate::RegisterSpec for SAR_TOUCH_STATUS13_SPEC {
31    type Ux = u32;
32}
33#[doc = "`read()` method returns [`sar_touch_status13::R`](R) reader structure"]
34impl crate::Readable for SAR_TOUCH_STATUS13_SPEC {}
35#[doc = "`reset()` method sets SAR_TOUCH_STATUS13 to value 0"]
36impl crate::Resettable for SAR_TOUCH_STATUS13_SPEC {}