esp32s2_ulp/rtc_io/
in_.rs1#[doc = "Register `IN` reader"]
2pub type R = crate::R<IN_SPEC>;
3#[doc = "Field `GPIO_IN_NEXT` reader - GPIO0 ~ 21 input value. Bit10 corresponds to GPIO0, bit11 corresponds to GPIO1, etc. Each bit represents a pad input value, 1 for high level, and 0 for low level."]
4pub type GPIO_IN_NEXT_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 10:31 - GPIO0 ~ 21 input value. Bit10 corresponds to GPIO0, bit11 corresponds to GPIO1, etc. Each bit represents a pad input value, 1 for high level, and 0 for low level."]
7 #[inline(always)]
8 pub fn gpio_in_next(&self) -> GPIO_IN_NEXT_R {
9 GPIO_IN_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("IN")
16 .field("gpio_in_next", &self.gpio_in_next())
17 .finish()
18 }
19}
20#[doc = "RTC GPIO input register\n\nYou can [`read`](crate::Reg::read) this register and get [`in_::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct IN_SPEC;
22impl crate::RegisterSpec for IN_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`in_::R`](R) reader structure"]
26impl crate::Readable for IN_SPEC {}
27#[doc = "`reset()` method sets IN to value 0"]
28impl crate::Resettable for IN_SPEC {
29 const RESET_VALUE: u32 = 0;
30}