Struct stm32_metapac::flash::regs::Pecr
#[repr(transparent)]pub struct Pecr(pub u32);
Expand description
Program/erase control register
Tuple Fields§
§0: u32
Implementations§
§impl Pecr
impl Pecr
pub fn set_pelock(&mut self, val: bool)
pub fn set_pelock(&mut self, val: bool)
FLASH_PECR and data EEPROM lock
pub fn set_prglock(&mut self, val: bool)
pub fn set_prglock(&mut self, val: bool)
Program memory lock
pub fn set_optlock(&mut self, val: bool)
pub fn set_optlock(&mut self, val: bool)
Option bytes block lock
pub const fn parallelbank(&self) -> bool
pub const fn parallelbank(&self) -> bool
Parallel bank mode
pub fn set_parallelbank(&mut self, val: bool)
pub fn set_parallelbank(&mut self, val: bool)
Parallel bank mode
pub const fn obl_launch(&self) -> bool
pub const fn obl_launch(&self) -> bool
Launch the option byte loading
pub fn set_obl_launch(&mut self, val: bool)
pub fn set_obl_launch(&mut self, val: bool)
Launch the option byte loading
Trait Implementations§
impl Copy for Pecr
impl Eq for Pecr
impl StructuralPartialEq for Pecr
Auto Trait Implementations§
impl Freeze for Pecr
impl RefUnwindSafe for Pecr
impl Send for Pecr
impl Sync for Pecr
impl Unpin for Pecr
impl UnwindSafe for Pecr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)