29 #ifndef OCEANDIRECTAPICONSTANTS_H
30 #define OCEANDIRECTAPICONSTANTS_H
32 #include "api/DllDecl.h"
35 #define SET_ERROR_CODE(code) do { if(NULL != errorCode) { *errorCode = code; } } while(0)
41 #define UNUSED(x) (void)(x)
48 DLL_DECL
extern const int ERROR_SUCCESS;
52 DLL_DECL
extern const int ERROR_INVALID_ERROR;
56 extern DLL_DECL
const int ERROR_NO_DEVICE;
60 DLL_DECL
extern const int ERROR_FAILED_TO_CLOSE;
64 DLL_DECL
extern const int ERROR_NOT_IMPLEMENTED;
68 DLL_DECL
extern const int ERROR_FEATURE_NOT_FOUND;
72 DLL_DECL
extern const int ERROR_TRANSFER_ERROR;
76 DLL_DECL
extern const int ERROR_BAD_USER_BUFFER;
80 DLL_DECL
extern const int ERROR_INPUT_OUT_OF_BOUNDS;
84 DLL_DECL
extern const int ERROR_SPECTROMETER_SATURATED;
88 DLL_DECL
extern const int ERROR_VALUE_NOT_FOUND;
92 DLL_DECL
extern const int ERROR_CODE_DIVIDE_BY_ZERO;
96 DLL_DECL
extern const int ERROR_CODE_NONINVERTIBLE_MATRIX;
100 DLL_DECL
extern const int ERROR_CODE_ARRAY_LENGTH;
104 DLL_DECL
extern const int ERROR_CODE_ARRAY_INDEX_OUT_OF_BOUNDS;
108 DLL_DECL
extern const int ERROR_CODE_INVALID_ARGUMENT;
112 DLL_DECL
extern const int ERROR_CODE_EMPTY_VECTOR;
116 DLL_DECL
extern const int ERROR_CODE_COLOR_CONVERSION_ERROR;
120 DLL_DECL
extern const int ERROR_CODE_NO_PEAK_FOUND_ERROR;
124 DLL_DECL
extern const int ERROR_CODE_ILLEGAL_STATE_ERROR;
129 DLL_DECL
extern const int ERROR_CODE_MIN_INT_TIME_REACHED;
134 DLL_DECL
extern const int ERROR_CODE_MAX_INT_TIME_REACHED;
139 DLL_DECL
extern const int ERROR_ENSURE_LAMP_IS_ON;
144 DLL_DECL
extern const int ERROR_NOT_ENOUGH_BUFFER_SPACE;
149 DLL_DECL
extern const int ERROR_COMMAND_NOT_SUPPORTED;
158 DLL_DECL
extern const int ERROR_INTEGRATION_TIME_BELOW_AVERAGING_MIN;
166 DLL_DECL
extern const int ERROR_DARK_NONLINEARITY_CORRECTION_CONFLICT;