Struct pygamer::thumbv7em::nvm::smart_eeprom::SmartEeprom
source ·
[−]pub struct SmartEeprom<'a, T> where
T: SmartEepromState, { /* fields omitted */ }
Expand description
Implementations
Returns an immutable slice to SmartEEPROM mapped address space.
Underlying pointed type
can be either
u8
, u16
or u32
.
Unsafety:
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
pub fn iter<TP>(&'a self) -> SmartEepromIter<'a, TP>ⓘNotable traits for SmartEepromIter<'a, TP>impl<'a, TP> Iterator for SmartEepromIter<'a, TP> where
TP: SmartEepromPointableSize, type Item = &'a TP;
where
TP: SmartEepromPointableSize,
pub fn iter<TP>(&'a self) -> SmartEepromIter<'a, TP>ⓘNotable traits for SmartEepromIter<'a, TP>impl<'a, TP> Iterator for SmartEepromIter<'a, TP> where
TP: SmartEepromPointableSize, type Item = &'a TP;
where
TP: SmartEepromPointableSize,
impl<'a, TP> Iterator for SmartEepromIter<'a, TP> where
TP: SmartEepromPointableSize, type Item = &'a TP;
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
.
Unsafety:
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
pub fn iter_mut<TP>(&'a mut self) -> SmartEepromIterMut<'a, TP>ⓘNotable traits for SmartEepromIterMut<'a, TP>impl<'a, TP> Iterator for SmartEepromIterMut<'a, TP> where
TP: SmartEepromPointableSize, type Item = &'a mut TP;
where
TP: SmartEepromPointableSize,
pub fn iter_mut<TP>(&'a mut self) -> SmartEepromIterMut<'a, TP>ⓘNotable traits for SmartEepromIterMut<'a, TP>impl<'a, TP> Iterator for SmartEepromIterMut<'a, TP> where
TP: SmartEepromPointableSize, type Item = &'a mut TP;
where
TP: SmartEepromPointableSize,
impl<'a, TP> Iterator for SmartEepromIterMut<'a, TP> where
TP: SmartEepromPointableSize, type Item = &'a mut TP;
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
impl<'a, T> RefUnwindSafe for SmartEeprom<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for SmartEeprom<'a, T> where
T: Send,
impl<'a, T> !Sync for SmartEeprom<'a, T>
impl<'a, T> Unpin for SmartEeprom<'a, T> where
T: Unpin,
impl<'a, T> !UnwindSafe for SmartEeprom<'a, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.