Data Fields
NVSCC32XX_HWAttrs Struct Reference

NVSCC32XX attributes. More...

#include <NVSCC32XX.h>

Data Fields

void * copyBlock
 
size_t blockSize
 

Detailed Description

NVSCC32XX attributes.

For CC32XX devices, there is no need to provide the flash block address, since this is managed by the SimpleLink libraries. The SimpleLink libraries use the notion of "files" to manage flash blocks. We use the id field of the NVSCC32XX_HWAttrs to construct a file name that will correspond to a flash block.

When a file is written to, a scratch region is needed to preserve the unmodified data in the file. This scratch region, referred to as copyBlock, should be a buffer in RAM. The application can set copyBlock in the HWAttrs directly, if it is known at compile time, or set copyBlock through NVS_control(), for example, if it is allocated on the heap. The copyBlock can be shared accross multiple NVS instances. It is up to the application to ensure that copyBlock is set before the first call to NVS_write(). The copyBlock should be large enough to hold the maximum file size of 4 Kbytes. When writing data to a file, the contents of the file are first copied to the copyBlock. The copyBlock is then updated with the new data, and then written back to the file.

Field Documentation

§ copyBlock

void* NVSCC32XX_HWAttrs::copyBlock

A RAM buffer or flash block to use for scratch when writing to the block.

§ blockSize

size_t NVSCC32XX_HWAttrs::blockSize

The size of the copy block


The documentation for this struct was generated from the following file:
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale