Struct stm32_metapac::flash::regs::Wrp
#[repr(transparent)]pub struct Wrp(pub u32);
Expand description
FLASH write sector group protection for Bank 1
Tuple Fields§
§0: u32
Implementations§
§impl Wrp
impl Wrp
pub const fn wrpsg(&self) -> u32
pub const fn wrpsg(&self) -> u32
Bank1 sector group protection option status byte Setting WRPSG1 bits to 0 write protects the corresponding group of four consecutive sectors in bank 1 (0: the group is write protected; 1: the group is not write protected) Bit 0: Group embedding sectors 0 to 3 Bit 1: Group embedding sectors 4 to 7 Bit N: Group embedding sectors 4 x N to 4 x N + 3 Bit 31: Group embedding sectors 124 to 127
pub fn set_wrpsg(&mut self, val: u32)
pub fn set_wrpsg(&mut self, val: u32)
Bank1 sector group protection option status byte Setting WRPSG1 bits to 0 write protects the corresponding group of four consecutive sectors in bank 1 (0: the group is write protected; 1: the group is not write protected) Bit 0: Group embedding sectors 0 to 3 Bit 1: Group embedding sectors 4 to 7 Bit N: Group embedding sectors 4 x N to 4 x N + 3 Bit 31: Group embedding sectors 124 to 127
Trait Implementations§
impl Copy for Wrp
impl Eq for Wrp
impl StructuralPartialEq for Wrp
Auto Trait Implementations§
impl Freeze for Wrp
impl RefUnwindSafe for Wrp
impl Send for Wrp
impl Sync for Wrp
impl Unpin for Wrp
impl UnwindSafe for Wrp
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
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)
clone_to_uninit
)