pub struct Bank1Region<'d, M: Mode>(pub &'static FlashRegion, _, _, _);Tuple Fields§
§0: &'static FlashRegionImplementations§
Source§impl Bank1Region<'_, Async>
impl Bank1Region<'_, Async>
Sourcepub async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Error>
pub async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Error>
Async read.
Note: reading from flash can’t actually block, so this is the same as blocking_read.
Source§impl<M: Mode> Bank1Region<'_, M>
impl<M: Mode> Bank1Region<'_, M>
Trait Implementations§
Source§impl<M: Mode> ErrorType for Bank1Region<'_, M>
impl<M: Mode> ErrorType for Bank1Region<'_, M>
Source§impl NorFlash for Bank1Region<'_, Async>
impl NorFlash for Bank1Region<'_, Async>
Source§const WRITE_SIZE: usize = 16
const WRITE_SIZE: usize = 16
The minumum number of bytes the storage peripheral can write
Source§const ERASE_SIZE: usize = 8192
const ERASE_SIZE: usize = 8192
The minumum number of bytes the storage peripheral can erase
Source§impl NorFlash for Bank1Region<'_, Blocking>
impl NorFlash for Bank1Region<'_, Blocking>
Source§const WRITE_SIZE: usize = 16
const WRITE_SIZE: usize = 16
The minumum number of bytes the storage peripheral can write
Source§const ERASE_SIZE: usize = 8192
const ERASE_SIZE: usize = 8192
The minumum number of bytes the storage peripheral can erase
Source§impl ReadNorFlash for Bank1Region<'_, Async>
impl ReadNorFlash for Bank1Region<'_, Async>
Source§const READ_SIZE: usize = READ_SIZE
const READ_SIZE: usize = READ_SIZE
The minumum number of bytes the storage peripheral can read
Source§impl<M: Mode> ReadNorFlash for Bank1Region<'_, M>
impl<M: Mode> ReadNorFlash for Bank1Region<'_, M>
Source§const READ_SIZE: usize = READ_SIZE
const READ_SIZE: usize = READ_SIZE
The minumum number of bytes the storage peripheral can read
Auto Trait Implementations§
impl<'d, M> !UnwindSafe for Bank1Region<'d, M>
impl<'d, M> Freeze for Bank1Region<'d, M>where
PhantomData<M>: Freeze,
impl<'d, M> RefUnwindSafe for Bank1Region<'d, M>where
PhantomData<M>: RefUnwindSafe,
impl<'d, M> Send for Bank1Region<'d, M>where
PhantomData<M>: Send,
impl<'d, M> Sync for Bank1Region<'d, M>where
PhantomData<M>: Sync,
impl<'d, M> Unpin for Bank1Region<'d, M>where
PhantomData<M>: Unpin,
impl<'d, M> UnsafeUnpin for Bank1Region<'d, M>where
PhantomData<M>: UnsafeUnpin,
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