DCTag SDK: QualityDefine.h Source File From DCTag SDK 1.2.1 previous page next page DCTag SDK 1.2.1 Copyright © 1983-2016 Advantech Co., Ltd. Main Page Data Structures Files Examples File List Globals QualityDefine.h 1 #ifndef QUALITYDEFINE_H 2 #define QUALITYDEFINE_H 3 4 // 5 // Analog Tag Quality Code 6 // 7 #define QLTY_OVER_RANGE 0x0001 // 'Over Range' 8 9 #define QLTY_UNDER_RANGE 0x0002 // 'Under Range' 10 11 #define QLTY_OPEN_LOOP 0x0003 // 'Open Loop' 12 13 #define QLTY_SHORTED_LOOP 0x0004 // 'Shorted Loop' 14 15 16 // 17 // Exception Quality Code 18 // 19 #define QLTY_RESTART 0x8001 // 'Comm Error' indicates that the data has not been updated from the field since device reset. 20 21 #define QLTY_DRIVER_LOAD_FAILED 0x8002 // 'Driver Error' 22 23 #define QLTY_PORT_OPEN_FAILED 0x8003 // 'Port Error' 24 25 #define QLTY_DEVICE_ERROR 0x8004 // 'Device Error' 3+ packets in this device failed 26 27 #define QLTY_CONVERSION_CODE_ERROR 0x8005 // 'Conversion Code Error' 28 29 #define QLTY_CONVERSION_ERROR 0x8006 // 'Conversion Error' 30 31 #define QLTY_DATA_TYPE_ERROR 0x8007 // 'Data Type Error' 32 33 #define QLTY_DATA_SIZE_ERROR 0x8008 // 'Data Size Error' 34 35 #define QLTY_DATA_ERROR 0x8009 // 'Data Error' 36 37 #define QLTY_CHECKSUM_ERROR 0x800a // 'Checksum Error' 38 39 #define QLTY_MSG_SEQ_ERROR 0x800b // 'MsgSeq Error' Incorrect message sequence 40 41 #define QLTY_NO_OWNER 0x8080 // 'Data Source Absent' 42 43 #define QLTY_DISCONNECTED 0x8081 // 'Disconnected' 44 45 #define QLTY_DRIVER_SEPCIFIED 0x8100 // 'Driver Sepcified' 46 47 48 // NOTE: Use this macro to compare qualities 49 #define QLTY_IS_EQUAL(qlty,qlty_code) ((int16_t)(qlty) == (int16_t)(qlty_code)) 50 51 #endif // QUALITYDEFINE_H Generated on Thu May 19 2016 14:18:17 for DCTag SDK by 1.8.11 previous page start next page