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
Read latency These bits are used to control the number of wait states used during read operations on both non-volatile memory banks. The application software has to program them to the correct value depending on the embedded Flash memory interface frequency and voltage conditions. … Note: No check is performed by hardware to verify that the configuration is correct.
pub fn set_latency(&mut self, val: u8)
pub fn set_latency(&mut self, val: u8)
Read latency These bits are used to control the number of wait states used during read operations on both non-volatile memory banks. The application software has to program them to the correct value depending on the embedded Flash memory interface frequency and voltage conditions. … Note: No check is performed by hardware to verify that the configuration is correct.
pub const fn wrhighfreq(&self) -> u8
pub const fn wrhighfreq(&self) -> u8
Flash signal delay These bits are used to control the delay between non-volatile memory signals during programming operations. Application software has to program them to the correct value depending on the embedded Flash memory interface frequency. Please refer to for details. Note: No check is performed to verify that the configuration is correct. Two WRHIGHFREQ values can be selected for some frequencies.
pub fn set_wrhighfreq(&mut self, val: u8)
pub fn set_wrhighfreq(&mut self, val: u8)
Flash signal delay These bits are used to control the delay between non-volatile memory signals during programming operations. Application software has to program them to the correct value depending on the embedded Flash memory interface frequency. Please refer to for details. Note: No check is performed to verify that the configuration is correct. Two WRHIGHFREQ values can be selected for some frequencies.
pub const fn prften(&self) -> bool
pub const fn prften(&self) -> bool
Prefetch enable. When bit value is modified, user must read back ACR register to be sure PRFTEN has been taken into account. Bits used to control the prefetch.
pub fn set_prften(&mut self, val: bool)
pub fn set_prften(&mut self, val: bool)
Prefetch enable. When bit value is modified, user must read back ACR register to be sure PRFTEN has been taken into account. Bits used to control the prefetch.
pub const fn s_prften(&self) -> bool
pub const fn s_prften(&self) -> bool
Smart prefetch enable. When bit value is modified, user must read back ACR register to be sure S_PRFTEN has been taken into account. Bits used to control the prefetch functionality.
pub fn set_s_prften(&mut self, val: bool)
pub fn set_s_prften(&mut self, val: bool)
Smart prefetch enable. When bit value is modified, user must read back ACR register to be sure S_PRFTEN has been taken into account. Bits used to control the prefetch functionality.