#ifndef __ee24lc256_h__
#define __ee24lc256_h__

#define EEPAGE_TO_ADDR(n) ((n) * 64)

#ifdef __cplusplus
extern "C" {
#endif

int ee24lc256Init(unsigned char);
int ee24lc256ReadByte(unsigned short, unsigned char *);
int ee24lc256WriteByte(unsigned short, unsigned char);
int ee24lc256ReadPage(unsigned short, unsigned short, unsigned char *);
int ee24lc256WritePage(unsigned short, unsigned short, unsigned char *);
int ee24lc256GetDeviceInfo(unsigned int *pNumPages, unsigned int *pPageSize);

#ifdef __cplusplus
}
#endif

#endif /* __ee24lc256_h__ */

