Qudi
errorcodes.h
1 /*
2 
3 This file contains the header file for the error code of the Picoharp300 device.
4 
5 Qudi is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 
10 Qudi is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with Qudi. If not, see <http://www.gnu.org/licenses/>.
17 
18 Copyright (c) the Qudi Developers. See the COPYRIGHT.txt file at the
19 top-level directory of this distribution and at <https://github.com/Ulm-IQO/qudi/>
20 
21 */
22 
23 
24 /*
25 Taken from:
26 http://www.picoquant.com/products/category/tcspc-and-time-tagging-modules/picoharp-300-stand-alone-tcspc-module-with-usb-interface
27 
28 Error codes taken from PHLib Ver. 3.0 December 2013
29 */
30 
31 
32 #define ERROR_NONE 0
33 
34 #define ERROR_DEVICE_OPEN_FAIL -1
35 #define ERROR_DEVICE_BUSY -2
36 #define ERROR_DEVICE_HEVENT_FAIL -3
37 #define ERROR_DEVICE_CALLBSET_FAIL -4
38 #define ERROR_DEVICE_BARMAP_FAIL -5
39 #define ERROR_DEVICE_CLOSE_FAIL -6
40 #define ERROR_DEVICE_RESET_FAIL -7
41 #define ERROR_DEVICE_GETVERSION_FAIL -8
42 #define ERROR_DEVICE_VERSION_MISMATCH -9
43 #define ERROR_DEVICE_NOT_OPEN -10
44 #define ERROR_DEVICE_LOCKED -11
45 
46 
47 #define ERROR_INSTANCE_RUNNING -16
48 #define ERROR_INVALID_ARGUMENT -17
49 #define ERROR_INVALID_MODE -18
50 #define ERROR_INVALID_OPTION -19
51 #define ERROR_INVALID_MEMORY -20
52 #define ERROR_INVALID_RDATA -21
53 #define ERROR_NOT_INITIALIZED -22
54 #define ERROR_NOT_CALIBRATED -23
55 #define ERROR_DMA_FAIL -24
56 #define ERROR_XTDEVICE_FAIL -25
57 #define ERROR_FPGACONF_FAIL -26
58 #define ERROR_IFCONF_FAIL -27
59 #define ERROR_FIFORESET_FAIL -28
60 #define ERROR_STATUS_FAIL -29
61 
62 #define ERROR_USB_GETDRIVERVER_FAIL -32
63 #define ERROR_USB_DRIVERVER_MISMATCH -33
64 #define ERROR_USB_GETIFINFO_FAIL -34
65 #define ERROR_USB_HISPEED_FAIL -35
66 #define ERROR_USB_VCMD_FAIL -36
67 #define ERROR_USB_BULKRD_FAIL -37
68 
69 #define ERROR_HARDWARE_F01 -64
70 #define ERROR_HARDWARE_F02 -65
71 #define ERROR_HARDWARE_F03 -66
72 #define ERROR_HARDWARE_F04 -67
73 #define ERROR_HARDWARE_F05 -68
74 #define ERROR_HARDWARE_F06 -69
75 #define ERROR_HARDWARE_F07 -70
76 #define ERROR_HARDWARE_F08 -71
77 #define ERROR_HARDWARE_F09 -72
78 #define ERROR_HARDWARE_F10 -73
79 #define ERROR_HARDWARE_F11 -74
80 #define ERROR_HARDWARE_F12 -75
81 #define ERROR_HARDWARE_F13 -76
82 #define ERROR_HARDWARE_F14 -77
83 #define ERROR_HARDWARE_F15 -78
84