embassy-boot

Crates

0.1.1

Versions

default

Flavors

Trait Flash

Source
pub trait Flash: NorFlash + ReadNorFlash {
    const BLOCK_SIZE: usize;
    const ERASE_VALUE: u8 = 255u8;
}
Expand description

Extension of the embedded-storage flash type information with block size and erase value.

Required Associated Constants§

Source

const BLOCK_SIZE: usize

The block size that should be used when writing to flash. For most builtin flashes, this is the same as the erase size of the flash, but for external QSPI flash modules, this can be lower.

Provided Associated Constants§

Source

const ERASE_VALUE: u8 = 255u8

The erase value of the flash. Typically the default of 0xFF is used, but some flashes use a different value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F, const BLOCK_SIZE: usize, const ERASE_VALUE: u8> Flash for BootFlash<F, BLOCK_SIZE, ERASE_VALUE>

Source§

const BLOCK_SIZE: usize = BLOCK_SIZE

Source§

const ERASE_VALUE: u8 = ERASE_VALUE