fefu.h
Go to the documentation of this file.
00001 /*-------------------------------------------------------
00002 |                                                       |
00003 |                       fefu.h                          |
00004 |                                                       |
00005 ---------------------------------------------------------
00006 
00007 Copyright (C) 2003-2011 FEIG ELECTRONIC GmbH, All Rights Reserved.
00008                                                 Lange Strasse 4
00009                                                 D-35781 Weilburg
00010                                                 Federal Republic of Germany
00011                                                 phone    : +49 6471 31090
00012                                                 fax      : +49 6471 310999
00013                                                 e-mail   : obid-support@feig.de
00014                                                 Internet : http://www.feig.de
00015                                         
00016 Author                  :       Markus Hultsch
00017 
00018 Version                 :       02.00.00 / 21.07.2011 / M. Hultsch
00019 
00020 Operation Systems       :       Windows XP / Vista / 7 / 8
00021                                                 Windows CE
00022                                                 Linux
00023                                                 Mac OS X V10.7.3 or higher
00024                                                 Android
00025 
00026 
00027 This file contains the constants, datatypes and function declartions of FEFU library
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 // FEFU constants
00058 // #####################################################
00059 
00060 // common errors
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 // communication errors
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 // parameter errors
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 // constants for dynamic load of library
00080 
00081 // miscellaneous functions
00082 #define FEFU_GET_DLL_VERSION                            4100
00083 #define FEFU_GET_ERROR_TEXT                                     4101
00084 #define FEFU_GET_STATUS_TEXT                            4102
00085 
00086 // query functions
00087 #define FEFU_GET_LAST_STATE                                     4103
00088 #define FEFU_GET_LAST_ERROR                                     4104
00089 
00090 // communication functions for multiplexer
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 // communication functions for antenna tuner
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 // FEFU functions
00118 // #####################################################
00119 
00120 // miscellaneous functions
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 // query functions
00126 int  DLL_EXT_FUNC FEFU_GetLastState( char* cStatusText );
00127 int  DLL_EXT_FUNC FEFU_GetLastError( int* iErrorCode, char* cErrorText );
00128 
00129 // communication functions for multiplexer
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 // communication functions for antenna tuner
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 // communication functions for UHF multiplexer
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 // typedefs of DLL-functions for explicite loading
00165 // #####################################################
00166 
00167 // miscellaneous functions
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 // query functions
00173 typedef int  (CALLBACK* LPFN_FEFU_GET_LAST_ERROR)(int*, char*);
00174 typedef int  (CALLBACK* LPFN_FEFU_GET_LAST_STATE)(char*);
00175 
00176 // communication functions for multiplexer
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 // communication functions for UHF multiplexer
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 // communication functions for dynamic antenna tuner
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 


maggie_rfid_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:05:30