pub struct Flash { /* private fields */ }
Expand description

Embedded flash memory.

Implementations

Creates a new Flash instance.

Unlocks the flash memory.

Locks the flash memory.

Starts a sector erase sequence.

The returned EraseSequence object can be used to wait for the completion of the erase sequence by blocking on the wait method.

Erases a flash sector.

This method blocks until the sector is erased or an error occurred.

Starts a mass erases of the flash memory.

The returned EraseSequence object can be used to wait for the completion of the erase sequence by blocking on the wait method.

Mass erases the flash memory.

This method blocks until the flash is erased or an error occurred.

Starts a programming sequence.

Note that you must block on the wait method in the returned ProgrammingSequence object in order to program all bytes.

Programs a block of flash memory.

This method blocks until the block is programed or an error occurred.

Releases the flash peripheral.

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.