Struct microbit::hal::nvmc::Nvmc[][src]

pub struct Nvmc<T> where
    T: Instance
{ /* fields omitted */ }
Expand description

Interface to an NVMC instance.

Implementations

Takes ownership of the peripheral and storage area.

Consumes self and returns back the raw peripheral and associated storage.

Trait Implementations

The minumum number of bytes the storage peripheral can write

The minumum number of bytes the storage peripheral can erase

Erase the given storage range, clearing all data within [from..to]. The given range will contain all 1s afterwards. Read more

If power is lost during write, the contents of the written words are undefined, but the rest of the page is guaranteed to be unchanged. It is not allowed to write to the same word twice. offset and bytes.len() must both be multiples of WRITE_SIZE. Read more

An enumeration of storage errors

The minumum number of bytes the storage peripheral can read

Read a slice of data from the storage peripheral, starting the read operation at the given address offset, and reading bytes.len() bytes. Read more

The capacity of the peripheral in bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

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.

Casts the value.

Casts the value.