stm32f3_staging/stm32f302/exti.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 imr1: IMR1,
6 emr1: EMR1,
7 rtsr1: RTSR1,
8 ftsr1: FTSR1,
9 swier1: SWIER1,
10 pr1: PR1,
11 _reserved6: [u8; 0x08],
12 imr2: IMR2,
13 emr2: EMR2,
14 rtsr2: RTSR2,
15 ftsr2: FTSR2,
16 swier2: SWIER2,
17 pr2: PR2,
18}
19impl RegisterBlock {
20 ///0x00 - Interrupt mask register
21 #[inline(always)]
22 pub const fn imr1(&self) -> &IMR1 {
23 &self.imr1
24 }
25 ///0x04 - Event mask register
26 #[inline(always)]
27 pub const fn emr1(&self) -> &EMR1 {
28 &self.emr1
29 }
30 ///0x08 - Rising Trigger selection register
31 #[inline(always)]
32 pub const fn rtsr1(&self) -> &RTSR1 {
33 &self.rtsr1
34 }
35 ///0x0c - Falling Trigger selection register
36 #[inline(always)]
37 pub const fn ftsr1(&self) -> &FTSR1 {
38 &self.ftsr1
39 }
40 ///0x10 - Software interrupt event register
41 #[inline(always)]
42 pub const fn swier1(&self) -> &SWIER1 {
43 &self.swier1
44 }
45 ///0x14 - Pending register
46 #[inline(always)]
47 pub const fn pr1(&self) -> &PR1 {
48 &self.pr1
49 }
50 ///0x20 - Interrupt mask register
51 #[inline(always)]
52 pub const fn imr2(&self) -> &IMR2 {
53 &self.imr2
54 }
55 ///0x24 - Event mask register
56 #[inline(always)]
57 pub const fn emr2(&self) -> &EMR2 {
58 &self.emr2
59 }
60 ///0x28 - Rising Trigger selection register
61 #[inline(always)]
62 pub const fn rtsr2(&self) -> &RTSR2 {
63 &self.rtsr2
64 }
65 ///0x2c - Falling Trigger selection register
66 #[inline(always)]
67 pub const fn ftsr2(&self) -> &FTSR2 {
68 &self.ftsr2
69 }
70 ///0x30 - Software interrupt event register
71 #[inline(always)]
72 pub const fn swier2(&self) -> &SWIER2 {
73 &self.swier2
74 }
75 ///0x34 - Pending register
76 #[inline(always)]
77 pub const fn pr2(&self) -> &PR2 {
78 &self.pr2
79 }
80}
81/**IMR1 (rw) register accessor: Interrupt mask register
82
83You can [`read`](crate::Reg::read) this register and get [`imr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`imr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
84
85See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:IMR1)
86
87For information about available fields see [`mod@imr1`]
88module*/
89pub type IMR1 = crate::Reg<imr1::IMR1rs>;
90///Interrupt mask register
91pub mod imr1;
92/**EMR1 (rw) register accessor: Event mask register
93
94You can [`read`](crate::Reg::read) this register and get [`emr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`emr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
95
96See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:EMR1)
97
98For information about available fields see [`mod@emr1`]
99module*/
100pub type EMR1 = crate::Reg<emr1::EMR1rs>;
101///Event mask register
102pub mod emr1;
103/**RTSR1 (rw) register accessor: Rising Trigger selection register
104
105You can [`read`](crate::Reg::read) this register and get [`rtsr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtsr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
106
107See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:RTSR1)
108
109For information about available fields see [`mod@rtsr1`]
110module*/
111pub type RTSR1 = crate::Reg<rtsr1::RTSR1rs>;
112///Rising Trigger selection register
113pub mod rtsr1;
114/**FTSR1 (rw) register accessor: Falling Trigger selection register
115
116You can [`read`](crate::Reg::read) this register and get [`ftsr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ftsr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
117
118See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:FTSR1)
119
120For information about available fields see [`mod@ftsr1`]
121module*/
122pub type FTSR1 = crate::Reg<ftsr1::FTSR1rs>;
123///Falling Trigger selection register
124pub mod ftsr1;
125/**SWIER1 (rw) register accessor: Software interrupt event register
126
127You can [`read`](crate::Reg::read) this register and get [`swier1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swier1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
128
129See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:SWIER1)
130
131For information about available fields see [`mod@swier1`]
132module*/
133pub type SWIER1 = crate::Reg<swier1::SWIER1rs>;
134///Software interrupt event register
135pub mod swier1;
136/**PR1 (rw) register accessor: Pending register
137
138You can [`read`](crate::Reg::read) this register and get [`pr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
139
140See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:PR1)
141
142For information about available fields see [`mod@pr1`]
143module*/
144pub type PR1 = crate::Reg<pr1::PR1rs>;
145///Pending register
146pub mod pr1;
147/**IMR2 (rw) register accessor: Interrupt mask register
148
149You can [`read`](crate::Reg::read) this register and get [`imr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`imr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
150
151See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:IMR2)
152
153For information about available fields see [`mod@imr2`]
154module*/
155pub type IMR2 = crate::Reg<imr2::IMR2rs>;
156///Interrupt mask register
157pub mod imr2;
158/**EMR2 (rw) register accessor: Event mask register
159
160You can [`read`](crate::Reg::read) this register and get [`emr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`emr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
161
162See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:EMR2)
163
164For information about available fields see [`mod@emr2`]
165module*/
166pub type EMR2 = crate::Reg<emr2::EMR2rs>;
167///Event mask register
168pub mod emr2;
169/**RTSR2 (rw) register accessor: Rising Trigger selection register
170
171You can [`read`](crate::Reg::read) this register and get [`rtsr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtsr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
172
173See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:RTSR2)
174
175For information about available fields see [`mod@rtsr2`]
176module*/
177pub type RTSR2 = crate::Reg<rtsr2::RTSR2rs>;
178///Rising Trigger selection register
179pub mod rtsr2;
180/**FTSR2 (rw) register accessor: Falling Trigger selection register
181
182You can [`read`](crate::Reg::read) this register and get [`ftsr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ftsr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
183
184See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:FTSR2)
185
186For information about available fields see [`mod@ftsr2`]
187module*/
188pub type FTSR2 = crate::Reg<ftsr2::FTSR2rs>;
189///Falling Trigger selection register
190pub mod ftsr2;
191/**SWIER2 (rw) register accessor: Software interrupt event register
192
193You can [`read`](crate::Reg::read) this register and get [`swier2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swier2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
194
195See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:SWIER2)
196
197For information about available fields see [`mod@swier2`]
198module*/
199pub type SWIER2 = crate::Reg<swier2::SWIER2rs>;
200///Software interrupt event register
201pub mod swier2;
202/**PR2 (rw) register accessor: Pending register
203
204You can [`read`](crate::Reg::read) this register and get [`pr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
205
206See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F302.html#EXTI:PR2)
207
208For information about available fields see [`mod@pr2`]
209module*/
210pub type PR2 = crate::Reg<pr2::PR2rs>;
211///Pending register
212pub mod pr2;