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_P_MAX
CMDC_P_MAX
Definition: sdh_command_codes.h:35
CMDC_POS
CMDC_POS
Definition: sdh_command_codes.h:8
CMDC_DEMO
CMDC_DEMO
Definition: sdh_command_codes.h:53
CMDC_USER_ERRORS
CMDC_USER_ERRORS
Definition: sdh_command_codes.h:54
CMDC_RVEL
CMDC_RVEL
Definition: sdh_command_codes.h:7
CMDC_POWER
CMDC_POWER
Definition: sdh_command_codes.h:50
CMDC_STATE
CMDC_STATE
Definition: sdh_command_codes.h:9
CMDC_KV
CMDC_KV
Definition: sdh_command_codes.h:48
CMDC_NUMAXIS
CMDC_NUMAXIS
Definition: sdh_command_codes.h:33
CMDC_TPAP
CMDC_TPAP
Definition: sdh_command_codes.h:16
CMDC_VEL
CMDC_VEL
Definition: sdh_command_codes.h:5
CMDC_STOP
CMDC_STOP
Definition: sdh_command_codes.h:13
CMDC_CHANGE_RS232
CMDC_CHANGE_RS232
Definition: sdh_command_codes.h:59
CMDC_USE_FIXED_LENGTH
CMDC_USE_FIXED_LENGTH
Definition: sdh_command_codes.h:57
CMDC_TVAV
CMDC_TVAV
Definition: sdh_command_codes.h:18
CMDC_TERMINAL
CMDC_TERMINAL
Definition: sdh_command_codes.h:55
CMDC_DEBUG
CMDC_DEBUG
Definition: sdh_command_codes.h:56
CMDC_SELGRIP
CMDC_SELGRIP
Definition: sdh_command_codes.h:42
CMDC_M
CMDC_M
Definition: sdh_command_codes.h:12
CMDC_REF
CMDC_REF
Definition: sdh_command_codes.h:24
CMDC_VER_DATE
CMDC_VER_DATE
Definition: sdh_command_codes.h:29
CMDC_TEMP
CMDC_TEMP
Definition: sdh_command_codes.h:25
CMDC_P
CMDC_P
Definition: sdh_command_codes.h:10
CMDC_GRIP
CMDC_GRIP
Definition: sdh_command_codes.h:44
eCommandCodeEnum
eCommandCodeEnum
Definition: sdh_command_codes.h:79
CMDC_VLIM
CMDC_VLIM
Definition: sdh_command_codes.h:21
eCommandCode
enum eCommandCodeEnum eCommandCode
typedef for eCommandCodeEnum, see there
Definition: sdh_command_codes.h:148
CMDC_CHANGE_CHANNEL
CMDC_CHANGE_CHANNEL
Definition: sdh_command_codes.h:60
CMDC_IHOLD
CMDC_IHOLD
Definition: sdh_command_codes.h:41
CMDC_A
CMDC_A
Definition: sdh_command_codes.h:11
CMDC_SOC
CMDC_SOC
Definition: sdh_command_codes.h:31
CMDC_ID
CMDC_ID
Definition: sdh_command_codes.h:26
SDH__attribute__
#define SDH__attribute__(...)
Definition: sdh_command_codes.h:57
CMDC_P_OFFSET
CMDC_P_OFFSET
Definition: sdh_command_codes.h:36
CMDC_ALIM
CMDC_ALIM
Definition: sdh_command_codes.h:22
CMDC_SN
CMDC_SN
Definition: sdh_command_codes.h:27
CMDC_SOC_DATE
CMDC_SOC_DATE
Definition: sdh_command_codes.h:32
CMDC_PID
CMDC_PID
Definition: sdh_command_codes.h:47
CMDC_POS_SAVE
CMDC_POS_SAVE
Definition: sdh_command_codes.h:23
CMDC_IGRIP
CMDC_IGRIP
Definition: sdh_command_codes.h:40
CMDC_P_MIN
CMDC_P_MIN
Definition: sdh_command_codes.h:34
CMDC_ILIM
CMDC_ILIM
Definition: sdh_command_codes.h:49
CMDC_CON
CMDC_CON
Definition: sdh_command_codes.h:15
CMDC_VER
CMDC_VER
Definition: sdh_command_codes.h:28
CMDC_V
CMDC_V
Definition: sdh_command_codes.h:3
CMDC_VP
CMDC_VP
Definition: sdh_command_codes.h:14
CMDC_GET_DURATION
CMDC_GET_DURATION
Definition: sdh_command_codes.h:37


sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Wed Mar 2 2022 01:00:58