pub trait FlashExt {
    fn address(&self) -> usize;
    fn len(&self) -> usize;
    fn unlocked(&mut self) -> UnlockedFlash<'_>;
    fn dual_bank(&self) -> bool;
    fn sector(&self, offset: usize) -> Option<FlashSector>;

    fn read(&self) -> &[u8] { ... }
}
Expand description

Flash methods implemented for pac::FLASH

Required Methods

Memory-mapped address

Size in bytes

Unlock flash for erasing/programming until this method’s result is dropped

Returns flash memory sector of a given offset. Returns none if offset is out of range.

Provided Methods

Returns a read-only view of flash memory

Implementors