pub struct StmF303Page(pub [u8; 2048]);
Expand description
This is a wrapper around a u8 array that is sized to a single page for the
stm32f303xc. Users of this module must pass an object of this type to use the
hil::flash::Flash
interface.
An example looks like:
let pagebuffer = unsafe { static_init!(StmF303Page, StmF303Page::default()) };
Tuple Fields§
§0: [u8; 2048]
Trait Implementations§
Source§impl AsMut<[u8]> for StmF303Page
impl AsMut<[u8]> for StmF303Page
Source§impl Default for StmF303Page
impl Default for StmF303Page
Source§impl Index<usize> for StmF303Page
impl Index<usize> for StmF303Page
Auto Trait Implementations§
impl Freeze for StmF303Page
impl RefUnwindSafe for StmF303Page
impl Send for StmF303Page
impl Sync for StmF303Page
impl Unpin for StmF303Page
impl UnwindSafe for StmF303Page
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