rp2040_pac/io_bank0/gpio/
gpio_status.rs

1#[doc = "Register `GPIO_STATUS` reader"]
2pub type R = crate::R<GPIO_STATUS_SPEC>;
3#[doc = "Field `OUTFROMPERI` reader - output signal from selected peripheral, before register override is applied"]
4pub type OUTFROMPERI_R = crate::BitReader;
5#[doc = "Field `OUTTOPAD` reader - output signal to pad after register override is applied"]
6pub type OUTTOPAD_R = crate::BitReader;
7#[doc = "Field `OEFROMPERI` reader - output enable from selected peripheral, before register override is applied"]
8pub type OEFROMPERI_R = crate::BitReader;
9#[doc = "Field `OETOPAD` reader - output enable to pad after register override is applied"]
10pub type OETOPAD_R = crate::BitReader;
11#[doc = "Field `INFROMPAD` reader - input signal from pad, before override is applied"]
12pub type INFROMPAD_R = crate::BitReader;
13#[doc = "Field `INTOPERI` reader - input signal to peripheral, after override is applied"]
14pub type INTOPERI_R = crate::BitReader;
15#[doc = "Field `IRQFROMPAD` reader - interrupt from pad before override is applied"]
16pub type IRQFROMPAD_R = crate::BitReader;
17#[doc = "Field `IRQTOPROC` reader - interrupt to processors, after override is applied"]
18pub type IRQTOPROC_R = crate::BitReader;
19impl R {
20    #[doc = "Bit 8 - output signal from selected peripheral, before register override is applied"]
21    #[inline(always)]
22    pub fn outfromperi(&self) -> OUTFROMPERI_R {
23        OUTFROMPERI_R::new(((self.bits >> 8) & 1) != 0)
24    }
25    #[doc = "Bit 9 - output signal to pad after register override is applied"]
26    #[inline(always)]
27    pub fn outtopad(&self) -> OUTTOPAD_R {
28        OUTTOPAD_R::new(((self.bits >> 9) & 1) != 0)
29    }
30    #[doc = "Bit 12 - output enable from selected peripheral, before register override is applied"]
31    #[inline(always)]
32    pub fn oefromperi(&self) -> OEFROMPERI_R {
33        OEFROMPERI_R::new(((self.bits >> 12) & 1) != 0)
34    }
35    #[doc = "Bit 13 - output enable to pad after register override is applied"]
36    #[inline(always)]
37    pub fn oetopad(&self) -> OETOPAD_R {
38        OETOPAD_R::new(((self.bits >> 13) & 1) != 0)
39    }
40    #[doc = "Bit 17 - input signal from pad, before override is applied"]
41    #[inline(always)]
42    pub fn infrompad(&self) -> INFROMPAD_R {
43        INFROMPAD_R::new(((self.bits >> 17) & 1) != 0)
44    }
45    #[doc = "Bit 19 - input signal to peripheral, after override is applied"]
46    #[inline(always)]
47    pub fn intoperi(&self) -> INTOPERI_R {
48        INTOPERI_R::new(((self.bits >> 19) & 1) != 0)
49    }
50    #[doc = "Bit 24 - interrupt from pad before override is applied"]
51    #[inline(always)]
52    pub fn irqfrompad(&self) -> IRQFROMPAD_R {
53        IRQFROMPAD_R::new(((self.bits >> 24) & 1) != 0)
54    }
55    #[doc = "Bit 26 - interrupt to processors, after override is applied"]
56    #[inline(always)]
57    pub fn irqtoproc(&self) -> IRQTOPROC_R {
58        IRQTOPROC_R::new(((self.bits >> 26) & 1) != 0)
59    }
60}
61#[doc = "GPIO status  
62
63You can [`read`](crate::generic::Reg::read) this register and get [`gpio_status::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
64pub struct GPIO_STATUS_SPEC;
65impl crate::RegisterSpec for GPIO_STATUS_SPEC {
66    type Ux = u32;
67}
68#[doc = "`read()` method returns [`gpio_status::R`](R) reader structure"]
69impl crate::Readable for GPIO_STATUS_SPEC {}
70#[doc = "`reset()` method sets GPIO_STATUS to value 0"]
71impl crate::Resettable for GPIO_STATUS_SPEC {
72    const RESET_VALUE: u32 = 0;
73}