Struct stm32_metapac::flash::regs::Wrpar
#[repr(transparent)]pub struct Wrpar(pub u32);
Expand description
WRP area A address register
Tuple Fields§
§0: u32
Implementations§
§impl Wrpar
impl Wrpar
pub const fn wrpa_pstrt(&self) -> u8
pub const fn wrpa_pstrt(&self) -> u8
WPR area A start page This field contains the first page of the WPR area A. Note that bit 6 is reserved on STM32WBAxEx devices.
pub fn set_wrpa_pstrt(&mut self, val: u8)
pub fn set_wrpa_pstrt(&mut self, val: u8)
WPR area A start page This field contains the first page of the WPR area A. Note that bit 6 is reserved on STM32WBAxEx devices.
pub const fn wrpa_pend(&self) -> u8
pub const fn wrpa_pend(&self) -> u8
WPR area A end page This field contains the last page of the WPR area A. Note that bit 22 is reserved on STM32WBAxEx devices.
pub fn set_wrpa_pend(&mut self, val: u8)
pub fn set_wrpa_pend(&mut self, val: u8)
WPR area A end page This field contains the last page of the WPR area A. Note that bit 22 is reserved on STM32WBAxEx devices.
pub fn set_unlock(&mut self, val: bool)
pub fn set_unlock(&mut self, val: bool)
WPR area A unlock
Trait Implementations§
impl Copy for Wrpar
impl Eq for Wrpar
impl StructuralPartialEq for Wrpar
Auto Trait Implementations§
impl Freeze for Wrpar
impl RefUnwindSafe for Wrpar
impl Send for Wrpar
impl Sync for Wrpar
impl Unpin for Wrpar
impl UnwindSafe for Wrpar
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
)