00001 #ifndef __KSJ_API_PROGRAM_H__
00002 #define __KSJ_API_PROGRAM_H__
00003 
00004 // #pragma message("Include KSJApiProgram.h") 
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 
00032     KSJ_API  int __stdcall KSJ_SetSerials(int nIndex, unsigned char btSerials);
00033 
00045     KSJ_API  int __stdcall KSJ_GetSerials(int nIndex, unsigned char *pbtSerials);
00046 
00058     KSJ_API  int __stdcall KSJ_SerialsDescReadout(int nIndex, unsigned char btDesc[16]);
00059 
00070     KSJ_API  int __stdcall KSJ_HardwareVersionReadout(int nIndex, unsigned char btVersion[64]);
00071 
00082     KSJ_API  int __stdcall KSJ_LutInfoProgram(int nIndex, unsigned short wValue);
00083 
00094     KSJ_API  int __stdcall KSJ_LutInfoReadout(int nIndex, unsigned short *pValue);
00095 
00106     KSJ_API  int __stdcall KSJ_HWBMatrixProgram(int nIndex, float fMatrix[3]);
00107 
00118     KSJ_API  int __stdcall KSJ_HWBMatrixReadout(int nIndex, float fMatrix[3]);
00119 
00131     KSJ_API  int __stdcall KSJ_HWBMatrixUpload(int nIndex, float fMatrix[3]);
00132 
00143     KSJ_API  int __stdcall KSJ_HCCMMatrixProgram(int nIndex, float fMatrix[3][3]);
00144 
00155     KSJ_API  int __stdcall KSJ_HCCMMatrixReadout(int nIndex, float fMatrix[3][3]);
00156 
00167     KSJ_API  int __stdcall KSJ_HCCMMatrixUpload(int nIndex, float fMatrix[3][3]);
00168 
00179     KSJ_API  int __stdcall KSJ_LutFileProgram(int nIndex, TCHAR *pszFile);
00180 
00192     KSJ_API  int __stdcall KSJ_LutDataProgram(int nIndex, unsigned char *pData, int nBytes);
00193 
00205     KSJ_API  int __stdcall KSJ_LutDataReadout(int nIndex, unsigned char *pData, int *pnBytes);
00206 
00217     KSJ_API  int __stdcall KSJ_ParamProgram(int nIndex);          
00218 
00228     KSJ_API  int __stdcall KSJ_LoadParamFromCamera(int nIndex);
00229 
00240     KSJ_API  int __stdcall KSJ_ParamErase(int nIndex);            
00241 
00252     KSJ_API  int __stdcall KSJ_SaveParamToFile(int nIndex, TCHAR *pszFile);
00253 
00264     KSJ_API  int __stdcall KSJ_LoadParamFromFile(int nIndex, TCHAR *pszFile);
00266 #ifdef __cplusplus
00267 }
00268 #endif
00269 
00270 #endif