sdh_codes.cpp
Go to the documentation of this file.
1 //======================================================================
28 //======================================================================
29 
30 
31 //----------------------------------------------------------------------
32 // System Includes - include with <>
33 //----------------------------------------------------------------------
34 
35 
36 //----------------------------------------------------------------------
37 // Project Includes - include with ""
38 //----------------------------------------------------------------------
39 
40 #include "sdh_codes.h"
41 #include "util.h"
42 
43 //----------------------------------------------------------------------
44 // Defines, enums, unions, structs
45 //----------------------------------------------------------------------
46 
47 
48 //----------------------------------------------------------------------
49 // External functions (function declarations)
50 //----------------------------------------------------------------------
51 
52 
53 //----------------------------------------------------------------------
54 // Function prototypes (function declarations)
55 //----------------------------------------------------------------------
56 
57 
58 //----------------------------------------------------------------------
59 // Class declarations
60 //----------------------------------------------------------------------
61 
63 
65 {
66  switch (cc)
67  {
112 
113 #if USE_CMD_TEST
114 
115  DEFINE_TO_CASECOMMAND( CMDC_TEST );
116 #endif
117 
118  // no default here to make compiler warn about unhandled cases
119  }
120  return "Unknown SDH command code!";
121 }
122 //----------------------------------------------------------------------
123 
125 {
126  switch (rc)
127  {
166 
167  // no default here to make compiler warn about unhandled cases
168  }
169  return "Unknown SDH return code!";
170 }
171 //----------------------------------------------------------------------
172 
173 
174 //======================================================================
175 /*
176  Here are some settings for the emacs/xemacs editor (and can be safely ignored):
177  (e.g. to explicitely set C++ mode for *.h header files)
178 
179  Local Variables:
180  mode:C
181  mode:ELSE
182  End:
183  */
184 //======================================================================
CMDC_USER_ERRORS
RC_RANGE_ERROR
RC_NO_COMMAND
Not really an error: reading input did not yield a new command.
CMDC_STATE
CMDC_DEMO
RC_READ_ERROR
Error: could not read.
RC_INSUFFICIENT_RESOURCES
Error: Insufficient ressources.
CMDC_POWER
RC_NOT_ENOUGH_PARAMS
Error: not enough parameters on command line.
RC_FEATURE_NOT_SUPPORTED
enum eReturnCodeEnum eReturnCode
typedef for eCommandCodeEnum, see there
CMDC_GET_DURATION
CMDC_POS
RC_ALREADY_OPEN
CMDC_TPAP
USING_NAMESPACE_SDH char const *NS_SDH SDHCommandCodeToString(eCommandCode cc)
Definition: sdh_codes.cpp:64
CMDC_DEBUG
RC_IO_ERROR
Error: Input/Output error like bus-off detected.
CMDC_RVEL
RC_CMD_FAILED
CMDC_VEL
RC_MAX_COMMANDLINE_EXCEEDED
Error: the command line given is too long.
CMDC_SELGRIP
char const *NS_SDH SDHReturnCodeToString(eReturnCode rc)
Definition: sdh_codes.cpp:124
CMDC_VER_DATE
CMDC_TVAV
CMDC_STOP
RC_MAX_COMMANDS_EXCEEDED
Error: cannot add more than CI_MAX_COMMANDS to interpreter / POSCON_MAX_OSCILLOSCOPE parameters to os...
CMDC_CHANGE_RS232
CMDC_USE_FIXED_LENGTH
This file contains function to convert the binary command codes of the SDH. To use this from a non gc...
RC_INVALID_PARAMETER
Error: invalid parameter on command line.
CMDC_NUMAXIS
CMDC_TERMINAL
RC_CMD_UNKNOWN
Error: unknown command on command line.
CMDC_VLIM
RC_ALREADY_RUNNING
Error: Data acquisition: the acquisition loop is already running.
RC_DIMENSION
< End marker and dimension
RC_WRITE_ERROR
Error: could not write.
RC_OK
Success, no error.
RC_TIMEOUT
Error: timeout occured.
CMDC_GRIP
RC_AXIS_DISABLED
RC_ACCESS_DENIED
CMDC_REF
RC_DEVICE_NOT_OPENED
RC_UNKNOWN_ERROR
Error: unknown error.
RC_INDEX_OUT_OF_BOUNDS
Error: A given index parameter is invalid.
#define NS_SDH
RC_NOT_INITIALIZED
Error: An accessed ressource has not been initialized.
Interface of auxilliary utility functions for SDHLibrary-CPP.
enum eCommandCodeEnum eCommandCode
typedef for eCommandCodeEnum, see there
RC_INVALID_HANDLE
CMDC_TEMP
CMDC_ALIM
CMDC_CHANGE_CHANNEL
#define USING_NAMESPACE_SDH
CMDC_P_OFFSET
RC_CHECKSUM_ERROR
RC_HOMING_ERROR
RC_DEVICE_NOT_FOUND
CMDC_IHOLD
RC_INCONSISTENT_DATA
CMDC_P_MIN
RC_NO_DATAPIPE
CMDC_CON
RC_NO_PARAMS_EXPECTED
CMDC_SOC
CMDC_POS_SAVE
#define DEFINE_TO_CASECOMMAND(_c)
Definition: util.h:103
RC_CMD_FORMAT_ERROR
Error: invalid format of command line parameters.
CMDC_ILIM
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.
CMDC_PID
CMDC_SOC_DATE
CMDC_P_MAX
RC_NOT_AVAILABLE
Error: An accessed ressource is not available.
CMDC_VER
CMDC_IGRIP
RC_CRC_ERROR
Cyclic Redundancy Code error while receiving binary input.


sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Mon Feb 28 2022 23:41:51