documentation
.HELP!
DCTag SDK 1.2.1 Documentation
DCTag SDK: QualityDefine.h Source File
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
Menu
Homepage
Table of contents
Introduction
API List
Library Initializing Functions
Tag Handle Manipulating Functions
Tag Data Accessing Functions
Data Structures
Data Structures
dc_tag
quality
time
usec
value
dc_tag_callback
read_tag
size
update_tag
write_tag
Data Fields
All
Variables
Files
File List
DCTag.h
dc_tag
quality
time
usec
value
dc_tag_callback
read_tag
size
update_tag
write_tag
DC_TAG_MAX_RW_COUNT
DC_TAG
DC_TAG_CALLBACK
DC_TAG_HANDLE
dc_tag_error_code
DC_TAG_ERR_INVALID_PARAM
DC_TAG_ERR_NO_CONNECTION
DC_TAG_ERR_MEM_ALLOC_FAILED
DC_TAG_ERR_REQUEST_FAILED
DC_TAG_ERR_VALUE_COUNT_ERROR
DC_TAG_ERR_VALUE_TYPE_ERROR
DC_TAG_ERR_THREAD_ERROR
DC_TAG_ERR_INBUF_TOO_SMALL
DC_TAG_ERR_DATA_CENTER_BUSY
DC_TAG_ERR_HAS_NOT_INIT
dc_tag_add
dc_tag_add_subscription
dc_tag_close
dc_tag_explain_quality
dc_tag_init
dc_tag_open
dc_tag_read
dc_tag_read_subscription
dc_tag_remove
dc_tag_remove_subscription
dc_tag_uninit
dc_tag_update
dc_tag_write
QualityDefine.h
Globals
All
Functions
Typedefs
Enumerations
Enumerator
Macros
Examples
dc_tag_owner.c
dc_tag_read.c
dc_tag_read_subscription.c
dc_tag_update.c
dc_tag_write.c
Get in touch
Submit feedback about this site to:
[email protected]