Struct stm32_metapac::flash::regs::Optr
#[repr(transparent)]pub struct Optr(pub u32);
Expand description
Option byte register
Tuple Fields§
§0: u32
Implementations§
§impl Optr
impl Optr
pub fn set_rdprot(&mut self, val: u8)
pub fn set_rdprot(&mut self, val: u8)
Read protection
pub fn set_wprmod(&mut self, val: bool)
pub fn set_wprmod(&mut self, val: bool)
Selection of protection mode of WPR bits
pub fn set_bor_lev(&mut self, val: u8)
pub fn set_bor_lev(&mut self, val: u8)
BOR_LEV
Trait Implementations§
impl Copy for Optr
impl Eq for Optr
impl StructuralPartialEq for Optr
Auto Trait Implementations§
impl Freeze for Optr
impl RefUnwindSafe for Optr
impl Send for Optr
impl Sync for Optr
impl Unpin for Optr
impl UnwindSafe for Optr
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
)