stm32f4_staging/stm32f407/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/STM32F407.html#EXTI:IMR)
49
50For information about available fields see [`mod@imr`] module*/
51pub type IMR = crate::Reg<imr::IMRrs>;
52///Interrupt mask register (EXTI_IMR)
53pub mod imr;
54/**EMR (rw) register accessor: Event mask register (EXTI_EMR)
55
56You 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).
57
58See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F407.html#EXTI:EMR)
59
60For information about available fields see [`mod@emr`] module*/
61pub type EMR = crate::Reg<emr::EMRrs>;
62///Event mask register (EXTI_EMR)
63pub mod emr;
64/**RTSR (rw) register accessor: Rising Trigger selection register (EXTI_RTSR)
65
66You 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).
67
68See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F407.html#EXTI:RTSR)
69
70For information about available fields see [`mod@rtsr`] module*/
71pub type RTSR = crate::Reg<rtsr::RTSRrs>;
72///Rising Trigger selection register (EXTI_RTSR)
73pub mod rtsr;
74/**FTSR (rw) register accessor: Falling Trigger selection register (EXTI_FTSR)
75
76You 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).
77
78See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F407.html#EXTI:FTSR)
79
80For information about available fields see [`mod@ftsr`] module*/
81pub type FTSR = crate::Reg<ftsr::FTSRrs>;
82///Falling Trigger selection register (EXTI_FTSR)
83pub mod ftsr;
84/**SWIER (rw) register accessor: Software interrupt event register (EXTI_SWIER)
85
86You 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).
87
88See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F407.html#EXTI:SWIER)
89
90For information about available fields see [`mod@swier`] module*/
91pub type SWIER = crate::Reg<swier::SWIERrs>;
92///Software interrupt event register (EXTI_SWIER)
93pub mod swier;
94/**PR (rw) register accessor: Pending register (EXTI_PR)
95
96You 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).
97
98See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F407.html#EXTI:PR)
99
100For information about available fields see [`mod@pr`] module*/
101pub type PR = crate::Reg<pr::PRrs>;
102///Pending register (EXTI_PR)
103pub mod pr;