Contiki 2.5
Macros | Functions
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.

Macros

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

Functions

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

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.