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 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 StructuralEq for Optcr
impl StructuralPartialEq for Optcr
Auto Trait Implementations§
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