Struct embassy_embedded_hal::flash::partition::Partition
source · pub struct Partition<'a, M: RawMutex, T: NorFlash> { /* private fields */ }
Expand description
A logical partition of an underlying shared flash
A partition holds an offset and a size of the flash, and is restricted to operate with that range. There is no guarantee that muliple partitions on the same flash operate on mutually exclusive ranges - such a separation is up to the user to guarantee.
Implementations§
Trait Implementations§
source§impl<M: RawMutex, T: NorFlash> NorFlash for Partition<'_, M, T>
impl<M: RawMutex, T: NorFlash> NorFlash for Partition<'_, M, T>
source§const WRITE_SIZE: usize = T::WRITE_SIZE
const WRITE_SIZE: usize = T::WRITE_SIZE
The minumum number of bytes the storage peripheral can write
source§const ERASE_SIZE: usize = T::ERASE_SIZE
const ERASE_SIZE: usize = T::ERASE_SIZE
The minumum number of bytes the storage peripheral can erase
source§impl<M: RawMutex, T: NorFlash> ReadNorFlash for Partition<'_, M, T>
impl<M: RawMutex, T: NorFlash> ReadNorFlash for Partition<'_, M, T>
source§const READ_SIZE: usize = T::READ_SIZE
const READ_SIZE: usize = T::READ_SIZE
The minumum number of bytes the storage peripheral can read
Auto Trait Implementations§
impl<'a, M, T> !RefUnwindSafe for Partition<'a, M, T>
impl<'a, M, T> Send for Partition<'a, M, T>
impl<'a, M, T> Sync for Partition<'a, M, T>
impl<'a, M, T> Unpin for Partition<'a, M, T>
impl<'a, M, T> !UnwindSafe for Partition<'a, M, T>
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