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