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