pub struct NrfPage(pub [u8; 4096]);
Expand description
This is a wrapper around a u8 array that is sized to a single page for the
nrf. 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!(NrfPage, NrfPage::default()) };
Tuple Fields§
§0: [u8; 4096]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NrfPage
impl RefUnwindSafe for NrfPage
impl Send for NrfPage
impl Sync for NrfPage
impl Unpin for NrfPage
impl UnwindSafe for NrfPage
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