Struct sam4l::flashcalw::Sam4lPage
[−]
[src]
pub struct Sam4lPage(pub [u8; 512]);
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:
static mut PAGEBUFFER: Sam4lPage = Sam4lPage::new();
Methods
impl Sam4lPage
[src]
Trait Implementations
impl Index<usize> for Sam4lPage
[src]
type Output = u8
The returned type after indexing.
fn index(&self, idx: usize) -> &u8
[src]
Performs the indexing (container[index]
) operation.
impl IndexMut<usize> for Sam4lPage
[src]
fn index_mut(&mut self, idx: usize) -> &mut u8
[src]
Performs the mutable indexing (container[index]
) operation.