MHEG5  15.3.0
source/core/src/mh5nvm.c File Reference

functions to support NVM store More...

#include "mh5memory.h"
#include "mh5debug.h"
#include "mh5profile.h"
#include "mh5nvm.h"
#include "mheg5_nvm.h"
#include "stb_nvm.h"

Data Structures

struct  sNvmFile

Defines

#define MAX_NAME_LENGTH   8
#define NVM_STORE_FILENAME   "NVMFILELIST.dat"

Typedefs

typedef struct sNvmFile MHEG5NvmFile

Functions

void MHEG5nvmInitialise (U32BIT nvmSize)
 Initialise NVM Storage.
MHEG5Bool MHEG5nvmRead (MHEG5String fn, void **buf, MHEG5Int *len)
 Read a file from the nvm store.
MHEG5Bool MHEG5nvmWrite (MHEG5String fn, void *buf, MHEG5Int len)
 Write a file to the nvm store.
void MHEG5nvmReset (void)
 Clear all NVM data from the persistent store.

Detailed Description

functions to support NVM store

Date:
20/12/2012
Author:
Adam Sturtridge

Function Documentation

void MHEG5nvmInitialise ( U32BIT  nvmSize)

Initialise NVM Storage.

Parameters:
nvmSizeSize of nvm available
Returns:
void
MHEG5Bool MHEG5nvmRead ( MHEG5String  fn,
void **  buf,
MHEG5Int *  len 
)

Read a file from the nvm store.

Read a file from the persistent store.

Parameters:
fnFile name specifier.
bufData variable.
lenData length.
Returns:
MHEG5TRUE - Success. MHEG5FALSE - Failure.
void MHEG5nvmReset ( void  )

Clear all NVM data from the persistent store.

Returns:
void.
MHEG5Bool MHEG5nvmWrite ( MHEG5String  fn,
void *  buf,
MHEG5Int  len 
)

Write a file to the nvm store.

Write a file to the persistent store.

Parameters:
fnFile name specifier.
bufData variable.
lenData length.
Returns:
MHEG5TRUE - Success. MHEG5FALSE - Failure.
 All Data Structures Files Functions Variables Typedefs Defines