Struct stm32_metapac::flash::regs::Secbootadd0r
#[repr(transparent)]pub struct Secbootadd0r(pub u32);
Expand description
FLASH secure boot address 0 register
Tuple Fields§
§0: u32
Implementations§
§impl Secbootadd0r
impl Secbootadd0r
pub const fn boot_lock(&self) -> bool
pub const fn boot_lock(&self) -> bool
Boot lock When set, the boot is always forced to base address value programmed in SECBOOTADD0[24:0] option bytes whatever the boot selection option. When set, this bit can only be cleared by an RDP at level 0.
pub fn set_boot_lock(&mut self, val: bool)
pub fn set_boot_lock(&mut self, val: bool)
Boot lock When set, the boot is always forced to base address value programmed in SECBOOTADD0[24:0] option bytes whatever the boot selection option. When set, this bit can only be cleared by an RDP at level 0.
pub const fn secbootadd0(&self) -> u32
pub const fn secbootadd0(&self) -> u32
Secure boot base address 0 The secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. This bits correspond to address [31:7] The SECBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state. Examples: SECBOOTADD0[24:0] = 0x018 0000: Boot from secure Flash memory (0x0C00 0000) SECBOOTADD0[24:0] = 0x01F F000: Boot from RSS (0x0FF8 0000) SECBOOTADD0[24:0] = 0x060 0000: Boot from secure SRAM1 on S-Bus (0x3000 0000)
pub fn set_secbootadd0(&mut self, val: u32)
pub fn set_secbootadd0(&mut self, val: u32)
Secure boot base address 0 The secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. This bits correspond to address [31:7] The SECBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state. Examples: SECBOOTADD0[24:0] = 0x018 0000: Boot from secure Flash memory (0x0C00 0000) SECBOOTADD0[24:0] = 0x01F F000: Boot from RSS (0x0FF8 0000) SECBOOTADD0[24:0] = 0x060 0000: Boot from secure SRAM1 on S-Bus (0x3000 0000)
Trait Implementations§
§impl Clone for Secbootadd0r
impl Clone for Secbootadd0r
§fn clone(&self) -> Secbootadd0r
fn clone(&self) -> Secbootadd0r
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Default for Secbootadd0r
impl Default for Secbootadd0r
§fn default() -> Secbootadd0r
fn default() -> Secbootadd0r
§impl PartialEq for Secbootadd0r
impl PartialEq for Secbootadd0r
impl Copy for Secbootadd0r
impl Eq for Secbootadd0r
impl StructuralPartialEq for Secbootadd0r
Auto Trait Implementations§
impl Freeze for Secbootadd0r
impl RefUnwindSafe for Secbootadd0r
impl Send for Secbootadd0r
impl Sync for Secbootadd0r
impl Unpin for Secbootadd0r
impl UnwindSafe for Secbootadd0r
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
)