eeprom.h File Reference

Provides access to EEPROM. More...

Go to the source code of this file.

Data Structures

struct  HAL_EepromParams_t
 eeprom access control structure More...

Functions

int HAL_ReadEeprom (HAL_EepromParams_t *params)
 Reads a number of bytes defined by HAL_EepromParams_t from the EEPROM.
int HAL_WriteEeprom (HAL_EepromParams_t *params, void(*writeDone)())
 Writes a number of bytes defined by HAL_EepromParams_t to EEPROM. By writeDone parameter user can control if write operation will be asynchronous or synchronous.


Detailed Description

Provides access to EEPROM.

Definition in file eeprom.h.


Function Documentation

int HAL_ReadEeprom ( HAL_EepromParams_t params  ) 

Reads a number of bytes defined by HAL_EepromParams_t from the EEPROM.

Parameters:
[in] params - address of HAL_EepromParams_t defined by user.
Returns:
Number of bytes that were read from EEPROM - success,
-2 - the previous EEPROM request is not completed yet,
-1 - the number of bytes to read is too large.

int HAL_WriteEeprom ( HAL_EepromParams_t params,
void(*)()  writeDone 
)

Writes a number of bytes defined by HAL_EepromParams_t to EEPROM. By writeDone parameter user can control if write operation will be asynchronous or synchronous.

Parameters:
[in] params - address of HAL_EepromParams_t defined by user.
[in] writeDone - address of callback. if writeDone is 0 write operation will be synchronous.
Returns:
Number of bytes that were written to EEPROM - success (synchronous operation),
0 - success (asynchronous operation),
-2 - the previous EEPROM request is not completed yet,
-1 - the number of bytes to read is too large.


Generated on Wed Apr 2 19:06:16 2008 for ZigBeeNet Stack Documentation by  doxygen 1.5.1-p1