tool/CommandSlaves.cpp
changeset 1157 04d1c950cf9d
parent 1151 1fc1535dec29
child 1160 f02ff486b313
equal deleted inserted replaced
1156:ecaf2a896ea3 1157:04d1c950cf9d
    38         << "|  |    |  |      |     code (both hexadecimal)." << endl
    38         << "|  |    |  |      |     code (both hexadecimal)." << endl
    39         << "|  |    |  |      \\- Error flag. '+' means no error," << endl
    39         << "|  |    |  |      \\- Error flag. '+' means no error," << endl
    40         << "|  |    |  |         'E' means that scan or" << endl
    40         << "|  |    |  |         'E' means that scan or" << endl
    41         << "|  |    |  |         configuration failed." << endl
    41         << "|  |    |  |         configuration failed." << endl
    42         << "|  |    |  \\- Current application-layer state." << endl
    42         << "|  |    |  \\- Current application-layer state." << endl
    43         << "|  |    \\- Relative position (decimal) after the last" << endl
    43         << "|  |    \\- Decimal relative position to the last" << endl
    44         << "|  |       slave with an alias address set." << endl
    44         << "|  |       slave with an alias address set." << endl
    45         << "|  \\- Alias address of the slave (if set), or the alias" << endl
    45         << "|  \\- Decimal alias address of this slave (if set)," << endl
    46         << "|     of the last slave with an alias, or zero if not" << endl
    46         << "|     otherwise of the last slave with an alias set," << endl
    47         << "|     applicable" << endl
    47         << "|     or zero, if no alias was encountered up to this" << endl
    48         << "\\- Absolute ring position in the bus (use this with any" << endl
    48         << "|     position." << endl
    49         << "   --slave option)." << endl
    49         << "\\- Absolute ring position in the bus." << endl
    50         << endl
    50         << endl
    51         << "If the --verbose option is given, a detailed (multi-line)" << endl
    51         << "If the --verbose option is given, a detailed (multi-line)" << endl
    52         << "description is output for each slave." << endl
    52         << "description is output for each slave." << endl
    53         << endl
    53         << endl
       
    54         << "Slave selection:" << endl
       
    55         << "  Slaves for this and other commands can be selected with" << endl
       
    56         << "  the --alias and --position parameters as follows:" << endl
       
    57         << endl
       
    58         << "  1) If neither the --alias nor the --position option" << endl
       
    59         << "     is given, all slaves are selected." << endl
       
    60         << "  2) If only the --position option is given, it is" << endl
       
    61         << "     interpreted as an absolute ring position and" << endl
       
    62         << "     a slave with this position is matched." << endl
       
    63         << "  3) If only the --alias option is given, all slaves" << endl
       
    64         << "     with the given alias address and subsequent" << endl
       
    65         << "     slaves before a slave with a different alias" << endl
       
    66         << "     address match (use -p0 if only the slaves" << endl
       
    67         << "     with the given alias are desired, see 4))." << endl
       
    68         << "  4) If both the --alias and the --position option are" << endl
       
    69         << "     given, the latter is interpreted as relative" << endl
       
    70         << "     position behind any slave with the given alias." << endl
       
    71         << endl
    54         << "Command-specific options:" << endl
    72         << "Command-specific options:" << endl
    55         << "  --slave   -s <index>  Positive numerical ring position," << endl
    73         << "  --alias    -a <alias>  Slave alias (see above)." << endl
    56         << "                        or 'all' for all slaves (default)." << endl
    74         << "  --position -p <pos>    Slave position (see above)." << endl
    57         << "  --verbose -v          Show detailed slave information." << endl
    75         << "  --verbose  -v          Show detailed slave information." << endl
    58         << endl
    76         << endl
    59         << numericInfo();
    77         << numericInfo();
    60 
    78 
    61     return str.str();
    79     return str.str();
    62 }
    80 }