TI-RTOS Drivers  tidrivers_full_2_20_00_08
Data Fields
NVSCC3200_HWAttrs Struct Reference

NVSCC3200 attributes. More...

#include <NVSCC3200.h>

Data Fields

void * copyBlock
 
size_t blockSize
 

Detailed Description

NVSCC3200 attributes.

For CC3200 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 NVSCC3200_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

void* NVSCC3200_HWAttrs::copyBlock

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

size_t NVSCC3200_HWAttrs::blockSize

The size of the copy block


The documentation for this struct was generated from the following file:
Copyright 2016, Texas Instruments Incorporated