rp2040_pac/sio/
gpio_in.rs

1#[doc = "Register `GPIO_IN` reader"]
2pub type R = crate::R<GPIO_IN_SPEC>;
3#[doc = "Field `GPIO_IN` reader - Input value for GPIO0...29"]
4pub type GPIO_IN_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:29 - Input value for GPIO0...29"]
7    #[inline(always)]
8    pub fn gpio_in(&self) -> GPIO_IN_R {
9        GPIO_IN_R::new(self.bits & 0x3fff_ffff)
10    }
11}
12#[doc = "Input value for GPIO pins  
13
14You can [`read`](crate::generic::Reg::read) this register and get [`gpio_in::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
15pub struct GPIO_IN_SPEC;
16impl crate::RegisterSpec for GPIO_IN_SPEC {
17    type Ux = u32;
18}
19#[doc = "`read()` method returns [`gpio_in::R`](R) reader structure"]
20impl crate::Readable for GPIO_IN_SPEC {}
21#[doc = "`reset()` method sets GPIO_IN to value 0"]
22impl crate::Resettable for GPIO_IN_SPEC {
23    const RESET_VALUE: u32 = 0;
24}