Struct stm32_metapac::flash::regs::Optcr
#[repr(transparent)]pub struct Optcr(pub u32);
Expand description
FLASH option control register
Tuple Fields§
§0: u32
Implementations§
§impl Optcr
impl Optcr
pub fn set_optlock(&mut self, val: bool)
pub fn set_optlock(&mut self, val: bool)
FLASH_OPTCR lock option configuration bit
pub fn set_optstart(&mut self, val: bool)
pub fn set_optstart(&mut self, val: bool)
Option byte start change option configuration bit
pub fn set_pg_otp(&mut self, val: bool)
pub fn set_pg_otp(&mut self, val: bool)
OTP program control bit
pub const fn optchangeerrie(&self) -> bool
pub const fn optchangeerrie(&self) -> bool
Option byte change error interrupt enable bit
pub fn set_optchangeerrie(&mut self, val: bool)
pub fn set_optchangeerrie(&mut self, val: bool)
Option byte change error interrupt enable bit
pub fn set_swap_bank(&mut self, val: bool)
pub fn set_swap_bank(&mut self, val: bool)
Bank swapping configuration bit
Trait Implementations§
impl Copy for Optcr
impl Eq for Optcr
impl StructuralPartialEq for Optcr
Auto Trait Implementations§
impl Freeze for Optcr
impl RefUnwindSafe for Optcr
impl Send for Optcr
impl Sync for Optcr
impl Unpin for Optcr
impl UnwindSafe for Optcr
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
)