pub trait Read {
type NativeType;
fn read_native(&self, address: usize, array: &mut [Self::NativeType]);
fn read(&self, address: usize, buf: &mut [u8]);
}
Associated Types
type NativeType
type NativeType
Native type of the flash for reading with the correct alignment of the memory and size
Can be u8
, u16
, u32
, …, or any user defined type
Required methods
fn read_native(&self, address: usize, array: &mut [Self::NativeType])
fn read_native(&self, address: usize, array: &mut [Self::NativeType])
Read from the flash memory using the native interface