pub struct StmFlashSize { /* private fields */ }Expand description
STM Flash Size Register
This is a 16-bit value that indicates the size of the flash memory in kilobytes.
Implementations§
Source§impl StmFlashSize
impl StmFlashSize
Sourcepub const STM32F4_ADDRESS_OF_U16: u32 = 0x1FFF_7A20
pub const STM32F4_ADDRESS_OF_U16: u32 = 0x1FFF_7A20
Address containing the 16-bit flash size value. The flash size is
the upper 16 bits of this value, so stored at 0x1FFF_7A22. We store
a 4-bit aligned address.
pub const STM32F1_ADDRESS_OF_U16: u32 = 0x1FFF_F7E0
Sourcepub fn addr_from_family(family: StmFamily) -> Option<u32>
pub fn addr_from_family(family: StmFamily) -> Option<u32>
Get the initial address for reading the Flash Size based on the STM32 family.
Sourcepub fn size_bytes(&self) -> u32
pub fn size_bytes(&self) -> u32
Get Flash size in bytes
Trait Implementations§
Source§impl Clone for StmFlashSize
impl Clone for StmFlashSize
Source§fn clone(&self) -> StmFlashSize
fn clone(&self) -> StmFlashSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StmFlashSize
Source§impl Debug for StmFlashSize
impl Debug for StmFlashSize
Source§impl Display for StmFlashSize
impl Display for StmFlashSize
impl Eq for StmFlashSize
Source§impl PartialEq for StmFlashSize
impl PartialEq for StmFlashSize
impl StructuralPartialEq for StmFlashSize
Auto Trait Implementations§
impl Freeze for StmFlashSize
impl RefUnwindSafe for StmFlashSize
impl Send for StmFlashSize
impl Sync for StmFlashSize
impl Unpin for StmFlashSize
impl UnsafeUnpin for StmFlashSize
impl UnwindSafe for StmFlashSize
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