00001
00010 #include "pftypes.h"
00011 #include "api.h"
00012
00013
00137
00138 #ifndef APIFUNC
00139 #define APIFUNC(retval, name, parms) \
00140 CAMDLL_API retval APIDECL pf##name parms;
00141 #endif
00142
00143
00203 APIFUNC(int, PortInit, (int *numOfPorts))
00204
00205
00206
00235 APIFUNC(int, PortInfo, (int port, char *manu, int *mBytes, char *name, int *nBytes, int *version, int *type))
00236
00237
00238
00249 APIFUNC(int, IsBaudRateSupported, (int port, int baudrate))
00250
00251
00252
00262 APIFUNC(int, GetBaudRate, (int port, int *baudrate))
00263
00264
00265
00275 APIFUNC(int, SetBaudRate, (int port, int baudrate))
00276
00277
00278
00291 APIFUNC(int, DeviceOpen, (int port))
00292
00293
00294
00304 APIFUNC(int, DeviceClose, (int port))
00305
00306
00307
00308
00309
00310
00312
00313
00314
00315 APIFUNC(const char *, DeviceGetDllVersion, (int port, int *major, int *minor))
00316
00317
00318
00319
00320
00344 APIFUNC(TOKEN, Device_GetRoot, (int port))
00345
00346
00347
00373 APIFUNC(TOKEN, Property_Select, (int port, TOKEN parent, TOKEN prev))
00374
00375
00376
00385 APIFUNC(TOKEN, Property_ParseName, (int port, const char *propname))
00386
00387
00388
00398 APIFUNC(const char *, Property_GetName, (int port, TOKEN p))
00399
00400
00401
00410 APIFUNC(PropertyType, Property_GetType, (int port, TOKEN p))
00411
00412
00413
00422 APIFUNC(unsigned long, Property_GetFlags, (int port, TOKEN p))
00423
00424
00425
00445 APIFUNC(int, Device_GetProperty, (int port, TOKEN p, PFValue *value))
00446
00447
00448
00467 APIFUNC(int, Device_GetProperty_String, (int port, TOKEN p, char *outs, int len))
00468
00469
00470
00480 APIFUNC(int, Device_SetProperty, (int port, TOKEN p, PFValue *value))
00481
00482
00483
00496 APIFUNC(int, Device_SetProperty_String, (int port, TOKEN p, const char *string))
00497
00498
00499
00500
00501
00502
00503 APIFUNC(int, Write, (int port, unsigned short addr, const unsigned char *buf, unsigned int size))
00504 APIFUNC(int, Read, (int port, unsigned short addr, unsigned char *buf, int size))
00505
00506
00534 APIFUNC(const char *, GetErrorString, (int error))
00535
00536
00537
00547 APIFUNC(int, Value_ToString, (PFValue *val, char *outs, int len))
00548
00549
00550
00562 APIFUNC(FeedbackFuncP, SetFeedback, (int port, FeedbackFuncP func))
00563