tool/cmd_alias.cpp
changeset 1137 a73c0f54be42
parent 1136 a0982873d655
equal deleted inserted replaced
1136:a0982873d655 1137:a73c0f54be42
    19     "\n"
    19     "\n"
    20     "Write the secondary slave address (alias) for either\n"
    20     "Write the secondary slave address (alias) for either\n"
    21     "one or for multiple slaves.\n"
    21     "one or for multiple slaves.\n"
    22     "\n"
    22     "\n"
    23     "Arguments:\n"
    23     "Arguments:\n"
    24     "  ALIAS must be a 16 bit unsigned integer, specified\n"
    24     "  ALIAS must be an unsigned 16 bit number. Zero means no alias.\n"
    25     "        either in decimal (no prefix), octal (prefix '0')\n"
       
    26     "        or hexadecimal (prefix '0x').\n"
       
    27     "\n"
    25     "\n"
    28     "Command-specific options:\n"
    26     "Command-specific options:\n"
    29     "  -s <SLAVE>  Write the alias of the slave with the given\n"
    27     "  --slave -s <index>  Positive numerical ring position, or 'all' for\n"
    30     "              ring position. If this option is not\n"
    28     "                      all slaves (default). The --force option is\n"
    31     "              specified, the alias of all slaves is set.\n"
    29     "                      required in this case.\n"
    32     "              The --force option is required in this\n"
    30     "  --force             Acknowledge writing aliases of all slaves.\n"
    33     "              case.\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";
    34 
    34 
    35 /*****************************************************************************/
    35 /*****************************************************************************/
    36 
    36 
    37 void writeSlaveAlias(uint16_t, uint16_t);
    37 void writeSlaveAlias(uint16_t, uint16_t);
    38 
    38