quDIS-protocol
qudis_protocol.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Project: quDIS Interface
4  *
5  * Filename: qudis_protocol.h
6  *
7  * Purpose: Control Protocol Constants for quDIS
8  *
9  * Author: NHands GmbH & Co KG
10  */
11 /*****************************************************************************/
27 /*****************************************************************************/
28 /* $Id: qudis_protocol.h,v 1.7 2021/05/26 17:37:31 trurl Exp $ */
29 
30 #ifndef __QUDIS_PROTOCOL_H
31 #define __QUDIS_PROTOCOL_H
32 
33 
44 #define QDS_NUM_AXES 3
45 
50 #define QDS_NUM_CHANNELS 16
51 
56 #define QDS_TCP_PORT 2101
57 
62 #define QDS_HWTYPE_0_1 0x8300
63 #define QDS_HWTYPE_1_0 0x8500
76 #define ID_QDS_NUM_AXES_AV 0x0753
77 
81 #define ID_QDS_CAP_ABSOLUTE_AV 0x0751
82 
86 #define ID_QDS_CAP_PILOT_AV 0x0757
87 
104 #define ID_GET_HW_TYPE 0x0167
105 
110 #define ID_GET_HW_ID 0x0168
111 
116 #define ID_SET_HW_ID 0x016A
117 
123 #define ID_PROGRAM_ID 0x016F
124 
139 #define ID_QDS_TCTL_STATE 0x0776
140 
141 /* Wavelength control states */
142 #define QDS_TCTL_OK 0
143 #define QDS_TCTL_FAIL 1
144 #define QDS_TCTL_INI 2
157 #define ID_QDS_PILOT_ON 0x07EA
158 
175 #define ID_ASYNC_EN 0x0145
176 
183 #define ID_DATA_EN 0x0146
184 
203 #define ID_CHAN_TRIGGER 0x0030
204 #define ID_CHAN_SOURCE 0x0031
205 #define ID_QDS_DSIZE_EVEN 0x0696
212 #define ID_CHAN_BASE 0x0F00
213 
214 /* Data Triggers (for ID_CHAN_CONNECT) */
215 #define QDS_TRG_DISABLED 0
216 #define QDS_TRG_POS 2
217 #define QDS_TRG_SWEEP 5
220 /* Data Sources (for ID_CHAN_SOURCE) */
221 #define QDS_SRC_INTERFRG_1 2
222 #define QDS_SRC_INTERFRG_2 3
223 #define QDS_SRC_INTERFRG_3 4
224 #define QDS_SRC_REL_1 54
225 #define QDS_SRC_REL_2 56
226 #define QDS_SRC_REL_3 58
227 #define QDS_SRC_ABS_1 55
228 #define QDS_SRC_ABS_2 57
229 #define QDS_SRC_ABS_3 59
246 #define ID_QDS_POS_AVG 0x0771
248 
256 #define ID_QDS_RESET 0x060D
258 
264 #define ID_QDS_INDEX_RESET 0x0770
282 #define ID_QDS_TRG_ENABLE 0x07EB
289 #define ID_QDS_TRG_RESET 0x07EC
297 #define ID_QDS_TRG_AUTORESET 0x07ED
301 #endif