1.5.1.4.13 SRV_STORAGE_WriteBlockNonVolatileData Function
C
void SRV_STORAGE_WriteBlockNonVolatileData(uint8_t startSlot, uint8_t count, const uint32_t *values);
Summary
Writes several consecutive non-volatile data slots in a single operation.
Description
This routine writes count consecutive 32-bit values starting at startSlot and persists them to non-volatile storage in a single operation.
Note: Available on SAMD20 devices only.
Precondition
The SRV_STORAGE_Initialize Function must have been called before.
Parameters
| Parameters | Description |
|---|---|
| startSlot | Index of the first slot to write |
| count | Number of consecutive slots to write |
| values | Pointer to an array of count 32-bit values |
Returns
None.
Example
uint32_t dump[11]; SRV_STORAGE_WriteBlockNonVolatileData(5, 11, dump);
Remarks
The request is ignored if values is NULL or the range (startSlot + count) exceeds SRV_STORAGE_NON_VOLATILE_DATA_NUM_SLOTS.
