pub struct Flash {
    pub regs: FLASH,
}

Fields

regs: FLASH

Implementations

Create a struct used to perform operations on Flash.

Unlock the flash memory, allowing writes. See L4 Reference manual, section 3.3.5. (G4 RM sectino 5.3.5) “After reset, write is not allowed in the Flash control register (FLASH_CR) to protect the Flash memory against possible unwanted operations due, for example, to electric disturbances.”

Erase a 128kb sector. See H743 RM, section 4.3.10: FLASH erase operations; subsection Flash sector erase sequence. Note that this is similar to the procedure for other families, but has a different name “sector” vice “page”, and the RM instructions are phrased differently.

Erase one or both banks. Called “Mass erase” on single-bank variants like G4.

Write the contents of a page. Must be erased first. See H742 RM, section 4.3.9

Erase a page, then write to it.

Read flash memory at a given page and offset into an 8-bit-dword buffer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.