1.5.1.4.12 SRV_STORAGE_WriteNonVolatileData Function

C

void SRV_STORAGE_WriteNonVolatileData(uint8_t slot, uint32_t value);

Summary

Writes one non-volatile data slot.

Description

This routine writes a 32-bit value to the given non-volatile data slot and persists it to non-volatile storage. It is a convenience wrapper around SRV_STORAGE_WriteBlockNonVolatileData Function for a single slot.

Note: Available on SAMD20 devices only.

Parameters

ParametersDescription
slotSlot index to write (0 to SRV_STORAGE_NON_VOLATILE_DATA_NUM_SLOTS - 1)
value32-bit value to store

Returns

None.

Example

SRV_STORAGE_WriteNonVolatileData(5, resetInfo);

Remarks

Out-of-range slot indices are ignored.