sdh_command_codes.h
Go to the documentation of this file.
1 //======================================================================
32 //======================================================================
33 
34 
35 #ifndef _SDH_COMMAND_CODES
36 #define _SDH_COMMAND_CODES
37 
38 //----------------------------------------------------------------------
39 // System Includes - include with <>
40 //----------------------------------------------------------------------
41 
42 
43 //----------------------------------------------------------------------
44 // Project Includes - include with ""
45 //----------------------------------------------------------------------
46 
47 //----------------------------------------------------------------------
48 // Defines, enums, unions, structs
49 //----------------------------------------------------------------------
50 
51 #define USE_CMD_TEST 0
52 
53 
54 // since this file is included by other compilers which dont understand
55 // attributes we can only use it if SDH__attribute__ is not yet defined
56 #ifndef SDH__attribute__
57 # define SDH__attribute__( ... ) __attribute__(__VA_ARGS__)
58 #endif
59 
60 #ifndef SDH_USE_VCC
61 # define SDH_USE_VCC 0
62 #endif
63 
64 
65 #if SDH_USE_VCC
66 #pragma pack(push,1) // for VCC (MS Visual Studio) we have to set the necessary 1 byte packing with this pragma
67 #endif
68 
80 {
81  // Movement commands:
82  CMDC_V = 128, // assign a value so that non ASCII codes are used
83 
84  CMDC_VEL,
85  //130:
86  CMDC_RVEL,
87  CMDC_POS,
88  CMDC_STATE,
89  CMDC_P,
90  CMDC_A,
91  CMDC_M,
92  CMDC_STOP,
93  CMDC_VP,
94  CMDC_CON,
95  CMDC_TPAP,
96  //140:
97  CMDC_TVAV,
98 
99  // Diagnostic and identification commands:
100  CMDC_VLIM,
101  CMDC_ALIM,
103  CMDC_REF,
104  CMDC_TEMP,
105  CMDC_ID,
106  CMDC_SN,
107  CMDC_VER,
109  //150:
110  CMDC_SOC,
112  CMDC_NUMAXIS,
113  CMDC_P_MIN,
114  CMDC_P_MAX,
117 
118  // Grip commands:
119  CMDC_IGRIP,
120  CMDC_IHOLD,
121  CMDC_SELGRIP,
122  //160:
123  CMDC_GRIP,
124 
125  // Setup and configuration commands:
126  CMDC_PID,
127  CMDC_KV,
128  CMDC_ILIM,
129  CMDC_POWER,
130 
131  // Misc. commands:
132  CMDC_DEMO,
135  CMDC_DEBUG,
137  //170:
140 
141 #if USE_CMD_TEST
142 
143  CMDC_TEST,
144 #endif
145 } SDH__attribute__((packed));
146 
149 
150 #if SDH_USE_VCC
151 #pragma pack(pop) // for VCC (MS Visual Studio) restore normal packing
152 #endif
153 
154 //----------------------------------------------------------------------
155 // Global variables (declarations)
156 //----------------------------------------------------------------------
157 
158 //----------------------------------------------------------------------
159 // External functions (function declarations)
160 //----------------------------------------------------------------------
161 
162 //----------------------------------------------------------------------
163 // Function prototypes (function declarations)
164 //----------------------------------------------------------------------
165 
166 
167 #endif
168 
169 
170 //======================================================================
171 /*
172  Here are some settings for the emacs/xemacs editor (and can be safely ignored):
173  (e.g. to explicitely set C++ mode for *.h header files)
174 
175  Local Variables:
176  mode:C
177  mode:ELSE
178  End:
179 */
180 //======================================================================
CMDC_USER_ERRORS
CMDC_STATE
CMDC_DEMO
CMDC_POWER
CMDC_GET_DURATION
CMDC_POS
CMDC_TPAP
CMDC_DEBUG
CMDC_RVEL
CMDC_VEL
CMDC_SELGRIP
CMDC_VER_DATE
CMDC_TVAV
CMDC_STOP
CMDC_CHANGE_RS232
CMDC_USE_FIXED_LENGTH
CMDC_NUMAXIS
CMDC_TERMINAL
eCommandCodeEnum
CMDC_VLIM
CMDC_GRIP
CMDC_REF
enum eCommandCodeEnum eCommandCode
typedef for eCommandCodeEnum, see there
CMDC_TEMP
CMDC_ALIM
CMDC_CHANGE_CHANNEL
CMDC_P_OFFSET
#define SDH__attribute__(...)
CMDC_IHOLD
CMDC_P_MIN
CMDC_CON
CMDC_SOC
CMDC_POS_SAVE
CMDC_ILIM
CMDC_PID
CMDC_SOC_DATE
CMDC_P_MAX
CMDC_VER
CMDC_IGRIP


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