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]
&mut self,
address: usize,
array: &GenericArray<u8, WriteSize>
) -> Result
The smallest possible write, depends on platform
TODO: can we typecheck/typehint whether address
must be aligned?
Provided methods
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]
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]fn status(&self) -> Result
[src]
fn erase_page(&mut self, page: usize) -> Result
[src]
fn write_native(
&mut self,
address: usize,
array: &GenericArray<u8, U512>
) -> Result
[src]
&mut self,
address: usize,
array: &GenericArray<u8, U512>
) -> Result