11 #include "globals.h" |
11 #include "globals.h" |
12 #include "coe_datatypes.h" |
12 #include "coe_datatypes.h" |
13 |
13 |
14 /****************************************************************************/ |
14 /****************************************************************************/ |
15 |
15 |
16 // FIXME |
|
17 const char *help_download = |
16 const char *help_download = |
18 "[OPTIONS]\n" |
17 "[OPTIONS] <INDEX> <SUBINDEX> <VALUE>\n" |
19 "\n" |
18 "\n" |
20 "\n" |
19 "Download an Sdo entry to a slave.\n" |
21 "Command-specific options:\n"; |
20 "\n" |
|
21 "The data type of the Sdo entry is taken from the Sdo dictionary by\n" |
|
22 "default. It can be overridden with the --type option. If the slave\n" |
|
23 "does not support the Sdo information service or the Sdo is not in the\n" |
|
24 "dictionary, the --type option is mandatory.\n" |
|
25 "\n" |
|
26 "These are the valid Sdo entry data types:\n" |
|
27 " int8, int16, int32, uint8, uint16, uint32, string.\n" |
|
28 "\n" |
|
29 "Arguments:\n" |
|
30 " INDEX is the Sdo index and must be an unsigned 16 bit number.\n" |
|
31 " SUBINDEX is the Sdo entry subindex and must be an unsigned 8 bit\n" |
|
32 " number.\n" |
|
33 " VALUE is the value to download and must correspond to the Sdo\n" |
|
34 " entry datatype (see above).\n" |
|
35 "\n" |
|
36 "Command-specific options:\n" |
|
37 " --slave -s <index> Positive numerical ring position (mandatory).\n" |
|
38 " --type -t <type> Forced Sdo entry data type (see above).\n" |
|
39 "\n" |
|
40 "Numerical values can be specified either with decimal (no prefix),\n" |
|
41 "octal (prefix '0') or hexadecimal (prefix '0x') base.\n"; |
|
42 |
22 |
43 |
23 /****************************************************************************/ |
44 /****************************************************************************/ |
24 |
45 |
25 void command_download(void) |
46 void command_download(void) |
26 { |
47 { |