XgNutNvMem


Functions

int NutNvMemLoad (u_int addr, void *buff, size_t siz)
 Read data from non-volatile memory.
int NutNvMemSave (u_int addr, CONST void *buff, size_t len)
 Save data in non-volatile memory.


Function Documentation

int NutNvMemLoad ( u_int  addr,
void *  buff,
size_t  siz 
)

Read data from non-volatile memory.

This routine provides platform independent access to non-volatile configuration data.

Parameters:
addr Location to read from.
buff Pointer to a buffer that receives the data.
siz Number of bytes to read.
Returns:
0 on success, -1 otherwise.

int NutNvMemSave ( u_int  addr,
CONST void *  buff,
size_t  len 
)

Save data in non-volatile memory.

This routine provides platform independent access to non-volatile configuration data.

Parameters:
addr Location to write to.
buff Pointer to a buffer that contains the data.
len Number of bytes to write.
Returns:
0 on success, -1 otherwise.


Generated on Tue Jan 23 21:12:31 2007 for BTnut System Software by doxygen 1.4.7