Trait lpc55_hal::traits::flash::WriteErase[][src]

pub trait WriteErase<EraseSize: ArrayLength<u8>, WriteSize: ArrayLength<u8>> {
    fn status(&self) -> Result;
fn erase_page(&mut self, page: usize) -> Result;
fn write_native(
        &mut self,
        address: usize,
        array: &GenericArray<u8, WriteSize>
    ) -> Result; fn write(&mut self, address: usize, data: &[u8]) -> Result { ... } }

Required methods

fn status(&self) -> Result[src]

check flash status

fn erase_page(&mut self, page: usize) -> Result[src]

Erase specified flash page.

fn write_native(
    &mut self,
    address: usize,
    array: &GenericArray<u8, WriteSize>
) -> Result
[src]

The smallest possible write, depends on platform TODO: can we typecheck/typehint whether address must be aligned?

Loading content...

Provided methods

fn write(&mut self, address: usize, data: &[u8]) -> Result[src]

Loading content...

Implementors

impl WriteErase<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> for FlashGordon[src]

Loading content...