stm32f7/stm32f733/flash.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 acr: ACR,
6 keyr: KEYR,
7 optkeyr: OPTKEYR,
8 sr: SR,
9 cr: CR,
10 optcr: OPTCR,
11 optcr1: OPTCR1,
12 optcr2: OPTCR2,
13}
14impl RegisterBlock {
15 ///0x00 - Flash access control register
16 #[inline(always)]
17 pub const fn acr(&self) -> &ACR {
18 &self.acr
19 }
20 ///0x04 - Flash key register
21 #[inline(always)]
22 pub const fn keyr(&self) -> &KEYR {
23 &self.keyr
24 }
25 ///0x08 - Flash option key register
26 #[inline(always)]
27 pub const fn optkeyr(&self) -> &OPTKEYR {
28 &self.optkeyr
29 }
30 ///0x0c - Status register
31 #[inline(always)]
32 pub const fn sr(&self) -> &SR {
33 &self.sr
34 }
35 ///0x10 - Control register
36 #[inline(always)]
37 pub const fn cr(&self) -> &CR {
38 &self.cr
39 }
40 ///0x14 - Flash option control register
41 #[inline(always)]
42 pub const fn optcr(&self) -> &OPTCR {
43 &self.optcr
44 }
45 ///0x18 - Flash option control register 1
46 #[inline(always)]
47 pub const fn optcr1(&self) -> &OPTCR1 {
48 &self.optcr1
49 }
50 ///0x1c - Flash option control register
51 #[inline(always)]
52 pub const fn optcr2(&self) -> &OPTCR2 {
53 &self.optcr2
54 }
55}
56/**ACR (rw) register accessor: Flash access control register
57
58You can [`read`](crate::Reg::read) this register and get [`acr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`acr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
59
60See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:ACR)
61
62For information about available fields see [`mod@acr`] module*/
63pub type ACR = crate::Reg<acr::ACRrs>;
64///Flash access control register
65pub mod acr;
66/**KEYR (w) register accessor: Flash key register
67
68You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
69
70See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:KEYR)
71
72For information about available fields see [`mod@keyr`] module*/
73pub type KEYR = crate::Reg<keyr::KEYRrs>;
74///Flash key register
75pub mod keyr;
76/**OPTKEYR (w) register accessor: Flash option key register
77
78You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`optkeyr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
79
80See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:OPTKEYR)
81
82For information about available fields see [`mod@optkeyr`] module*/
83pub type OPTKEYR = crate::Reg<optkeyr::OPTKEYRrs>;
84///Flash option key register
85pub mod optkeyr;
86/**SR (rw) register accessor: Status register
87
88You can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
89
90See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:SR)
91
92For information about available fields see [`mod@sr`] module*/
93pub type SR = crate::Reg<sr::SRrs>;
94///Status register
95pub mod sr;
96/**CR (rw) register accessor: Control register
97
98You can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
99
100See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:CR)
101
102For information about available fields see [`mod@cr`] module*/
103pub type CR = crate::Reg<cr::CRrs>;
104///Control register
105pub mod cr;
106/**OPTCR (rw) register accessor: Flash option control register
107
108You can [`read`](crate::Reg::read) this register and get [`optcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`optcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
109
110See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:OPTCR)
111
112For information about available fields see [`mod@optcr`] module*/
113pub type OPTCR = crate::Reg<optcr::OPTCRrs>;
114///Flash option control register
115pub mod optcr;
116/**OPTCR1 (rw) register accessor: Flash option control register 1
117
118You can [`read`](crate::Reg::read) this register and get [`optcr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`optcr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
119
120See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:OPTCR1)
121
122For information about available fields see [`mod@optcr1`] module*/
123pub type OPTCR1 = crate::Reg<optcr1::OPTCR1rs>;
124///Flash option control register 1
125pub mod optcr1;
126/**OPTCR2 (rw) register accessor: Flash option control register
127
128You can [`read`](crate::Reg::read) this register and get [`optcr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`optcr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
129
130See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#FLASH:OPTCR2)
131
132For information about available fields see [`mod@optcr2`] module*/
133pub type OPTCR2 = crate::Reg<optcr2::OPTCR2rs>;
134///Flash option control register
135pub mod optcr2;