00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _FEFU_INCLUDE_H
00031 #define _FEFU_INCLUDE_H
00032
00033
00034 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_CVI_)
00035 #ifdef FEFUDLL
00036 #define DLL_EXT_FUNC __declspec(dllexport) __stdcall
00037 #else
00038 #define DLL_EXT_FUNC __declspec(dllimport) __stdcall
00039 #endif
00040 #define FEFU_EXT_CALL __stdcall
00041 #else
00042 #define FEFU_EXT_CALL
00043 #define DLL_EXT_FUNC
00044 #define CALLBACK
00045 #endif
00046
00047
00048
00049 #ifdef __cplusplus
00050 extern "C" {
00051 #endif
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 #define FEFU_ERR_POINTER_IS_NULL -4102
00062 #define FEFU_ERR_NO_MORE_MEM -4103
00063 #define FEFU_ERR_UNSUPPORTED_FUNCTION -4105
00064
00065
00066 #define FEFU_ERR_PROTLEN -4130
00067 #define FEFU_ERR_CHECKSUM -4031
00068 #define FEFU_ERR_TIMEOUT -4132
00069 #define FEFU_ERR_UNKNOWN_STATUS -4133
00070 #define FEFU_ERR_NO_RECDATA -4134
00071
00072
00073 #define FEFU_ERR_UNKNOWN_PARAMETER -4150
00074 #define FEFU_ERR_PARAMETER_OUT_OF_RANGE -4151
00075 #define FEFU_ERR_UNKNOWN_ERRORCODE -4153
00076
00077
00078
00079
00080
00081
00082 #define FEFU_GET_DLL_VERSION 4100
00083 #define FEFU_GET_ERROR_TEXT 4101
00084 #define FEFU_GET_STATUS_TEXT 4102
00085
00086
00087 #define FEFU_GET_LAST_STATE 4103
00088 #define FEFU_GET_LAST_ERROR 4104
00089
00090
00091 #define FEFU_MUX_CPU_RESET 4110
00092 #define FEFU_MUX_SOFT_VERSION 4111
00093 #define FEFU_MUX_SELECT_CHANNEL 4112
00094 #define FEFU_MUX_DETECT 4113
00095 #define FEFU_UMUX_CPU_RESET 4114
00096 #define FEFU_UMUX_SOFT_VERSION 4115
00097 #define FEFU_UMUX_SELECT_CHANNEL 4116
00098 #define FEFU_UMUX_DETECT 4117
00099
00100
00101 #define FEFU_DAT_SOFT_VERSION 4120
00102 #define FEFU_DAT_CPU_RESET 4121
00103 #define FEFU_DAT_SET_CAPACITIES 4122
00104 #define FEFU_DAT_GET_VALUES 4123
00105 #define FEFU_DAT_SET_OUTPUT 4124
00106 #define FEFU_DAT_RE_TUNING 4125
00107 #define FEFU_DAT_START_TUNING 4126
00108 #define FEFU_DAT_SWITCH_ANTENNA 4127
00109 #define FEFU_DAT_STORE_SETTINGS 4128
00110 #define FEFU_DAT_SET_ADDRESS 4129
00111 #define FEFU_DAT_DETECT 4130
00112 #define FEFU_DAT_SET_MODE 4131
00113
00114
00115
00116
00117
00118
00119
00120
00121 void DLL_EXT_FUNC FEFU_GetDLLVersion( char* cVersion );
00122 int DLL_EXT_FUNC FEFU_GetErrorText( int iErrorCode, char* cErrorText );
00123 int DLL_EXT_FUNC FEFU_GetStatusText( unsigned char ucStatus, char* cStatusText );
00124
00125
00126 int DLL_EXT_FUNC FEFU_GetLastState( char* cStatusText );
00127 int DLL_EXT_FUNC FEFU_GetLastError( int* iErrorCode, char* cErrorText );
00128
00129
00130 int DLL_EXT_FUNC FEFU_MUX_CPUReset( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr );
00131 int DLL_EXT_FUNC FEFU_MUX_SoftVersion( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr, unsigned char* ucVersion );
00132 int DLL_EXT_FUNC FEFU_MUX_SelectChannel( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr, unsigned char ucIn1, unsigned char ucIn2 );
00133 int DLL_EXT_FUNC FEFU_MUX_Detect( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr );
00134
00135
00136 int DLL_EXT_FUNC FEFU_DAT_SoftVersion( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr, unsigned char* ucVersion );
00137 int DLL_EXT_FUNC FEFU_DAT_CPUReset( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr );
00138 int DLL_EXT_FUNC FEFU_DAT_SetCapacities( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr, unsigned char ucCap1, unsigned char ucCap2 );
00139 int DLL_EXT_FUNC FEFU_DAT_GetValues( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr, unsigned char* ucValues );
00140 int DLL_EXT_FUNC FEFU_DAT_SetOutput( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr, unsigned char ucOut );
00141 int DLL_EXT_FUNC FEFU_DAT_ReTuning( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr );
00142 int DLL_EXT_FUNC FEFU_DAT_StartTuning( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr );
00143 int DLL_EXT_FUNC FEFU_DAT_SwitchAntenna( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr );
00144 int DLL_EXT_FUNC FEFU_DAT_StoreSettings( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr );
00145 int DLL_EXT_FUNC FEFU_DAT_SetAddress( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr, unsigned char ucNewDatAdr );
00146 int DLL_EXT_FUNC FEFU_DAT_Detect( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr );
00147 int DLL_EXT_FUNC FEFU_DAT_SetMode( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucDatAdr, unsigned char ucMode );
00148
00149
00150
00151 int DLL_EXT_FUNC FEFU_UMUX_CPUReset( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr, unsigned char ucFlags, unsigned char* ucMuxState );
00152 int DLL_EXT_FUNC FEFU_UMUX_SoftVersion( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr, unsigned char ucFlags,unsigned char* ucMuxState, unsigned char* ucVersion );
00153 int DLL_EXT_FUNC FEFU_UMUX_SelectChannel( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr, unsigned char ucFlags, unsigned char ucChannelNo, unsigned char* ucMuxState);
00154 int DLL_EXT_FUNC FEFU_UMUX_Detect_GetPower( int iReaderHnd, unsigned char ucReaderBusAdr, unsigned char ucMuxAdr, unsigned char ucFlags, unsigned char* ucMuxState, unsigned char* ucData );
00155
00156 #undef DLL_EXT_FUNC
00157
00158 #ifdef __cplusplus
00159 }
00160 #endif
00161
00162
00163
00164
00165
00166
00167
00168 typedef void (CALLBACK* LPFN_FEFU_GET_DLL_VERSION)(char*);
00169 typedef int (CALLBACK* LPFN_FEFU_GET_ERROR_TEXT)(int, char*);
00170 typedef int (CALLBACK* LPFN_FEFU_GET_STATUS_TEXT)(unsigned char, char*);
00171
00172
00173 typedef int (CALLBACK* LPFN_FEFU_GET_LAST_ERROR)(int*, char*);
00174 typedef int (CALLBACK* LPFN_FEFU_GET_LAST_STATE)(char*);
00175
00176
00177 typedef int (CALLBACK* LPFN_FEFU_MUX_CPU_RESET)(int, unsigned char, unsigned char);
00178 typedef int (CALLBACK* LPFN_FEFU_MUX_SOFT_VERSION)(int, unsigned char, unsigned char, unsigned char*);
00179 typedef int (CALLBACK* LPFN_FEFU_MUX_SELECT_CHANNEL)(int, unsigned char, unsigned char, unsigned char, unsigned char);
00180 typedef int (CALLBACK* LPFN_FEFU_MUX_DETECT)(int, unsigned char, unsigned char);
00181
00182
00183 typedef int (CALLBACK* LPFN_FEFU_UMUX_CPU_RESET)(int, unsigned char, unsigned char, unsigned char, unsigned char*);
00184 typedef int (CALLBACK* LPFN_FEFU_UMUX_SOFT_VERSION)(int, unsigned char, unsigned char, unsigned char, unsigned char*, unsigned char*);
00185 typedef int (CALLBACK* LPFN_FEFU_UMUX_SELECT_CHANNEL)(int, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*);
00186 typedef int (CALLBACK* LPFN_FEFU_UMUX_DETECT)(int, unsigned char, unsigned char, unsigned char, unsigned char*, unsigned char*);
00187
00188
00189 typedef int (CALLBACK* LPFN_FEFU_DAT_CPU_RESET)(int, unsigned char, unsigned char);
00190 typedef int (CALLBACK* LPFN_FEFU_DAT_SOFT_VERSION)(int, unsigned char, unsigned char, unsigned char*);
00191 typedef int (CALLBACK* LPFN_FEFU_DAT_SET_CAPACITIES)(int, unsigned char, unsigned char, unsigned char, unsigned char);
00192 typedef int (CALLBACK* LPFN_FEFU_DAT_GET_VALUES)(int, unsigned char, unsigned char, unsigned char*);
00193 typedef int (CALLBACK* LPFN_FEFU_DAT_SET_OUTPUT)(int, unsigned char, unsigned char, unsigned char);
00194 typedef int (CALLBACK* LPFN_FEFU_DAT_RE_TUNING)(int, unsigned char, unsigned char);
00195 typedef int (CALLBACK* LPFN_FEFU_DAT_START_TUNING)(int, unsigned char, unsigned char);
00196 typedef int (CALLBACK* LPFN_FEFU_DAT_SWITCH_ANTENNA)(int, unsigned char, unsigned char);
00197 typedef int (CALLBACK* LPFN_FEFU_DAT_STORE_SETTINGS)(int, unsigned char, unsigned char);
00198 typedef int (CALLBACK* LPFN_FEFU_DAT_SET_ADDRESS)(int, unsigned char, unsigned char, unsigned char);
00199 typedef int (CALLBACK* LPFN_FEFU_DAT_DETECT)(int, unsigned char, unsigned char);
00200 typedef int (CALLBACK* LPFN_FEFU_DAT_SET_MODE)(int, unsigned char, unsigned char, unsigned char);
00201
00202 #endif // _FEFU_INCLUDE_H
00203