00001 #ifndef __KSJ_API_USER_ZONE_H__
00002 #define __KSJ_API_USER_ZONE_H__
00003
00004
00005
00006 #ifdef KSJAPI_EXPORTS
00007 #define KSJ_API __declspec(dllexport)
00008 #elif defined KSJAPI_STATIC
00009 #define KSJ_API
00010 #else
00011 #define KSJ_API __declspec(dllimport)
00012 #endif
00013
00014
00015 #ifdef __cplusplus
00016 extern "C"{
00017 #endif
00018
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00033 enum KSJ_EEPROM_TYPE {
00034 KSJ_24LC64,
00035 KSJ_24LC1024,
00036 KSJ_24LC128
00037 };
00038
00049 KSJ_API int __stdcall KSJ_EEPROMTypeGet( int nIndex, KSJ_EEPROM_TYPE *pType);
00050
00062 KSJ_API int __stdcall KSJ_WrEEPROM( int nIndex, unsigned short uRomAdress, unsigned char btValue);
00063
00075 KSJ_API int __stdcall KSJ_RdEEPROM( int nIndex, unsigned short uRomAdress, unsigned char *pbtValue);
00076
00088 KSJ_API int __stdcall KSJ_WrEEPROMEx( int nIndex, unsigned long ulRomAdress, unsigned char btValue);
00089
00101 KSJ_API int __stdcall KSJ_RdEEPROMEx( int nIndex, unsigned long ulRomAdress, unsigned char *pbtValue);
00102
00116 KSJ_API int __stdcall KSJ_WrEEPROMExEx(int nIndex, unsigned long ulRomAdress, unsigned char *pData, int nBytes);
00117
00130 KSJ_API int __stdcall KSJ_RdEEPROMExEx(int nIndex, unsigned long ulRomAdress, int nBytes, unsigned char *pData);
00131
00145 KSJ_API int __stdcall KSJ_WrEEPROMExExSafe(int nIndex, unsigned long ulRomAdress, unsigned char *pData, int nBytes);
00147 #ifdef __cplusplus
00148 }
00149 #endif
00150
00151 #endif