00001
00046 #ifdef PFCONFIG_EXPORTS
00047 #ifdef __cplusplus
00048 extern "C"
00049 #define PFCONFIG_API extern "C" __declspec(dllexport)
00050 #else
00051 #define PFCONFIG_API __declspec(dllexport)
00052 #endif
00053
00054 #else
00055 #ifdef __cplusplus
00056 #define PFCONFIG_API extern "C" __declspec(dllimport)
00057 #else
00058 #define PFCONFIG_API __declspec(dllimport)
00059 #endif
00060 #endif
00061
00062 #include <stdio.h>
00063 #include <string>
00064 using namespace std;
00065
00072 PFCONFIG_API char* pfGetVersion(int iPort);
00073
00074
00082 PFCONFIG_API int pfInitUsb(char* pDllName);
00083
00084
00090 PFCONFIG_API int pfGetNumPort(void);
00091
00092
00102 PFCONFIG_API const char* pfGetPortInfo(int iPort);
00103
00104
00120
00129
00133 PFCONFIG_API const char* pfGetPropertyInfo(int iPort, int iProperty, int* iPropType, int* iPropFlag);
00134
00135
00142 PFCONFIG_API int pfGetNumProperties(int iPort);
00143
00144
00153 PFCONFIG_API const char* pfGetErrorMsg(int iPort);
00154
00155
00162 PFCONFIG_API int pfClosePort(int iPort);
00163
00164
00173 PFCONFIG_API int pfOpenPort(int iPort, int iCheckHigherBaudrate=false);
00174
00175
00185 PFCONFIG_API int pfSetCameraPropertyS(int iPort, const char* pProperty, const char* pValue);
00186
00187
00198 PFCONFIG_API int pfGetCameraPropertyS(int iPort, const char* pProperty, char* pValue, int iSize);
00199
00200
00210 PFCONFIG_API int pfSetCameraPropertyF(int iPort, const char* pProperty, float fValue);
00211
00212
00221 PFCONFIG_API float pfGetCameraPropertyF(int iPort, const char* pProperty);
00222
00223
00233 PFCONFIG_API int pfGetCameraPropertyFloat(int iPort, const char* pProperty, float *fValue);
00234
00235
00245 PFCONFIG_API int pfSetCameraPropertyI(int iPort, const char* pProperty, int iValue);
00246
00247
00256 PFCONFIG_API int pfGetCameraPropertyI(int iPort, const char *pProperty);
00257
00258
00268 PFCONFIG_API int pfGetCameraPropertyInt(int iPort, const char *pProperty, int *iValue);