ht32f523x2/exti/
edgeflgr.rs

1#[doc = "Register `EDGEFLGR` reader"]
2pub type R = crate::R<EdgeflgrSpec>;
3#[doc = "Register `EDGEFLGR` writer"]
4pub type W = crate::W<EdgeflgrSpec>;
5#[doc = "Field `EXTI0EDF` reader - EXTI0EDF"]
6pub type Exti0edfR = crate::BitReader;
7#[doc = "Field `EXTI0EDF` writer - EXTI0EDF"]
8pub type Exti0edfW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `EXTI1EDF` reader - EXTI1EDF"]
10pub type Exti1edfR = crate::BitReader;
11#[doc = "Field `EXTI1EDF` writer - EXTI1EDF"]
12pub type Exti1edfW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `EXTI2EDF` reader - EXTI2EDF"]
14pub type Exti2edfR = crate::BitReader;
15#[doc = "Field `EXTI2EDF` writer - EXTI2EDF"]
16pub type Exti2edfW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `EXTI3EDF` reader - EXTI3EDF"]
18pub type Exti3edfR = crate::BitReader;
19#[doc = "Field `EXTI3EDF` writer - EXTI3EDF"]
20pub type Exti3edfW<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `EXTI4EDF` reader - EXTI4EDF"]
22pub type Exti4edfR = crate::BitReader;
23#[doc = "Field `EXTI4EDF` writer - EXTI4EDF"]
24pub type Exti4edfW<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `EXTI5EDF` reader - EXTI5EDF"]
26pub type Exti5edfR = crate::BitReader;
27#[doc = "Field `EXTI5EDF` writer - EXTI5EDF"]
28pub type Exti5edfW<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `EXTI6EDF` reader - EXTI6EDF"]
30pub type Exti6edfR = crate::BitReader;
31#[doc = "Field `EXTI6EDF` writer - EXTI6EDF"]
32pub type Exti6edfW<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `EXTI7EDF` reader - EXTI7EDF"]
34pub type Exti7edfR = crate::BitReader;
35#[doc = "Field `EXTI7EDF` writer - EXTI7EDF"]
36pub type Exti7edfW<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `EXTI8EDF` reader - EXTI8EDF"]
38pub type Exti8edfR = crate::BitReader;
39#[doc = "Field `EXTI8EDF` writer - EXTI8EDF"]
40pub type Exti8edfW<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `EXTI9EDF` reader - EXTI9EDF"]
42pub type Exti9edfR = crate::BitReader;
43#[doc = "Field `EXTI9EDF` writer - EXTI9EDF"]
44pub type Exti9edfW<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `EXTI10EDF` reader - EXTI10EDF"]
46pub type Exti10edfR = crate::BitReader;
47#[doc = "Field `EXTI10EDF` writer - EXTI10EDF"]
48pub type Exti10edfW<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `EXTI11EDF` reader - EXTI11EDF"]
50pub type Exti11edfR = crate::BitReader;
51#[doc = "Field `EXTI11EDF` writer - EXTI11EDF"]
52pub type Exti11edfW<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `EXTI12EDF` reader - EXTI12EDF"]
54pub type Exti12edfR = crate::BitReader;
55#[doc = "Field `EXTI12EDF` writer - EXTI12EDF"]
56pub type Exti12edfW<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `EXTI13EDF` reader - EXTI13EDF"]
58pub type Exti13edfR = crate::BitReader;
59#[doc = "Field `EXTI13EDF` writer - EXTI13EDF"]
60pub type Exti13edfW<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `EXTI14EDF` reader - EXTI14EDF"]
62pub type Exti14edfR = crate::BitReader;
63#[doc = "Field `EXTI14EDF` writer - EXTI14EDF"]
64pub type Exti14edfW<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `EXTI15EDF` reader - EXTI15EDF"]
66pub type Exti15edfR = crate::BitReader;
67#[doc = "Field `EXTI15EDF` writer - EXTI15EDF"]
68pub type Exti15edfW<'a, REG> = crate::BitWriter<'a, REG>;
69impl R {
70    #[doc = "Bit 0 - EXTI0EDF"]
71    #[inline(always)]
72    pub fn exti0edf(&self) -> Exti0edfR {
73        Exti0edfR::new((self.bits & 1) != 0)
74    }
75    #[doc = "Bit 1 - EXTI1EDF"]
76    #[inline(always)]
77    pub fn exti1edf(&self) -> Exti1edfR {
78        Exti1edfR::new(((self.bits >> 1) & 1) != 0)
79    }
80    #[doc = "Bit 2 - EXTI2EDF"]
81    #[inline(always)]
82    pub fn exti2edf(&self) -> Exti2edfR {
83        Exti2edfR::new(((self.bits >> 2) & 1) != 0)
84    }
85    #[doc = "Bit 3 - EXTI3EDF"]
86    #[inline(always)]
87    pub fn exti3edf(&self) -> Exti3edfR {
88        Exti3edfR::new(((self.bits >> 3) & 1) != 0)
89    }
90    #[doc = "Bit 4 - EXTI4EDF"]
91    #[inline(always)]
92    pub fn exti4edf(&self) -> Exti4edfR {
93        Exti4edfR::new(((self.bits >> 4) & 1) != 0)
94    }
95    #[doc = "Bit 5 - EXTI5EDF"]
96    #[inline(always)]
97    pub fn exti5edf(&self) -> Exti5edfR {
98        Exti5edfR::new(((self.bits >> 5) & 1) != 0)
99    }
100    #[doc = "Bit 6 - EXTI6EDF"]
101    #[inline(always)]
102    pub fn exti6edf(&self) -> Exti6edfR {
103        Exti6edfR::new(((self.bits >> 6) & 1) != 0)
104    }
105    #[doc = "Bit 7 - EXTI7EDF"]
106    #[inline(always)]
107    pub fn exti7edf(&self) -> Exti7edfR {
108        Exti7edfR::new(((self.bits >> 7) & 1) != 0)
109    }
110    #[doc = "Bit 8 - EXTI8EDF"]
111    #[inline(always)]
112    pub fn exti8edf(&self) -> Exti8edfR {
113        Exti8edfR::new(((self.bits >> 8) & 1) != 0)
114    }
115    #[doc = "Bit 9 - EXTI9EDF"]
116    #[inline(always)]
117    pub fn exti9edf(&self) -> Exti9edfR {
118        Exti9edfR::new(((self.bits >> 9) & 1) != 0)
119    }
120    #[doc = "Bit 10 - EXTI10EDF"]
121    #[inline(always)]
122    pub fn exti10edf(&self) -> Exti10edfR {
123        Exti10edfR::new(((self.bits >> 10) & 1) != 0)
124    }
125    #[doc = "Bit 11 - EXTI11EDF"]
126    #[inline(always)]
127    pub fn exti11edf(&self) -> Exti11edfR {
128        Exti11edfR::new(((self.bits >> 11) & 1) != 0)
129    }
130    #[doc = "Bit 12 - EXTI12EDF"]
131    #[inline(always)]
132    pub fn exti12edf(&self) -> Exti12edfR {
133        Exti12edfR::new(((self.bits >> 12) & 1) != 0)
134    }
135    #[doc = "Bit 13 - EXTI13EDF"]
136    #[inline(always)]
137    pub fn exti13edf(&self) -> Exti13edfR {
138        Exti13edfR::new(((self.bits >> 13) & 1) != 0)
139    }
140    #[doc = "Bit 14 - EXTI14EDF"]
141    #[inline(always)]
142    pub fn exti14edf(&self) -> Exti14edfR {
143        Exti14edfR::new(((self.bits >> 14) & 1) != 0)
144    }
145    #[doc = "Bit 15 - EXTI15EDF"]
146    #[inline(always)]
147    pub fn exti15edf(&self) -> Exti15edfR {
148        Exti15edfR::new(((self.bits >> 15) & 1) != 0)
149    }
150}
151impl W {
152    #[doc = "Bit 0 - EXTI0EDF"]
153    #[inline(always)]
154    #[must_use]
155    pub fn exti0edf(&mut self) -> Exti0edfW<EdgeflgrSpec> {
156        Exti0edfW::new(self, 0)
157    }
158    #[doc = "Bit 1 - EXTI1EDF"]
159    #[inline(always)]
160    #[must_use]
161    pub fn exti1edf(&mut self) -> Exti1edfW<EdgeflgrSpec> {
162        Exti1edfW::new(self, 1)
163    }
164    #[doc = "Bit 2 - EXTI2EDF"]
165    #[inline(always)]
166    #[must_use]
167    pub fn exti2edf(&mut self) -> Exti2edfW<EdgeflgrSpec> {
168        Exti2edfW::new(self, 2)
169    }
170    #[doc = "Bit 3 - EXTI3EDF"]
171    #[inline(always)]
172    #[must_use]
173    pub fn exti3edf(&mut self) -> Exti3edfW<EdgeflgrSpec> {
174        Exti3edfW::new(self, 3)
175    }
176    #[doc = "Bit 4 - EXTI4EDF"]
177    #[inline(always)]
178    #[must_use]
179    pub fn exti4edf(&mut self) -> Exti4edfW<EdgeflgrSpec> {
180        Exti4edfW::new(self, 4)
181    }
182    #[doc = "Bit 5 - EXTI5EDF"]
183    #[inline(always)]
184    #[must_use]
185    pub fn exti5edf(&mut self) -> Exti5edfW<EdgeflgrSpec> {
186        Exti5edfW::new(self, 5)
187    }
188    #[doc = "Bit 6 - EXTI6EDF"]
189    #[inline(always)]
190    #[must_use]
191    pub fn exti6edf(&mut self) -> Exti6edfW<EdgeflgrSpec> {
192        Exti6edfW::new(self, 6)
193    }
194    #[doc = "Bit 7 - EXTI7EDF"]
195    #[inline(always)]
196    #[must_use]
197    pub fn exti7edf(&mut self) -> Exti7edfW<EdgeflgrSpec> {
198        Exti7edfW::new(self, 7)
199    }
200    #[doc = "Bit 8 - EXTI8EDF"]
201    #[inline(always)]
202    #[must_use]
203    pub fn exti8edf(&mut self) -> Exti8edfW<EdgeflgrSpec> {
204        Exti8edfW::new(self, 8)
205    }
206    #[doc = "Bit 9 - EXTI9EDF"]
207    #[inline(always)]
208    #[must_use]
209    pub fn exti9edf(&mut self) -> Exti9edfW<EdgeflgrSpec> {
210        Exti9edfW::new(self, 9)
211    }
212    #[doc = "Bit 10 - EXTI10EDF"]
213    #[inline(always)]
214    #[must_use]
215    pub fn exti10edf(&mut self) -> Exti10edfW<EdgeflgrSpec> {
216        Exti10edfW::new(self, 10)
217    }
218    #[doc = "Bit 11 - EXTI11EDF"]
219    #[inline(always)]
220    #[must_use]
221    pub fn exti11edf(&mut self) -> Exti11edfW<EdgeflgrSpec> {
222        Exti11edfW::new(self, 11)
223    }
224    #[doc = "Bit 12 - EXTI12EDF"]
225    #[inline(always)]
226    #[must_use]
227    pub fn exti12edf(&mut self) -> Exti12edfW<EdgeflgrSpec> {
228        Exti12edfW::new(self, 12)
229    }
230    #[doc = "Bit 13 - EXTI13EDF"]
231    #[inline(always)]
232    #[must_use]
233    pub fn exti13edf(&mut self) -> Exti13edfW<EdgeflgrSpec> {
234        Exti13edfW::new(self, 13)
235    }
236    #[doc = "Bit 14 - EXTI14EDF"]
237    #[inline(always)]
238    #[must_use]
239    pub fn exti14edf(&mut self) -> Exti14edfW<EdgeflgrSpec> {
240        Exti14edfW::new(self, 14)
241    }
242    #[doc = "Bit 15 - EXTI15EDF"]
243    #[inline(always)]
244    #[must_use]
245    pub fn exti15edf(&mut self) -> Exti15edfW<EdgeflgrSpec> {
246        Exti15edfW::new(self, 15)
247    }
248}
249#[doc = "EDGEFLGR\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`edgeflgr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`edgeflgr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
250pub struct EdgeflgrSpec;
251impl crate::RegisterSpec for EdgeflgrSpec {
252    type Ux = u32;
253}
254#[doc = "`read()` method returns [`edgeflgr::R`](R) reader structure"]
255impl crate::Readable for EdgeflgrSpec {}
256#[doc = "`write(|w| ..)` method takes [`edgeflgr::W`](W) writer structure"]
257impl crate::Writable for EdgeflgrSpec {
258    type Safety = crate::Unsafe;
259    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
260    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
261}
262#[doc = "`reset()` method sets EDGEFLGR to value 0"]
263impl crate::Resettable for EdgeflgrSpec {
264    const RESET_VALUE: u32 = 0;
265}