tool/cmd_upload.cpp
changeset 1137 a73c0f54be42
parent 1136 a0982873d655
equal deleted inserted replaced
1136:a0982873d655 1137:a73c0f54be42
    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_upload =
    16 const char *help_upload =
    18     "[OPTIONS]\n"
    17     "[OPTIONS] <INDEX> <SUBINDEX>\n"
    19     "\n"
    18     "\n"
       
    19     "Upload an Sdo entry from a slave.\n"
    20     "\n"
    20     "\n"
    21     "Command-specific options:\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     "\n"
       
    34     "Command-specific options:\n"
       
    35     "  --slave -s <index>  Positive numerical ring position (mandatory).\n"
       
    36     "  --type  -t <type>   Forced Sdo entry data type (see above).\n"
       
    37     "\n"
       
    38     "Numerical values can be specified either with decimal (no prefix),\n"
       
    39     "octal (prefix '0') or hexadecimal (prefix '0x') base.\n";
    22 
    40 
    23 /****************************************************************************/
    41 /****************************************************************************/
    24 
    42 
    25 void command_upload(void)
    43 void command_upload(void)
    26 {
    44 {