Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
sdh
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
79
enum
eCommandCodeEnum
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
,
102
CMDC_POS_SAVE
,
103
CMDC_REF
,
104
CMDC_TEMP
,
105
CMDC_ID
,
106
CMDC_SN
,
107
CMDC_VER
,
108
CMDC_VER_DATE
,
109
//150:
110
CMDC_SOC
,
111
CMDC_SOC_DATE
,
112
CMDC_NUMAXIS
,
113
CMDC_P_MIN
,
114
CMDC_P_MAX
,
115
CMDC_P_OFFSET
,
116
CMDC_GET_DURATION
,
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
,
133
CMDC_USER_ERRORS
,
134
CMDC_TERMINAL
,
135
CMDC_DEBUG
,
136
CMDC_USE_FIXED_LENGTH
,
137
//170:
138
CMDC_CHANGE_RS232
,
139
CMDC_CHANGE_CHANNEL
,
140
141
#if USE_CMD_TEST
142
143
CMDC_TEST,
144
#endif
145
}
SDH__attribute__
((packed));
146
148
typedef
enum
eCommandCodeEnum
eCommandCode
;
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_USER_ERRORS
Definition:
sdh_command_codes.h:75
CMDC_STATE
CMDC_STATE
Definition:
sdh_command_codes.h:75
CMDC_DEMO
CMDC_DEMO
Definition:
sdh_command_codes.h:75
CMDC_POWER
CMDC_POWER
Definition:
sdh_command_codes.h:75
CMDC_GET_DURATION
CMDC_GET_DURATION
Definition:
sdh_command_codes.h:75
CMDC_POS
CMDC_POS
Definition:
sdh_command_codes.h:75
CMDC_TPAP
CMDC_TPAP
Definition:
sdh_command_codes.h:75
CMDC_DEBUG
CMDC_DEBUG
Definition:
sdh_command_codes.h:75
CMDC_RVEL
CMDC_RVEL
Definition:
sdh_command_codes.h:75
CMDC_VEL
CMDC_VEL
Definition:
sdh_command_codes.h:75
CMDC_M
CMDC_M
Definition:
sdh_command_codes.h:75
CMDC_SELGRIP
CMDC_SELGRIP
Definition:
sdh_command_codes.h:75
CMDC_VER_DATE
CMDC_VER_DATE
Definition:
sdh_command_codes.h:75
CMDC_TVAV
CMDC_TVAV
Definition:
sdh_command_codes.h:75
CMDC_STOP
CMDC_STOP
Definition:
sdh_command_codes.h:75
CMDC_CHANGE_RS232
CMDC_CHANGE_RS232
Definition:
sdh_command_codes.h:75
CMDC_USE_FIXED_LENGTH
CMDC_USE_FIXED_LENGTH
Definition:
sdh_command_codes.h:75
CMDC_NUMAXIS
CMDC_NUMAXIS
Definition:
sdh_command_codes.h:75
CMDC_TERMINAL
CMDC_TERMINAL
Definition:
sdh_command_codes.h:75
CMDC_KV
CMDC_KV
Definition:
sdh_command_codes.h:75
eCommandCodeEnum
eCommandCodeEnum
Definition:
sdh_command_codes.h:79
CMDC_VLIM
CMDC_VLIM
Definition:
sdh_command_codes.h:75
CMDC_GRIP
CMDC_GRIP
Definition:
sdh_command_codes.h:75
CMDC_REF
CMDC_REF
Definition:
sdh_command_codes.h:75
eCommandCode
enum eCommandCodeEnum eCommandCode
typedef for eCommandCodeEnum, see there
Definition:
sdh_command_codes.h:148
CMDC_TEMP
CMDC_TEMP
Definition:
sdh_command_codes.h:75
CMDC_ALIM
CMDC_ALIM
Definition:
sdh_command_codes.h:75
CMDC_SN
CMDC_SN
Definition:
sdh_command_codes.h:75
CMDC_CHANGE_CHANNEL
CMDC_CHANGE_CHANNEL
Definition:
sdh_command_codes.h:75
CMDC_ID
CMDC_ID
Definition:
sdh_command_codes.h:75
CMDC_P
CMDC_P
Definition:
sdh_command_codes.h:75
CMDC_P_OFFSET
CMDC_P_OFFSET
Definition:
sdh_command_codes.h:75
SDH__attribute__
#define SDH__attribute__(...)
Definition:
sdh_command_codes.h:57
CMDC_IHOLD
CMDC_IHOLD
Definition:
sdh_command_codes.h:75
CMDC_A
CMDC_A
Definition:
sdh_command_codes.h:75
CMDC_P_MIN
CMDC_P_MIN
Definition:
sdh_command_codes.h:75
CMDC_CON
CMDC_CON
Definition:
sdh_command_codes.h:75
CMDC_SOC
CMDC_SOC
Definition:
sdh_command_codes.h:75
CMDC_POS_SAVE
CMDC_POS_SAVE
Definition:
sdh_command_codes.h:75
CMDC_ILIM
CMDC_ILIM
Definition:
sdh_command_codes.h:75
CMDC_VP
CMDC_VP
Definition:
sdh_command_codes.h:75
CMDC_PID
CMDC_PID
Definition:
sdh_command_codes.h:75
CMDC_SOC_DATE
CMDC_SOC_DATE
Definition:
sdh_command_codes.h:75
CMDC_P_MAX
CMDC_P_MAX
Definition:
sdh_command_codes.h:75
CMDC_VER
CMDC_VER
Definition:
sdh_command_codes.h:75
CMDC_IGRIP
CMDC_IGRIP
Definition:
sdh_command_codes.h:75
CMDC_V
CMDC_V
Definition:
sdh_command_codes.h:75
sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Sun Aug 18 2019 03:42:20