Struct stm32_metapac::flash::regs::Acr
#[repr(transparent)]pub struct Acr(pub u32);
Expand description
FLASH access control register
Tuple Fields§
§0: u32
Implementations§
§impl Acr
impl Acr
pub const fn latency(&self) -> u8
pub const fn latency(&self) -> u8
Flash memory access latency The value in this bitfield represents the number of CPU wait states when accessing the flash memory. Other: Reserved A new write into the bitfield becomes effective when it returns the same value upon read.
pub fn set_latency(&mut self, val: u8)
pub fn set_latency(&mut self, val: u8)
Flash memory access latency The value in this bitfield represents the number of CPU wait states when accessing the flash memory. Other: Reserved A new write into the bitfield becomes effective when it returns the same value upon read.
pub fn set_prften(&mut self, val: bool)
pub fn set_prften(&mut self, val: bool)
CPU Prefetch enable
pub const fn icrst(&self) -> bool
pub const fn icrst(&self) -> bool
CPU Instruction cache reset This bit can be written only when the instruction cache is disabled.
pub fn set_icrst(&mut self, val: bool)
pub fn set_icrst(&mut self, val: bool)
CPU Instruction cache reset This bit can be written only when the instruction cache is disabled.
pub const fn empty(&self) -> bool
pub const fn empty(&self) -> bool
Main flash memory area empty This bit indicates whether the first location of the main flash memory area is erased or has a programmed value. The bit can be set and reset by software.
pub fn set_empty(&mut self, val: bool)
pub fn set_empty(&mut self, val: bool)
Main flash memory area empty This bit indicates whether the first location of the main flash memory area is erased or has a programmed value. The bit can be set and reset by software.
pub const fn dbg_swen(&self) -> bool
pub const fn dbg_swen(&self) -> bool
Debug access software enable Software may use this bit to enable/disable the debugger read access.
pub fn set_dbg_swen(&mut self, val: bool)
pub fn set_dbg_swen(&mut self, val: bool)
Debug access software enable Software may use this bit to enable/disable the debugger read access.