pub struct FlashStorage<'d> { /* private fields */ }Expand description
Flash storage abstraction.
This only implements traits from embedded_storage.
If you need to use this struct where traits from embedded_storage_async are needed, you can
use embassy_embedded_hal::adapter::BlockingAsync or
embassy_embedded_hal::adapter::YieldingAsync wrappers.
Implementations§
Source§impl<'d> FlashStorage<'d>
impl<'d> FlashStorage<'d>
Sourcepub const SECTOR_SIZE: u32 = 4096
pub const SECTOR_SIZE: u32 = 4096
Flash sector size in bytes.
Sourcepub const BLOCK_SIZE: u32 = 65536
pub const BLOCK_SIZE: u32 = 65536
Flash block size in bytes.
Trait Implementations§
Source§impl<'d> Debug for FlashStorage<'d>
impl<'d> Debug for FlashStorage<'d>
Source§impl ErrorType for FlashStorage<'_>
impl ErrorType for FlashStorage<'_>
Source§type Error = FlashStorageError
type Error = FlashStorageError
Errors returned by this NOR flash.
Source§impl NorFlash for FlashStorage<'_>
impl NorFlash for FlashStorage<'_>
Source§const WRITE_SIZE: usize
const WRITE_SIZE: usize
The minumum number of bytes the storage peripheral can write
Source§const ERASE_SIZE: usize
const ERASE_SIZE: usize
The minumum number of bytes the storage peripheral can erase
Source§impl ReadNorFlash for FlashStorage<'_>
impl ReadNorFlash for FlashStorage<'_>
Source§impl ReadStorage for FlashStorage<'_>
impl ReadStorage for FlashStorage<'_>
Source§impl Storage for FlashStorage<'_>
impl Storage for FlashStorage<'_>
impl MultiwriteNorFlash for FlashStorage<'_>
Auto Trait Implementations§
impl<'d> Freeze for FlashStorage<'d>
impl<'d> RefUnwindSafe for FlashStorage<'d>
impl<'d> Send for FlashStorage<'d>
impl<'d> Sync for FlashStorage<'d>
impl<'d> Unpin for FlashStorage<'d>
impl<'d> UnsafeUnpin for FlashStorage<'d>
impl<'d> !UnwindSafe for FlashStorage<'d>
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