pub struct UnlockedFlash { /* private fields */ }
Expand description
Handle for an unlocked flash on which operations can be performed
Implementations§
Trait Implementations§
Source§impl Read for UnlockedFlash
impl Read for UnlockedFlash
Source§type NativeType = u8
type NativeType = u8
Native type of the flash for reading with the correct alignment of the memory and size Read more
Source§fn 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
Source§impl WriteErase for UnlockedFlash
impl WriteErase for UnlockedFlash
Source§type NativeType = u64
type NativeType = u64
Native type of the flash for writing with the correct alignment and size Read more
Source§fn erase_page(&mut self, page: FlashPage) -> Result
fn erase_page(&mut self, page: FlashPage) -> Result
Erase specified flash page.
Source§fn 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 Freeze for UnlockedFlash
impl RefUnwindSafe for UnlockedFlash
impl Send for UnlockedFlash
impl !Sync for UnlockedFlash
impl Unpin for UnlockedFlash
impl UnwindSafe for UnlockedFlash
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