30#ifndef CLPROTOCOL_CLSERIALTYPES_H
31#define CLPROTOCOL_CLSERIALTYPES_H
40#define CL_DLL_VERSION_NO_VERSION 1
41#define CL_DLL_VERSION_1_0 2
42#define CL_DLL_VERSION_1_1 3
43#define CL_DLL_VERSION_2_0 4
44#define CL_DLL_VERSION_2_1 5
49#define CL_BAUDRATE_9600 0x00000001
50#define CL_BAUDRATE_19200 0x00000002
51#define CL_BAUDRATE_38400 0x00000004
52#define CL_BAUDRATE_57600 0x00000008
53#define CL_BAUDRATE_115200 0x00000010
54#define CL_BAUDRATE_230400 0x00000020
55#define CL_BAUDRATE_460800 0x00000040
56#define CL_BAUDRATE_921600 0x00000080
57#define CL_BAUDRATE_AUTOMAX 0x40000000
62#define CL_ERR_NO_ERR 0
63#define CL_ERR_BUFFER_TOO_SMALL -10001
64#define CL_ERR_MANU_DOES_NOT_EXIST -10002
65#define CL_ERR_PORT_IN_USE -10003
66#define CL_ERR_TIMEOUT -10004
67#define CL_ERR_INVALID_INDEX -10005
68#define CL_ERR_INVALID_REFERENCE -10006
69#define CL_ERR_ERROR_NOT_FOUND -10007
70#define CL_ERR_BAUD_RATE_NOT_SUPPORTED -10008
71#define CL_ERR_OUT_OF_MEMORY -10009
72#define CL_ERR_REGISTRY_KEY_NOT_FOUND -10010
73#define CL_ERR_INVALID_PTR -10011
74#define CL_ERR_IN_USE -10012
75#define CL_ERR_UNABLE_TO_LOAD_DLL -10098
76#define CL_ERR_FUNCTION_NOT_FOUND -10099
78#define CL_ERR_PENDING_WRITE 20101
79#define CL_ERR_INVALID_DEVICEID -20100
80#define CL_ERR_NO_DEVICE_FOUND -20101
81#define CL_ERR_NO_XMLDESCRIPTION_FOUND -20102
82#define CL_ERR_INVALID_COOKIE -20103
83#define CL_ERR_GET_LAST_ERROR -20104
84#define CL_ERR_PARAM_NOT_SUPPORTED -20105
85#define CL_ERR_PARAM_READ_ONLY -20106
86#define CL_ERR_PARAM_DATA_SIZE -20107
87#define CL_ERR_PARAM_DATA_VALUE -20108
93#ifndef _CL_hSerRef_DEFINED_
94 #define _CL_hSerRef_DEFINED_
95 typedef void* hSerRef;
98#ifndef _CL_INT32_DEFINED_
99 #define _CL_INT32_DEFINED_
103#ifndef _CL_UINT32_DEFINED_
104 #define _CL_UINT32_DEFINED_
105 typedef unsigned int CLUINT32;
108#ifndef _CL_INT64_DEFINED_
110 #include <inttypes.h>
111 #if !defined(INTEL_COMPILER) && !defined(INTEL_LLVM_COMPILER) && !defined(int64)
112 typedef int64_t __int64;
115 #define _CL_INT64_DEFINED_
116 typedef __int64 CLINT64;
119#ifndef _CL_UINT16_DEFINED_
120 #define _CL_UINT16_DEFINED_
121 typedef unsigned short UINT16;
124#ifndef _CL_INT8_DEFINED_
125 #define _CL_INT8_DEFINED_
129#ifndef _CL_BOOL8_DEFINED_
130 #define _CL_BOOL8_DEFINED_