Type Alias NVPages

Source
pub type NVPages<F> = NonvolatileToPages<'static, F>;

Aliased Type§

struct NVPages<F> { /* private fields */ }

Implementations

Source§

impl<'a, F> NonvolatileToPages<'a, F>
where F: Flash,

Source

pub fn new( driver: &'a F, buffer: &'static mut <F as Flash>::Page, ) -> NonvolatileToPages<'a, F>

Trait Implementations

Source§

impl<F> Client<F> for NonvolatileToPages<'_, F>
where F: Flash,

Source§

fn read_complete( &self, pagebuffer: &'static mut <F as Flash>::Page, _result: Result<(), Error>, )

Flash read complete.
Source§

fn write_complete( &self, pagebuffer: &'static mut <F as Flash>::Page, _result: Result<(), Error>, )

Flash write complete.
Source§

fn erase_complete(&self, _result: Result<(), Error>)

Flash erase complete.
Source§

impl<'a, F> NonvolatileStorage<'a> for NonvolatileToPages<'a, F>
where F: Flash,

Source§

fn set_client(&self, client: &'a dyn NonvolatileStorageClient)

Source§

fn read( &self, buffer: &'static mut [u8], address: usize, length: usize, ) -> Result<(), ErrorCode>

Read length bytes starting at address address in to the provided buffer. The buffer must be at least length bytes long. The address must be in the address space of the physical storage.
Source§

fn write( &self, buffer: &'static mut [u8], address: usize, length: usize, ) -> Result<(), ErrorCode>

Write length bytes starting at address address from the provided buffer. The buffer must be at least length bytes long. This address must be in the address space of the physical storage.