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]

[src]

[src]

Trait Implementations

impl Index<usize> for Sam4lPage
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for Sam4lPage
[src]

[src]

Performs the mutable indexing (container[index]) operation.

impl AsMut<[u8]> for Sam4lPage
[src]

[src]

Performs the conversion.