pub trait Read {
type NativeType;
// Required methods
fn read_native(&self, address: usize, array: &mut [Self::NativeType]);
fn read(&self, address: usize, buf: &mut [u8]);
}Required Associated Types§
Sourcetype 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§
Sourcefn 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