esp32s3/rtc_io/
rtc_gpio_in.rs

1#[doc = "Register `RTC_GPIO_IN` reader"]
2pub type R = crate::R<RTC_GPIO_IN_SPEC>;
3#[doc = "Field `NEXT` reader - RTC GPIO input data"]
4pub type NEXT_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 10:31 - RTC GPIO input data"]
7    #[inline(always)]
8    pub fn next(&self) -> NEXT_R {
9        NEXT_R::new((self.bits >> 10) & 0x003f_ffff)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("RTC_GPIO_IN")
16            .field("next", &self.next())
17            .finish()
18    }
19}
20#[doc = "RTC GPIO input data\n\nYou can [`read`](crate::Reg::read) this register and get [`rtc_gpio_in::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct RTC_GPIO_IN_SPEC;
22impl crate::RegisterSpec for RTC_GPIO_IN_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`rtc_gpio_in::R`](R) reader structure"]
26impl crate::Readable for RTC_GPIO_IN_SPEC {}
27#[doc = "`reset()` method sets RTC_GPIO_IN to value 0"]
28impl crate::Resettable for RTC_GPIO_IN_SPEC {
29    const RESET_VALUE: u32 = 0;
30}