Struct stm32_metapac::flash::regs::Optcr2
#[repr(transparent)]pub struct Optcr2(pub u32);
Expand description
Flash option control register
Tuple Fields§
§0: u32
Implementations§
§impl Optcr2
impl Optcr2
pub fn set_pcropi(&mut self, val: u8)
pub fn set_pcropi(&mut self, val: u8)
PCROP option byte
pub fn set_pcrop_rdp(&mut self, val: bool)
pub fn set_pcrop_rdp(&mut self, val: bool)
PCROP zone preserved when RDP level decreased
Trait Implementations§
impl Copy for Optcr2
impl Eq for Optcr2
impl StructuralPartialEq for Optcr2
Auto Trait Implementations§
impl Freeze for Optcr2
impl RefUnwindSafe for Optcr2
impl Send for Optcr2
impl Sync for Optcr2
impl Unpin for Optcr2
impl UnwindSafe for Optcr2
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
)