1 #ifndef SCALE_INTERFACE_C_H 2 #define SCALE_INTERFACE_C_H 4 #if defined(_WIN32) || defined(_WIN32_WCE) 5 # if defined(DTO_LIBRARY) 6 # define DTOSHARED_EXPORT __declspec(dllexport) 8 # define DTOSHARED_EXPORT __declspec(dllimport) 10 # define DTOSHARED_CCA __cdecl 11 #elif defined(__linux__) || defined(ANDROID) 12 # define DTOSHARED_EXPORT 13 # define DTOSHARED_CCA 15 # define DTOSHARED_EXPORT 16 # define DTOSHARED_CCA __attribute__ ((cdecl)) 21 DTOSHARED_EXPORT
int DTOSHARED_CCA get_LicenseValid(
void *ptr,
int *state);
22 DTOSHARED_EXPORT
int DTOSHARED_CCA get_LicenseExpiredDate(
void *ptr,
wchar_t *bfr,
int bfrSize);
23 DTOSHARED_EXPORT
int DTOSHARED_CCA get_Version(
void *ptr,
wchar_t *bfr,
int bfrSize);
24 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DriverName(
void *ptr,
wchar_t *bfr,
int bfrSize);
25 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceEnabled(
void *ptr,
int *deviceEnabled);
26 DTOSHARED_EXPORT
int DTOSHARED_CCA put_DeviceEnabled(
void *ptr,
int deviceEnabled);
27 DTOSHARED_EXPORT
int DTOSHARED_CCA get_ResultCode(
void *ptr,
int *resultCode);
28 DTOSHARED_EXPORT
int DTOSHARED_CCA get_ResultDescription(
void *ptr,
wchar_t *bfr,
int bfrSize);
29 DTOSHARED_EXPORT
int DTOSHARED_CCA get_BadParam(
void *ptr,
int *badParam);
30 DTOSHARED_EXPORT
int DTOSHARED_CCA get_BadParamDescription(
void *ptr,
wchar_t *bfr,
int bfrSize);
31 DTOSHARED_EXPORT
int DTOSHARED_CCA get_ApplicationHandle(
void *ptr,
void **appHandle);
32 DTOSHARED_EXPORT
int DTOSHARED_CCA put_ApplicationHandle(
void *ptr,
void *appHandle);
33 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceSettings(
void *ptr,
wchar_t *bfr,
int bfrSize);
34 DTOSHARED_EXPORT
int DTOSHARED_CCA put_DeviceSettings(
void *ptr,
const wchar_t *deviceSettings);
35 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceSingleSettingAsBuff(
void *ptr,
const wchar_t *name,
wchar_t *bfr,
int bfrSize);
36 DTOSHARED_EXPORT
int DTOSHARED_CCA put_DeviceSingleSettingAsBuff(
void *ptr,
const wchar_t *name,
const wchar_t *value);
37 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceSingleSettingAsInt(
void *ptr,
const wchar_t *name,
int *value);
38 DTOSHARED_EXPORT
int DTOSHARED_CCA put_DeviceSingleSettingAsInt(
void *ptr,
const wchar_t *name,
const int value);
39 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceSingleSettingAsDouble(
void *ptr,
const wchar_t *name,
double *value);
40 DTOSHARED_EXPORT
int DTOSHARED_CCA put_DeviceSingleSettingAsDouble(
void *ptr,
const wchar_t *name,
const double value);
41 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceSingleSettingMapping(
void *ptr,
const wchar_t *name,
wchar_t *bfr,
int bfrSize);
43 DTOSHARED_EXPORT
int DTOSHARED_CCA ShowProperties(
void *ptr);
44 DTOSHARED_EXPORT
int DTOSHARED_CCA ApplySingleSettings(
void *ptr);
45 DTOSHARED_EXPORT
int DTOSHARED_CCA ResetSingleSettings(
void *ptr);
47 DTOSHARED_EXPORT
int DTOSHARED_CCA GetStatus(
void *ptr);
48 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceDescription(
void *ptr,
wchar_t *bfr,
int bfrSize);
49 DTOSHARED_EXPORT
int DTOSHARED_CCA get_DeviceVersion(
void *ptr,
int *major,
int *minor);
50 DTOSHARED_EXPORT
int DTOSHARED_CCA get_Mode(
void *ptr,
int *mode);
52 DTOSHARED_EXPORT
int DTOSHARED_CCA ReadWeight(
void *ptr);
53 DTOSHARED_EXPORT
int DTOSHARED_CCA ZeroScale(
void *ptr);
54 DTOSHARED_EXPORT
int DTOSHARED_CCA SetTareWeight(
void *ptr);
55 DTOSHARED_EXPORT
int DTOSHARED_CCA Tare(
void *ptr);
56 DTOSHARED_EXPORT
int DTOSHARED_CCA get_Weight(
void *ptr,
double *value);
57 DTOSHARED_EXPORT
int DTOSHARED_CCA get_TareWeight(
void *ptr,
double *value);
58 DTOSHARED_EXPORT
int DTOSHARED_CCA put_TareWeight(
void *ptr,
double value);
59 DTOSHARED_EXPORT
int DTOSHARED_CCA Reset(
void *ptr);
61 DTOSHARED_EXPORT
int DTOSHARED_CCA get_NettoWeight(
void *ptr,
int *value);
62 DTOSHARED_EXPORT
int DTOSHARED_CCA get_AutoZeroMode(
void *ptr,
int *value);
63 DTOSHARED_EXPORT
int DTOSHARED_CCA get_OutOfZero(
void *ptr,
int *value);
64 DTOSHARED_EXPORT
int DTOSHARED_CCA get_NegWeight(
void *ptr,
int *value);
65 DTOSHARED_EXPORT
int DTOSHARED_CCA get_BigWeight(
void *ptr,
int *value);
66 DTOSHARED_EXPORT
int DTOSHARED_CCA get_NonStable(
void *ptr,
int *value);
67 DTOSHARED_EXPORT
int DTOSHARED_CCA get_InvalidRange(
void *ptr,
int *value);
70 #endif // SCALE_INTERFACE_C_H