Struct stm32l4xx_hal::flash::FlashProgramming
source · [−]pub struct FlashProgramming<'a> { /* private fields */ }
Expand description
Flash programming interface
Implementations
sourceimpl<'a> FlashProgramming<'a>
impl<'a> FlashProgramming<'a>
sourcepub fn erase_all_pages(&mut self) -> Result
pub fn erase_all_pages(&mut self) -> Result
Erase all flash pages, note that this will erase the current running program if it is not called from a program running in RAM.
Trait Implementations
sourceimpl<'a> Drop for FlashProgramming<'a>
impl<'a> Drop for FlashProgramming<'a>
sourceimpl<'a> Read for FlashProgramming<'a>
impl<'a> Read for FlashProgramming<'a>
type NativeType = u8
type NativeType = u8
Native type of the flash for reading with the correct alignment of the memory and size Read more
sourcefn read_native(&self, address: usize, array: &mut [Self::NativeType])
fn read_native(&self, address: usize, array: &mut [Self::NativeType])
Read from the flash memory using the native interface
sourceimpl<'a> WriteErase for FlashProgramming<'a>
impl<'a> WriteErase for FlashProgramming<'a>
type NativeType = u64
type NativeType = u64
Native type of the flash for writing with the correct alignment and size Read more
sourcefn erase_page(&mut self, page: FlashPage) -> Result
fn erase_page(&mut self, page: FlashPage) -> Result
Erase specified flash page.
sourcefn write_native(&mut self, address: usize, array: &[Self::NativeType]) -> Result
fn write_native(&mut self, address: usize, array: &[Self::NativeType]) -> Result
The smallest possible write, depends on platform
Auto Trait Implementations
impl<'a> RefUnwindSafe for FlashProgramming<'a>
impl<'a> Send for FlashProgramming<'a>
impl<'a> Sync for FlashProgramming<'a>
impl<'a> Unpin for FlashProgramming<'a>
impl<'a> !UnwindSafe for FlashProgramming<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more