eos_s3/intr_ctrl/
gpio_intr_raw.rs

1#[doc = "Register `GPIO_INTR_RAW` reader"]
2pub struct R(crate::R<GPIO_INTR_RAW_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<GPIO_INTR_RAW_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<GPIO_INTR_RAW_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<GPIO_INTR_RAW_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `GPIO_0_INTR_RAW` reader - Raw interrupt for GPIO_0. This register will reflect the value of the IO regardless of the type/polarity"]
17pub struct GPIO_0_INTR_RAW_R(crate::FieldReader<bool, bool>);
18impl GPIO_0_INTR_RAW_R {
19    #[inline(always)]
20    pub(crate) fn new(bits: bool) -> Self {
21        GPIO_0_INTR_RAW_R(crate::FieldReader::new(bits))
22    }
23}
24impl core::ops::Deref for GPIO_0_INTR_RAW_R {
25    type Target = crate::FieldReader<bool, bool>;
26    #[inline(always)]
27    fn deref(&self) -> &Self::Target {
28        &self.0
29    }
30}
31#[doc = "Field `GPIO_1_INTR_RAW` reader - Raw interrupt for GPIO_1. This register will reflect the value of the IO regardless of the type/polarity"]
32pub struct GPIO_1_INTR_RAW_R(crate::FieldReader<bool, bool>);
33impl GPIO_1_INTR_RAW_R {
34    #[inline(always)]
35    pub(crate) fn new(bits: bool) -> Self {
36        GPIO_1_INTR_RAW_R(crate::FieldReader::new(bits))
37    }
38}
39impl core::ops::Deref for GPIO_1_INTR_RAW_R {
40    type Target = crate::FieldReader<bool, bool>;
41    #[inline(always)]
42    fn deref(&self) -> &Self::Target {
43        &self.0
44    }
45}
46#[doc = "Field `GPIO_2_INTR_RAW` reader - Raw interrupt for GPIO_2. This register will reflect the value of the IO regardless of the type/polarity"]
47pub struct GPIO_2_INTR_RAW_R(crate::FieldReader<bool, bool>);
48impl GPIO_2_INTR_RAW_R {
49    #[inline(always)]
50    pub(crate) fn new(bits: bool) -> Self {
51        GPIO_2_INTR_RAW_R(crate::FieldReader::new(bits))
52    }
53}
54impl core::ops::Deref for GPIO_2_INTR_RAW_R {
55    type Target = crate::FieldReader<bool, bool>;
56    #[inline(always)]
57    fn deref(&self) -> &Self::Target {
58        &self.0
59    }
60}
61#[doc = "Field `GPIO_3_INTR_RAW` reader - Raw interrupt for GPIO_3. This register will reflect the value of the IO regardless of the type/polarity"]
62pub struct GPIO_3_INTR_RAW_R(crate::FieldReader<bool, bool>);
63impl GPIO_3_INTR_RAW_R {
64    #[inline(always)]
65    pub(crate) fn new(bits: bool) -> Self {
66        GPIO_3_INTR_RAW_R(crate::FieldReader::new(bits))
67    }
68}
69impl core::ops::Deref for GPIO_3_INTR_RAW_R {
70    type Target = crate::FieldReader<bool, bool>;
71    #[inline(always)]
72    fn deref(&self) -> &Self::Target {
73        &self.0
74    }
75}
76#[doc = "Field `GPIO_4_INTR_RAW` reader - Raw interrupt for GPIO_4. This register will reflect the value of the IO regardless of the type/polarity"]
77pub struct GPIO_4_INTR_RAW_R(crate::FieldReader<bool, bool>);
78impl GPIO_4_INTR_RAW_R {
79    #[inline(always)]
80    pub(crate) fn new(bits: bool) -> Self {
81        GPIO_4_INTR_RAW_R(crate::FieldReader::new(bits))
82    }
83}
84impl core::ops::Deref for GPIO_4_INTR_RAW_R {
85    type Target = crate::FieldReader<bool, bool>;
86    #[inline(always)]
87    fn deref(&self) -> &Self::Target {
88        &self.0
89    }
90}
91#[doc = "Field `GPIO_5_INTR_RAW` reader - Raw interrupt for GPIO_5. This register will reflect the value of the IO regardless of the type/polarity"]
92pub struct GPIO_5_INTR_RAW_R(crate::FieldReader<bool, bool>);
93impl GPIO_5_INTR_RAW_R {
94    #[inline(always)]
95    pub(crate) fn new(bits: bool) -> Self {
96        GPIO_5_INTR_RAW_R(crate::FieldReader::new(bits))
97    }
98}
99impl core::ops::Deref for GPIO_5_INTR_RAW_R {
100    type Target = crate::FieldReader<bool, bool>;
101    #[inline(always)]
102    fn deref(&self) -> &Self::Target {
103        &self.0
104    }
105}
106#[doc = "Field `GPIO_6_INTR_RAW` reader - Raw interrupt for GPIO_6. This register will reflect the value of the IO regardless of the type/polarity"]
107pub struct GPIO_6_INTR_RAW_R(crate::FieldReader<bool, bool>);
108impl GPIO_6_INTR_RAW_R {
109    #[inline(always)]
110    pub(crate) fn new(bits: bool) -> Self {
111        GPIO_6_INTR_RAW_R(crate::FieldReader::new(bits))
112    }
113}
114impl core::ops::Deref for GPIO_6_INTR_RAW_R {
115    type Target = crate::FieldReader<bool, bool>;
116    #[inline(always)]
117    fn deref(&self) -> &Self::Target {
118        &self.0
119    }
120}
121#[doc = "Field `GPIO_7_INTR_RAW` reader - Raw interrupt for GPIO_7. This register will reflect the value of the IO regardless of the type/polarity"]
122pub struct GPIO_7_INTR_RAW_R(crate::FieldReader<bool, bool>);
123impl GPIO_7_INTR_RAW_R {
124    #[inline(always)]
125    pub(crate) fn new(bits: bool) -> Self {
126        GPIO_7_INTR_RAW_R(crate::FieldReader::new(bits))
127    }
128}
129impl core::ops::Deref for GPIO_7_INTR_RAW_R {
130    type Target = crate::FieldReader<bool, bool>;
131    #[inline(always)]
132    fn deref(&self) -> &Self::Target {
133        &self.0
134    }
135}
136impl R {
137    #[doc = "Bit 0 - Raw interrupt for GPIO_0. This register will reflect the value of the IO regardless of the type/polarity"]
138    #[inline(always)]
139    pub fn gpio_0_intr_raw(&self) -> GPIO_0_INTR_RAW_R {
140        GPIO_0_INTR_RAW_R::new((self.bits & 0x01) != 0)
141    }
142    #[doc = "Bit 1 - Raw interrupt for GPIO_1. This register will reflect the value of the IO regardless of the type/polarity"]
143    #[inline(always)]
144    pub fn gpio_1_intr_raw(&self) -> GPIO_1_INTR_RAW_R {
145        GPIO_1_INTR_RAW_R::new(((self.bits >> 1) & 0x01) != 0)
146    }
147    #[doc = "Bit 2 - Raw interrupt for GPIO_2. This register will reflect the value of the IO regardless of the type/polarity"]
148    #[inline(always)]
149    pub fn gpio_2_intr_raw(&self) -> GPIO_2_INTR_RAW_R {
150        GPIO_2_INTR_RAW_R::new(((self.bits >> 2) & 0x01) != 0)
151    }
152    #[doc = "Bit 3 - Raw interrupt for GPIO_3. This register will reflect the value of the IO regardless of the type/polarity"]
153    #[inline(always)]
154    pub fn gpio_3_intr_raw(&self) -> GPIO_3_INTR_RAW_R {
155        GPIO_3_INTR_RAW_R::new(((self.bits >> 3) & 0x01) != 0)
156    }
157    #[doc = "Bit 4 - Raw interrupt for GPIO_4. This register will reflect the value of the IO regardless of the type/polarity"]
158    #[inline(always)]
159    pub fn gpio_4_intr_raw(&self) -> GPIO_4_INTR_RAW_R {
160        GPIO_4_INTR_RAW_R::new(((self.bits >> 4) & 0x01) != 0)
161    }
162    #[doc = "Bit 5 - Raw interrupt for GPIO_5. This register will reflect the value of the IO regardless of the type/polarity"]
163    #[inline(always)]
164    pub fn gpio_5_intr_raw(&self) -> GPIO_5_INTR_RAW_R {
165        GPIO_5_INTR_RAW_R::new(((self.bits >> 5) & 0x01) != 0)
166    }
167    #[doc = "Bit 6 - Raw interrupt for GPIO_6. This register will reflect the value of the IO regardless of the type/polarity"]
168    #[inline(always)]
169    pub fn gpio_6_intr_raw(&self) -> GPIO_6_INTR_RAW_R {
170        GPIO_6_INTR_RAW_R::new(((self.bits >> 6) & 0x01) != 0)
171    }
172    #[doc = "Bit 7 - Raw interrupt for GPIO_7. This register will reflect the value of the IO regardless of the type/polarity"]
173    #[inline(always)]
174    pub fn gpio_7_intr_raw(&self) -> GPIO_7_INTR_RAW_R {
175        GPIO_7_INTR_RAW_R::new(((self.bits >> 7) & 0x01) != 0)
176    }
177}
178#[doc = "GPIO raw interrupt indicators\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gpio_intr_raw](index.html) module"]
179pub struct GPIO_INTR_RAW_SPEC;
180impl crate::RegisterSpec for GPIO_INTR_RAW_SPEC {
181    type Ux = u32;
182}
183#[doc = "`read()` method returns [gpio_intr_raw::R](R) reader structure"]
184impl crate::Readable for GPIO_INTR_RAW_SPEC {
185    type Reader = R;
186}
187#[doc = "`reset()` method sets GPIO_INTR_RAW to value 0"]
188impl crate::Resettable for GPIO_INTR_RAW_SPEC {
189    #[inline(always)]
190    fn reset_value() -> Self::Ux {
191        0
192    }
193}