Subversion Repositories NaviCtrl

Rev

Rev 264 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
248 killagreg 1
#ifndef __EEPROM_H
2
#define __EEPROM_H
3
 
4
typedef enum
5
{
6
  EEPROM_SUCCESS = 0,
7
  EERPOM_ERROR_I2C_DEINIT,
8
  EEPROM_ERROR_I2C_IDLE_TIMEOUT,
9
  EEPROM_ERROR_I2C_TRANSFER_TIMEOUT,
10
  EEPROM_ERROR_OUT_OF_ADDRESS_RANGE,
11
  EEPROM_DATA_TRANSFER_INCOMPLETE,
12
  EEPROM_I2C_BUFFER_OVERRUN,
256 killagreg 13
  EEPROM_NO_ACK,
248 killagreg 14
  EEPROM_ERROR_UNKNOWN
15
} EEPROM_Result_t;
16
 
264 killagreg 17
u8 EEPROM_Init(void);
248 killagreg 18
EEPROM_Result_t EEPROM_WriteBlock(u16 Address, u8 *pData, u16 DataLen);
19
EEPROM_Result_t EEPROM_ReadBlock(u16 Address, u8 *pData, u16 DataLen);
20
 
21
#endif // EEPROM_H
22