1.5.1.4.11 SRV_STORAGE_ReadNonVolatileData Function
C
uint32_t SRV_STORAGE_ReadNonVolatileData(uint8_t slot);
Summary
Reads one non-volatile data slot.
Description
This routine reads the 32-bit value stored in the given non-volatile data slot from the non-volatile storage cache.
Note: Available on SAMD20 devices only.
Precondition
The SRV_STORAGE_Initialize Function must have been called before.
Parameters
| Parameters | Description |
|---|---|
| slot | Slot index to read (0 to SRV_STORAGE_NON_VOLATILE_DATA_NUM_SLOTS - 1) |
Returns
The 32-bit value stored in the slot, or 0 if the slot index is out of range.
Example
uint32_t resetInfo = SRV_STORAGE_ReadNonVolatileData(5);
Remarks
None.
