Trait Read

Source
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§

Source

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§

Source

fn read_native(&self, address: usize, array: &mut [Self::NativeType])

Read from the flash memory using the native interface

Source

fn read(&self, address: usize, buf: &mut [u8])

Read a buffer of bytes from memory

Implementors§