SeaBreeze
SeaBreezeAPIConstants.h
Go to the documentation of this file.
1 /***************************************************/
32 #ifndef SEABREEZEAPICONSTANTS_H
33 #define SEABREEZEAPICONSTANTS_H
34 
35 /* Macros and constants */
36 #define SET_ERROR_CODE(code) do { if(NULL != errorCode) { *errorCode = code; } } while(0)
37 
38 #ifdef ERROR_SUCCESS
39 #undef ERROR_SUCCESS
40 #endif
41 
42 /* Constants */
43 #define ERROR_SUCCESS 0
44 #define ERROR_INVALID_ERROR 1
45 #define ERROR_NO_DEVICE 2
46 #define ERROR_FAILED_TO_CLOSE 3
47 #define ERROR_NOT_IMPLEMENTED 4
48 #define ERROR_FEATURE_NOT_FOUND 5
49 #define ERROR_TRANSFER_ERROR 6
50 #define ERROR_BAD_USER_BUFFER 7
51 #define ERROR_INPUT_OUT_OF_BOUNDS 8
52 #define ERROR_SPECTROMETER_SATURATED 9
53 #define ERROR_VALUE_NOT_FOUND 10
54 
55 #endif /* SEABREEZEAPICONSTANTS_H */