pub enum SimEeprom {
ErasePageGreen,
ErasePageRed,
Full,
Init1Failed,
Init2Failed,
Init3Failed,
}Expand description
Ember simulated EEPROM status.
Variants§
ErasePageGreen
The Simulated EEPROM is telling the application that there is at least one flash page to be erased.
The GREEN status means the current page has not filled above the ERASE_CRITICAL_THRESHOLD.
The application should call the function halSimEepromErasePage when it can to erase a page.
ErasePageRed
The Simulated EEPROM is telling the application that there is at least one flash page to be erased.
The RED status means the current page has filled above the ERASE_CRITICAL_THRESHOLD.
Due to the shrinking availability of write space, there is a danger of data loss.
The application must call the function halSimEepromErasePage as soon as possible to erase a page.
Full
The Simulated EEPROM has run out of room to write any new data and the data trying to be set has been lost.
This error code is the result of ignoring the SIM_EEPROM_ERASE_PAGE_RED error code.
The application must call the function halSimEepromErasePage to make room for any
further calls to set a token.
Init1Failed
Attempt 1 to initialize the Simulated EEPROM has failed.
This failure means the information already stored in Flash (or a lack thereof), is fatally incompatible with the token information compiled into the code image being run.
Init2Failed
Attempt 2 to initialize the Simulated EEPROM has failed.
This failure means Attempt 1 failed, and the token system failed to properly reload default tokens and reset the Simulated EEPROM.
Init3Failed
Attempt 3 to initialize the Simulated EEPROM has failed.
This failure means one or both of the tokens TOKEN_MFG_NVDATA_VERSION or
TOKEN_STACK_NVDATA_VERSION were incorrect.
Trait Implementations§
impl Copy for SimEeprom
impl Eq for SimEeprom
Source§impl Error for SimEeprom
impl Error for SimEeprom
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl FromPrimitive for SimEeprom
impl FromPrimitive for SimEeprom
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl StructuralPartialEq for SimEeprom
Auto Trait Implementations§
impl Freeze for SimEeprom
impl RefUnwindSafe for SimEeprom
impl Send for SimEeprom
impl Sync for SimEeprom
impl Unpin for SimEeprom
impl UnsafeUnpin for SimEeprom
impl UnwindSafe for SimEeprom
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more