esp32s3/sens/
sar_touch_status14.rs1#[doc = "Register `SAR_TOUCH_STATUS14` reader"]
2pub type R = crate::R<SAR_TOUCH_STATUS14_SPEC>;
3#[doc = "Field `SAR_TOUCH_PAD14_DATA` reader - touch data debounce of touch pad 14"]
4pub type SAR_TOUCH_PAD14_DATA_R = crate::FieldReader<u32>;
5#[doc = "Field `SAR_TOUCH_PAD14_DEBOUNCE` reader - touch current debounce of touch pad 14"]
6pub type SAR_TOUCH_PAD14_DEBOUNCE_R = crate::FieldReader;
7impl R {
8 #[doc = "Bits 0:21 - touch data debounce of touch pad 14"]
9 #[inline(always)]
10 pub fn sar_touch_pad14_data(&self) -> SAR_TOUCH_PAD14_DATA_R {
11 SAR_TOUCH_PAD14_DATA_R::new(self.bits & 0x003f_ffff)
12 }
13 #[doc = "Bits 29:31 - touch current debounce of touch pad 14"]
14 #[inline(always)]
15 pub fn sar_touch_pad14_debounce(&self) -> SAR_TOUCH_PAD14_DEBOUNCE_R {
16 SAR_TOUCH_PAD14_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_STATUS14")
23 .field("sar_touch_pad14_data", &self.sar_touch_pad14_data())
24 .field("sar_touch_pad14_debounce", &self.sar_touch_pad14_debounce())
25 .finish()
26 }
27}
28#[doc = "touch channel status of touch pad 14\n\nYou can [`read`](crate::Reg::read) this register and get [`sar_touch_status14::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct SAR_TOUCH_STATUS14_SPEC;
30impl crate::RegisterSpec for SAR_TOUCH_STATUS14_SPEC {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`sar_touch_status14::R`](R) reader structure"]
34impl crate::Readable for SAR_TOUCH_STATUS14_SPEC {}
35#[doc = "`reset()` method sets SAR_TOUCH_STATUS14 to value 0"]
36impl crate::Resettable for SAR_TOUCH_STATUS14_SPEC {
37 const RESET_VALUE: u32 = 0;
38}