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