#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
§ NVSCC32XX_CMD_SET_COPYBLOCK
Command to set the copy block for an NVS block.
Passing NVSCC32XX_CMD_SET_COPYBLOCK to NVS_control(), along with a block of memory, is used to set the copy block for an NVSCC32XX_HWAttrs structure. The copy block is a RAM buffer used as scratch when writing to non-volatile storage.
If the copy block is not known at compile time, for example, if it is allocated from heap memory, it can be set through NVS_control() using the command NVSCC32XX_CMD_SET_COPYBLOCK. The copy block is passed in the arg parameter of NVS_control(). The size of the copy block passed to NVS_control() must be at least as large as the flash page size, and it is up to the application to ensure this.
- See also
- NVSCC32XX_HWAttrs
§ NVSCC32XX_STATUS_ECOPYBLOCK
Alignment error returned by NVSCC32XX_control().
This error is returned if the copy block passed to NVSCC32XX_control() is not aligned on a 4-byte boundary, or is NULL.
- See also
- NVSCC32XX_HWAttrs
§ NVSCC32XX_fxnTable