tool/cmd_sii_read.cpp
changeset 1137 a73c0f54be42
parent 1136 a0982873d655
equal deleted inserted replaced
1136:a0982873d655 1137:a73c0f54be42
    10 
    10 
    11 #include "globals.h"
    11 #include "globals.h"
    12 
    12 
    13 /****************************************************************************/
    13 /****************************************************************************/
    14 
    14 
    15 // FIXME
       
    16 const char *help_sii_read =
    15 const char *help_sii_read =
    17     "[OPTIONS]\n"
    16     "[OPTIONS]\n"
    18     "\n"
    17     "\n"
       
    18     "Outputs the SII (EEPROM) contents of a slave.\n"
    19     "\n"
    19     "\n"
    20     "Command-specific options:\n";
    20     "Without the --verbose option, binary SII contents are output. They can\n"
       
    21     "be piped to a tool like hexdump, for example:\n"
       
    22     "\n"
       
    23     "  ethercat sii_read -s2 | hexdump -C\n"
       
    24     "\n"
       
    25     "With the --verbose option given, a textual representation of the data\n"
       
    26     "is output, that is separated by SII category names.\n"
       
    27     "\n"
       
    28     "Command-specific options:\n"
       
    29     "  --slave   -s <index>  Positive numerical ring position (mandatory).\n"
       
    30     "  --verbose -v          Output textual data with category names.\n"
       
    31     "\n"
       
    32     "Numerical values can be specified either with decimal (no prefix),\n"
       
    33     "octal (prefix '0') or hexadecimal (prefix '0x') base.\n";
    21 
    34 
    22 /****************************************************************************/
    35 /****************************************************************************/
    23 
    36 
    24 struct CategoryName {
    37 struct CategoryName {
    25     uint16_t type;
    38     uint16_t type;