stm32f4/stm32f469/
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}
13impl RegisterBlock {
14    ///0x00 - Flash access control register
15    #[inline(always)]
16    pub const fn acr(&self) -> &ACR {
17        &self.acr
18    }
19    ///0x04 - Flash key register
20    #[inline(always)]
21    pub const fn keyr(&self) -> &KEYR {
22        &self.keyr
23    }
24    ///0x08 - Flash option key register
25    #[inline(always)]
26    pub const fn optkeyr(&self) -> &OPTKEYR {
27        &self.optkeyr
28    }
29    ///0x0c - Status register
30    #[inline(always)]
31    pub const fn sr(&self) -> &SR {
32        &self.sr
33    }
34    ///0x10 - Control register
35    #[inline(always)]
36    pub const fn cr(&self) -> &CR {
37        &self.cr
38    }
39    ///0x14 - Flash option control register
40    #[inline(always)]
41    pub const fn optcr(&self) -> &OPTCR {
42        &self.optcr
43    }
44    ///0x18 - Flash option control register 1
45    #[inline(always)]
46    pub const fn optcr1(&self) -> &OPTCR1 {
47        &self.optcr1
48    }
49}
50/**ACR (rw) register accessor: Flash access control register
51
52You 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).
53
54See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#FLASH:ACR)
55
56For information about available fields see [`mod@acr`] module*/
57pub type ACR = crate::Reg<acr::ACRrs>;
58///Flash access control register
59pub mod acr;
60/**KEYR (w) register accessor: Flash key register
61
62You 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).
63
64See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#FLASH:KEYR)
65
66For information about available fields see [`mod@keyr`] module*/
67pub type KEYR = crate::Reg<keyr::KEYRrs>;
68///Flash key register
69pub mod keyr;
70/**OPTKEYR (w) register accessor: Flash option key register
71
72You 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).
73
74See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#FLASH:OPTKEYR)
75
76For information about available fields see [`mod@optkeyr`] module*/
77pub type OPTKEYR = crate::Reg<optkeyr::OPTKEYRrs>;
78///Flash option key register
79pub mod optkeyr;
80/**SR (rw) register accessor: Status register
81
82You 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).
83
84See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#FLASH:SR)
85
86For information about available fields see [`mod@sr`] module*/
87pub type SR = crate::Reg<sr::SRrs>;
88///Status register
89pub mod sr;
90/**CR (rw) register accessor: Control register
91
92You 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).
93
94See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#FLASH:CR)
95
96For information about available fields see [`mod@cr`] module*/
97pub type CR = crate::Reg<cr::CRrs>;
98///Control register
99pub mod cr;
100/**OPTCR (rw) register accessor: Flash option control register
101
102You 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).
103
104See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#FLASH:OPTCR)
105
106For information about available fields see [`mod@optcr`] module*/
107pub type OPTCR = crate::Reg<optcr::OPTCRrs>;
108///Flash option control register
109pub mod optcr;
110/**OPTCR1 (rw) register accessor: Flash option control register 1
111
112You 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).
113
114See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#FLASH:OPTCR1)
115
116For information about available fields see [`mod@optcr1`] module*/
117pub type OPTCR1 = crate::Reg<optcr1::OPTCR1rs>;
118///Flash option control register 1
119pub mod optcr1;