pub struct SmartEeprom<'a, T: SmartEepromState> { /* private fields */ }
Expand description

Struct representing a SmartEEPROM instance.

It is generic over:

Implementations

Returns an immutable slice to SmartEEPROM mapped address space.

Underlying pointed type can be either u8, u16 or u32.

Safety

NVMCTRL.SEESTAT.BUSY register must be 0 before memory access can be performed.

Retrieves data stored in SmartEEPROM at offset location and copies it to buffer.

Note: offset_in_bytes == sizeof::<TP>() * offset

Returns an iterator over SmartEEPROM address space.

Returns a mutable slice to SmartEEPROM mapped address space.

Underlying pointed type can be either u8, u16 or u32.

Safety

NVMCTRL.SEESTAT.BUSY register must be 0 before memory access can be performed.

Copies data in a buffer to SmartEEPROM at offset location

Note: offset_in_bytes == sizeof::<TP>() * offset

Returns a mutable iterator over SmartEEPROM address space.

Locks SmartEEPROM, allowing only to perform read operations

Unlocks SmartEEPROM, allowing to perform both read and write operations

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.

Should always be Self
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.