FLASH

Type Alias FLASH 

Source
pub type FLASH = Periph<RegisterBlock, 1073888256>;
Expand description

FLASH

See peripheral structure

Aliased Type§

pub struct FLASH { /* private fields */ }

Trait Implementations§

Source§

impl FlashExt for FLASH

Source§

fn address(&self) -> usize

Memory-mapped address
Source§

fn len(&self) -> usize

Size in bytes
Source§

fn unlocked(&mut self) -> UnlockedFlash<'_>

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

fn dual_bank(&self) -> bool

Source§

fn sector(&self, offset: usize) -> Option<FlashSector>

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

fn read(&self) -> &[u8]

Returns a read-only view of flash memory