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