pub struct OTPRegion<'d, M: Mode>(pub &'static FlashRegion, _, _, _);Tuple Fields§
§0: &'static FlashRegionImplementations§
Source§impl OTPRegion<'_, Async>
impl OTPRegion<'_, 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.
Trait Implementations§
Source§impl NorFlash for OTPRegion<'_, Async>
impl NorFlash for OTPRegion<'_, Async>
Source§const WRITE_SIZE: usize = 4
const WRITE_SIZE: usize = 4
The minumum number of bytes the storage peripheral can write
Source§const ERASE_SIZE: usize = 0
const ERASE_SIZE: usize = 0
The minumum number of bytes the storage peripheral can erase
Source§impl NorFlash for OTPRegion<'_, Blocking>
impl NorFlash for OTPRegion<'_, Blocking>
Source§const WRITE_SIZE: usize = 4
const WRITE_SIZE: usize = 4
The minumum number of bytes the storage peripheral can write
Source§const ERASE_SIZE: usize = 0
const ERASE_SIZE: usize = 0
The minumum number of bytes the storage peripheral can erase
Source§impl ReadNorFlash for OTPRegion<'_, Async>
impl ReadNorFlash for OTPRegion<'_, 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 OTPRegion<'_, M>
impl<M: Mode> ReadNorFlash for OTPRegion<'_, 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 OTPRegion<'d, M>
impl<'d, M> Freeze for OTPRegion<'d, M>where
PhantomData<M>: Freeze,
impl<'d, M> RefUnwindSafe for OTPRegion<'d, M>where
PhantomData<M>: RefUnwindSafe,
impl<'d, M> Send for OTPRegion<'d, M>where
PhantomData<M>: Send,
impl<'d, M> Sync for OTPRegion<'d, M>where
PhantomData<M>: Sync,
impl<'d, M> Unpin for OTPRegion<'d, M>where
PhantomData<M>: Unpin,
impl<'d, M> UnsafeUnpin for OTPRegion<'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