pub struct FlashWriter<'a> { /* private fields */ }

Implementations§

Erase sector which contains start_offset

Erase the Flash Sectors from FLASH_START + start_offset to length

Retrieve a slice of data from FLASH_START + offset

Write data to FLASH_START + offset

Enable/disable verifying that each erase or write operation completed successfuly.

When enabled, after each erase operation every address is read to make sure it contains the erase value of 0xFFFF. After each write operation, every address written is read and compared to the value that should have been written. If any address does not contain the expected value, the function will return Err. When disabled, no verification is performed, erase/write operations are assumed to have succeeded.

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.