stm32f4_staging/stm32f401/
syscfg.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    memrmp: MEMRMP,
6    pmc: PMC,
7    exticr1: EXTICR1,
8    exticr2: EXTICR2,
9    exticr3: EXTICR3,
10    exticr4: EXTICR4,
11    _reserved6: [u8; 0x08],
12    cmpcr: CMPCR,
13}
14impl RegisterBlock {
15    ///0x00 - memory remap register
16    #[inline(always)]
17    pub const fn memrmp(&self) -> &MEMRMP {
18        &self.memrmp
19    }
20    ///0x04 - peripheral mode configuration register
21    #[inline(always)]
22    pub const fn pmc(&self) -> &PMC {
23        &self.pmc
24    }
25    ///0x08 - external interrupt configuration register 1
26    #[inline(always)]
27    pub const fn exticr1(&self) -> &EXTICR1 {
28        &self.exticr1
29    }
30    ///0x0c - external interrupt configuration register 2
31    #[inline(always)]
32    pub const fn exticr2(&self) -> &EXTICR2 {
33        &self.exticr2
34    }
35    ///0x10 - external interrupt configuration register 3
36    #[inline(always)]
37    pub const fn exticr3(&self) -> &EXTICR3 {
38        &self.exticr3
39    }
40    ///0x14 - external interrupt configuration register 4
41    #[inline(always)]
42    pub const fn exticr4(&self) -> &EXTICR4 {
43        &self.exticr4
44    }
45    ///0x20 - Compensation cell control register
46    #[inline(always)]
47    pub const fn cmpcr(&self) -> &CMPCR {
48        &self.cmpcr
49    }
50}
51/**MEMRMP (rw) register accessor: memory remap register
52
53You can [`read`](crate::Reg::read) this register and get [`memrmp::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`memrmp::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
54
55See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F401.html#SYSCFG:MEMRMP)
56
57For information about available fields see [`mod@memrmp`] module*/
58pub type MEMRMP = crate::Reg<memrmp::MEMRMPrs>;
59///memory remap register
60pub mod memrmp;
61/**PMC (rw) register accessor: peripheral mode configuration register
62
63You can [`read`](crate::Reg::read) this register and get [`pmc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
64
65See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F401.html#SYSCFG:PMC)
66
67For information about available fields see [`mod@pmc`] module*/
68pub type PMC = crate::Reg<pmc::PMCrs>;
69///peripheral mode configuration register
70pub mod pmc;
71/**EXTICR1 (rw) register accessor: external interrupt configuration register 1
72
73You can [`read`](crate::Reg::read) this register and get [`exticr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
74
75See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F401.html#SYSCFG:EXTICR1)
76
77For information about available fields see [`mod@exticr1`] module*/
78pub type EXTICR1 = crate::Reg<exticr1::EXTICR1rs>;
79///external interrupt configuration register 1
80pub mod exticr1;
81/**EXTICR2 (rw) register accessor: external interrupt configuration register 2
82
83You can [`read`](crate::Reg::read) this register and get [`exticr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr2::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/STM32F401.html#SYSCFG:EXTICR2)
86
87For information about available fields see [`mod@exticr2`] module*/
88pub type EXTICR2 = crate::Reg<exticr2::EXTICR2rs>;
89///external interrupt configuration register 2
90pub mod exticr2;
91/**EXTICR3 (rw) register accessor: external interrupt configuration register 3
92
93You can [`read`](crate::Reg::read) this register and get [`exticr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
94
95See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F401.html#SYSCFG:EXTICR3)
96
97For information about available fields see [`mod@exticr3`] module*/
98pub type EXTICR3 = crate::Reg<exticr3::EXTICR3rs>;
99///external interrupt configuration register 3
100pub mod exticr3;
101/**EXTICR4 (rw) register accessor: external interrupt configuration register 4
102
103You can [`read`](crate::Reg::read) this register and get [`exticr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
104
105See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F401.html#SYSCFG:EXTICR4)
106
107For information about available fields see [`mod@exticr4`] module*/
108pub type EXTICR4 = crate::Reg<exticr4::EXTICR4rs>;
109///external interrupt configuration register 4
110pub mod exticr4;
111/**CMPCR (r) register accessor: Compensation cell control register
112
113You can [`read`](crate::Reg::read) this register and get [`cmpcr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
114
115See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F401.html#SYSCFG:CMPCR)
116
117For information about available fields see [`mod@cmpcr`] module*/
118pub type CMPCR = crate::Reg<cmpcr::CMPCRrs>;
119///Compensation cell control register
120pub mod cmpcr;