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