sdh_return_codes.h
Go to the documentation of this file.
1 //======================================================================
29 //======================================================================
30 
31 #ifndef SDH_COMPONENTS_SDH_RETURN_CODES_h_
32 #define SDH_COMPONENTS_SDH_RETURN_CODES_h_
33 
34 //----------------------------------------------------------------------
35 // System Includes - include with <>
36 //----------------------------------------------------------------------
37 
38 
39 //----------------------------------------------------------------------
40 // Project Includes - include with ""
41 //----------------------------------------------------------------------
42 
43 
44 //----------------------------------------------------------------------
45 // Defines, enums, unions, structs
46 //----------------------------------------------------------------------
47 
48 // since this file is included by other compilers which dont understand
49 // attributes we can only use it if SDH__attribute__ is not yet defined
50 #ifndef SDH__attribute__
51 # define SDH__attribute__( ... ) __attribute__(__VA_ARGS__)
52 #endif
53 
54 #ifndef SDH_USE_VCC
55 # define SDH_USE_VCC 0
56 #endif
57 
58 
59 #if SDH_USE_VCC
60 #pragma pack(push,1) // for VCC (MS Visual Studio) we have to set the necessary 1 byte packing with this pragma
61 #endif
62 
73 {
74  RC_OK = 0,
80  RC_TIMEOUT,
96  RC_IO_ERROR,
107  RC_CRC_ERROR,
108  RC_NO_COMMAND,
109 
110  RC_INTERNAL,
112 
113  // Dont forget to add new enums to ReturnCodeToString() too.
114  RC_DIMENSION
115 } SDH__attribute__((__packed__));
116 
119 
120 #if SDH_USE_VCC
121 #pragma pack(pop) // for VCC (MS Visual Studio) restore normal packing
122 #endif
123 
124 //----------------------------------------------------------------------
125 // Global variables (declarations)
126 //----------------------------------------------------------------------
127 
128 //----------------------------------------------------------------------
129 // External functions (function declarations)
130 //----------------------------------------------------------------------
131 
132 //----------------------------------------------------------------------
133 // Function prototypes (function declarations)
134 //----------------------------------------------------------------------
135 
136 
137 #endif
138 
139 
140 //======================================================================
141 /*
142  Here are some settings for the emacs/xemacs editor (and can be safely ignored):
143  (e.g. to explicitely set C++ mode for *.h header files)
144 
145  Local Variables:
146  mode:C
147  mode:ELSE
148  End:
149 */
150 //======================================================================
RC_RANGE_ERROR
RC_NO_COMMAND
Not really an error: reading input did not yield a new command.
RC_READ_ERROR
Error: could not read.
RC_INSUFFICIENT_RESOURCES
Error: Insufficient ressources.
RC_NOT_ENOUGH_PARAMS
Error: not enough parameters on command line.
RC_FEATURE_NOT_SUPPORTED
enum eReturnCodeEnum eReturnCode
typedef for eCommandCodeEnum, see there
RC_ALREADY_OPEN
RC_IO_ERROR
Error: Input/Output error like bus-off detected.
RC_CMD_FAILED
RC_MAX_COMMANDLINE_EXCEEDED
Error: the command line given is too long.
RC_MAX_COMMANDS_EXCEEDED
Error: cannot add more than CI_MAX_COMMANDS to interpreter / POSCON_MAX_OSCILLOSCOPE parameters to os...
RC_INVALID_PARAMETER
Error: invalid parameter on command line.
RC_CMD_UNKNOWN
Error: unknown command on command line.
RC_ALREADY_RUNNING
Error: Data acquisition: the acquisition loop is already running.
RC_DIMENSION
< End marker and dimension
#define SDH__attribute__(...)
RC_WRITE_ERROR
Error: could not write.
RC_OK
Success, no error.
eReturnCodeEnum
RC_TIMEOUT
Error: timeout occured.
RC_AXIS_DISABLED
RC_ACCESS_DENIED
RC_DEVICE_NOT_OPENED
RC_UNKNOWN_ERROR
Error: unknown error.
RC_INDEX_OUT_OF_BOUNDS
Error: A given index parameter is invalid.
RC_NOT_INITIALIZED
Error: An accessed ressource has not been initialized.
RC_INVALID_HANDLE
RC_CHECKSUM_ERROR
RC_HOMING_ERROR
RC_DEVICE_NOT_FOUND
RC_INCONSISTENT_DATA
RC_NO_DATAPIPE
RC_NO_PARAMS_EXPECTED
RC_CMD_FORMAT_ERROR
Error: invalid format of command line parameters.
RC_OVER_TEMPERATURE
RC_CMD_ABORTED
RC_INVALID_PASSWORD
Error: invalid password given for change user command.
RC_INTERNAL
Error: callback function reports internal error.
RC_NOT_AVAILABLE
Error: An accessed ressource is not available.
RC_CRC_ERROR
Cyclic Redundancy Code error while receiving binary input.


sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Sun Aug 18 2019 03:42:20