stm32f3_staging/stm32f373/exti.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 imr: IMR,
6 emr: EMR,
7 rtsr: RTSR,
8 ftsr: FTSR,
9 swier: SWIER,
10 pr: PR,
11}
12impl RegisterBlock {
13 ///0x00 - Interrupt mask register (EXTI_IMR)
14 #[inline(always)]
15 pub const fn imr(&self) -> &IMR {
16 &self.imr
17 }
18 ///0x04 - Event mask register (EXTI_EMR)
19 #[inline(always)]
20 pub const fn emr(&self) -> &EMR {
21 &self.emr
22 }
23 ///0x08 - Rising Trigger selection register (EXTI_RTSR)
24 #[inline(always)]
25 pub const fn rtsr(&self) -> &RTSR {
26 &self.rtsr
27 }
28 ///0x0c - Falling Trigger selection register (EXTI_FTSR)
29 #[inline(always)]
30 pub const fn ftsr(&self) -> &FTSR {
31 &self.ftsr
32 }
33 ///0x10 - Software interrupt event register (EXTI_SWIER)
34 #[inline(always)]
35 pub const fn swier(&self) -> &SWIER {
36 &self.swier
37 }
38 ///0x14 - Pending register (EXTI_PR)
39 #[inline(always)]
40 pub const fn pr(&self) -> &PR {
41 &self.pr
42 }
43}
44/**IMR (rw) register accessor: Interrupt mask register (EXTI_IMR)
45
46You can [`read`](crate::Reg::read) this register and get [`imr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`imr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
47
48See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#EXTI:IMR)
49
50For information about available fields see [`mod@imr`]
51module*/
52pub type IMR = crate::Reg<imr::IMRrs>;
53///Interrupt mask register (EXTI_IMR)
54pub mod imr;
55/**EMR (rw) register accessor: Event mask register (EXTI_EMR)
56
57You can [`read`](crate::Reg::read) this register and get [`emr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`emr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
58
59See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#EXTI:EMR)
60
61For information about available fields see [`mod@emr`]
62module*/
63pub type EMR = crate::Reg<emr::EMRrs>;
64///Event mask register (EXTI_EMR)
65pub mod emr;
66/**RTSR (rw) register accessor: Rising Trigger selection register (EXTI_RTSR)
67
68You can [`read`](crate::Reg::read) this register and get [`rtsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
69
70See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#EXTI:RTSR)
71
72For information about available fields see [`mod@rtsr`]
73module*/
74pub type RTSR = crate::Reg<rtsr::RTSRrs>;
75///Rising Trigger selection register (EXTI_RTSR)
76pub mod rtsr;
77/**FTSR (rw) register accessor: Falling Trigger selection register (EXTI_FTSR)
78
79You can [`read`](crate::Reg::read) this register and get [`ftsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ftsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
80
81See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#EXTI:FTSR)
82
83For information about available fields see [`mod@ftsr`]
84module*/
85pub type FTSR = crate::Reg<ftsr::FTSRrs>;
86///Falling Trigger selection register (EXTI_FTSR)
87pub mod ftsr;
88/**SWIER (rw) register accessor: Software interrupt event register (EXTI_SWIER)
89
90You can [`read`](crate::Reg::read) this register and get [`swier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
91
92See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#EXTI:SWIER)
93
94For information about available fields see [`mod@swier`]
95module*/
96pub type SWIER = crate::Reg<swier::SWIERrs>;
97///Software interrupt event register (EXTI_SWIER)
98pub mod swier;
99/**PR (rw) register accessor: Pending register (EXTI_PR)
100
101You can [`read`](crate::Reg::read) this register and get [`pr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
102
103See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#EXTI:PR)
104
105For information about available fields see [`mod@pr`]
106module*/
107pub type PR = crate::Reg<pr::PRrs>;
108///Pending register (EXTI_PR)
109pub mod pr;