Struct stm32_metapac::flash::regs::Hdpsr
#[repr(transparent)]pub struct Hdpsr(pub u32);
Expand description
FLASH hide protection status register.
Tuple Fields§
§0: u32
Implementations§
§impl Hdpsr
impl Hdpsr
pub const fn hdp_area_start(&self) -> u16
pub const fn hdp_area_start(&self) -> u16
Hide protection user Flash area start This option sets the start address that contains the first 256-byte block of the hide protection (HDP) area in user Flash area. If HDP_AREA_END=HDP_AREA_START all the sectors are protected. If HDP_AREA_END<HDP_AREA_START no sectors are protected.
pub fn set_hdp_area_start(&mut self, val: u16)
pub fn set_hdp_area_start(&mut self, val: u16)
Hide protection user Flash area start This option sets the start address that contains the first 256-byte block of the hide protection (HDP) area in user Flash area. If HDP_AREA_END=HDP_AREA_START all the sectors are protected. If HDP_AREA_END<HDP_AREA_START no sectors are protected.
pub const fn hdp_area_end(&self) -> u16
pub const fn hdp_area_end(&self) -> u16
Hide protection user Flash area end This option sets the end address that contains the last 256-byte block of the hide protection (HDP) area in user Flash area. If HDP_AREA_END=HDP_AREA_START all the sectors are protected. If HDP_AREA_END<HDP_AREA_START no sectors are protected.
pub fn set_hdp_area_end(&mut self, val: u16)
pub fn set_hdp_area_end(&mut self, val: u16)
Hide protection user Flash area end This option sets the end address that contains the last 256-byte block of the hide protection (HDP) area in user Flash area. If HDP_AREA_END=HDP_AREA_START all the sectors are protected. If HDP_AREA_END<HDP_AREA_START no sectors are protected.
Trait Implementations§
impl Copy for Hdpsr
impl Eq for Hdpsr
impl StructuralPartialEq for Hdpsr
Auto Trait Implementations§
impl Freeze for Hdpsr
impl RefUnwindSafe for Hdpsr
impl Send for Hdpsr
impl Sync for Hdpsr
impl Unpin for Hdpsr
impl UnwindSafe for Hdpsr
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
)