$search
00001 //====================================================================== 00029 //====================================================================== 00030 00031 #ifndef SDH_COMPONENTS_SDH_RETURN_CODES_h_ 00032 #define SDH_COMPONENTS_SDH_RETURN_CODES_h_ 00033 00034 //---------------------------------------------------------------------- 00035 // System Includes - include with <> 00036 //---------------------------------------------------------------------- 00037 00038 00039 //---------------------------------------------------------------------- 00040 // Project Includes - include with "" 00041 //---------------------------------------------------------------------- 00042 00043 00044 //---------------------------------------------------------------------- 00045 // Defines, enums, unions, structs 00046 //---------------------------------------------------------------------- 00047 00048 // since this file is included by other compilers which dont understand 00049 // attributes we can only use it if SDH__attribute__ is not yet defined 00050 #ifndef SDH__attribute__ 00051 # define SDH__attribute__( ... ) __attribute__(__VA_ARGS__) 00052 #endif 00053 00054 #ifndef SDH_USE_VCC 00055 # define SDH_USE_VCC 0 00056 #endif 00057 00058 00059 #if SDH_USE_VCC 00060 #pragma pack(push,1) // for VCC (MS Visual Studio) we have to set the necessary 1 byte packing with this pragma 00061 #endif 00062 00072 enum eReturnCodeEnum 00073 { 00074 RC_OK = 0, 00075 RC_NOT_AVAILABLE, 00076 RC_NOT_INITIALIZED, 00077 RC_ALREADY_RUNNING, 00078 RC_FEATURE_NOT_SUPPORTED, 00079 RC_INCONSISTENT_DATA, 00080 RC_TIMEOUT, 00081 RC_READ_ERROR, 00082 RC_WRITE_ERROR, 00083 RC_INSUFFICIENT_RESOURCES, 00084 RC_CHECKSUM_ERROR, 00085 RC_NOT_ENOUGH_PARAMS, 00086 RC_NO_PARAMS_EXPECTED, 00087 RC_CMD_UNKNOWN, 00088 RC_CMD_FORMAT_ERROR, 00089 RC_ACCESS_DENIED, 00090 RC_ALREADY_OPEN, 00091 RC_CMD_FAILED, 00092 RC_CMD_ABORTED, 00093 RC_INVALID_HANDLE, 00094 RC_DEVICE_NOT_FOUND, 00095 RC_DEVICE_NOT_OPENED, 00096 RC_IO_ERROR, 00097 RC_INVALID_PARAMETER, 00098 RC_RANGE_ERROR, 00099 RC_NO_DATAPIPE, 00100 RC_INDEX_OUT_OF_BOUNDS, 00101 RC_HOMING_ERROR, 00102 RC_AXIS_DISABLED, 00103 RC_OVER_TEMPERATURE, 00104 RC_MAX_COMMANDS_EXCEEDED, 00105 RC_INVALID_PASSWORD, 00106 RC_MAX_COMMANDLINE_EXCEEDED, 00107 RC_CRC_ERROR, 00108 RC_NO_COMMAND, 00109 00110 RC_INTERNAL, 00111 RC_UNKNOWN_ERROR, 00112 00113 // Dont forget to add new enums to ReturnCodeToString() too. 00114 RC_DIMENSION 00115 } SDH__attribute__((__packed__)); 00116 00118 typedef enum eReturnCodeEnum eReturnCode; 00119 00120 #if SDH_USE_VCC 00121 #pragma pack(pop) // for VCC (MS Visual Studio) restore normal packing 00122 #endif 00123 00124 //---------------------------------------------------------------------- 00125 // Global variables (declarations) 00126 //---------------------------------------------------------------------- 00127 00128 //---------------------------------------------------------------------- 00129 // External functions (function declarations) 00130 //---------------------------------------------------------------------- 00131 00132 //---------------------------------------------------------------------- 00133 // Function prototypes (function declarations) 00134 //---------------------------------------------------------------------- 00135 00136 00137 #endif 00138 00139 00140 //====================================================================== 00141 /* 00142 Here are some settings for the emacs/xemacs editor (and can be safely ignored): 00143 (e.g. to explicitely set C++ mode for *.h header files) 00144 00145 Local Variables: 00146 mode:C 00147 mode:ELSE 00148 End: 00149 */ 00150 //======================================================================