nvm.h File Reference

Cortex-M3 Non-Volatile Memory data storage system. More...

#include "hal/micro/cortexm3/memmap.h"
#include "hal/micro/cortexm3/nvm-def.h"
#include "error.h"

Go to the source code of this file.

Defines

#define NVM_FLASH_PAGE_COUNT   (1)
 Define the number of physical flash pages that comprise a NVM page.
#define NVM_DATA_SIZE_B   (MFB_PAGE_SIZE_B*NVM_FLASH_PAGE_COUNT)
 Define the total size of a NVM page, in bytes.
#define NVM_LEFT_PAGE   ((int32u)nvmStorageLeft)
 Define the absolute address of the LEFT page.
#define NVM_RIGHT_PAGE   ((int32u)nvmStorageRight)
 Define the absolute address of the RIGHT page.
#define NVM_MGMT_SIZE_B   (4)
 Define the number of bytes that comprise the NVM management bytes.

Functions

StStatus halCommonReadFromNvm (void *data, int32u offset, int16u length)
 Copy the NVM data from flash into the provided RAM location.
int16u * halCommonGetAddressFromNvm (int32u offset)
 Return the address of the token in NVM.
StStatus halCommonWriteToNvm (const void *data, int32u offset, int16u length)
 Write the NVM data from the provided location RAM into flash.

Detailed Description

Cortex-M3 Non-Volatile Memory data storage system.

See Nvm for documentation.

The functions in this file return an StStatus value. See error-def.h for definitions of all StStatus return values.

See hal/micro/cortexm3/nvm.h for source code.

Definition in file nvm.h.


Generated on Mon Apr 11 14:23:49 2011 for Contiki 2.5 by  doxygen 1.6.1