Struct capsules_extra::mx25r6435f::Mx25r6435fSector
source · pub struct Mx25r6435fSector(pub [u8; 4096]);
Expand description
This is a wrapper around a u8 array that is sized to a single page for the MX25R6435F. The page size is 4k because that is the smallest size that can be erased (even though 256 bytes can be written).
An example looks like:
ⓘ
static mut PAGEBUFFER: Mx25r6435fSector = Mx25r6435fSector::new();
Tuple Fields§
§0: [u8; 4096]
Implementations§
Trait Implementations§
source§impl AsMut<[u8]> for Mx25r6435fSector
impl AsMut<[u8]> for Mx25r6435fSector
source§impl Default for Mx25r6435fSector
impl Default for Mx25r6435fSector
source§impl Index<usize> for Mx25r6435fSector
impl Index<usize> for Mx25r6435fSector
Auto Trait Implementations§
impl Freeze for Mx25r6435fSector
impl RefUnwindSafe for Mx25r6435fSector
impl Send for Mx25r6435fSector
impl Sync for Mx25r6435fSector
impl Unpin for Mx25r6435fSector
impl UnwindSafe for Mx25r6435fSector
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