Struct embassy_embedded_hal::flash::partition::BlockingPartition
source · pub struct BlockingPartition<'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§
source§impl<'a, M: RawMutex, T: NorFlash> BlockingPartition<'a, M, T>
impl<'a, M: RawMutex, T: NorFlash> BlockingPartition<'a, M, T>
Trait Implementations§
source§impl<M: RawMutex, T: NorFlash> NorFlash for BlockingPartition<'_, M, T>
impl<M: RawMutex, T: NorFlash> NorFlash for BlockingPartition<'_, 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 BlockingPartition<'_, M, T>
impl<M: RawMutex, T: NorFlash> ReadNorFlash for BlockingPartition<'_, 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 BlockingPartition<'a, M, T>
impl<'a, M, T> Send for BlockingPartition<'a, M, T>
impl<'a, M, T> Sync for BlockingPartition<'a, M, T>
impl<'a, M, T> Unpin for BlockingPartition<'a, M, T>
impl<'a, M, T> !UnwindSafe for BlockingPartition<'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