pub trait FlashConfig {
type STATE: Flash;
type ACTIVE: Flash;
type DFU: Flash;
// Required methods
fn active(&mut self) -> &mut Self::ACTIVE;
fn dfu(&mut self) -> &mut Self::DFU;
fn state(&mut self) -> &mut Self::STATE;
}
Expand description
Trait defining the flash handles used for active and DFU partition
Required Associated Types§
Required Methods§
Sourcefn active(&mut self) -> &mut Self::ACTIVE
fn active(&mut self) -> &mut Self::ACTIVE
Return flash instance used to write/read to/from active partition.