tools/main.cpp
changeset 978 2962baf7e6d1
parent 974 5868944a6456
child 980 c07dd38243ba
equal deleted inserted replaced
977:167ae3e76cc7 978:2962baf7e6d1
    39         << "  master             Show master information." << endl
    39         << "  master             Show master information." << endl
    40         << "  pdos               List Pdo mapping." << endl
    40         << "  pdos               List Pdo mapping." << endl
    41         << "  sdos               List Sdo dictionaries." << endl
    41         << "  sdos               List Sdo dictionaries." << endl
    42         << "  sdo_download (sd)  Write an Sdo entry." << endl
    42         << "  sdo_download (sd)  Write an Sdo entry." << endl
    43         << "  sdo_upload (su)    Read an Sdo entry." << endl
    43         << "  sdo_upload (su)    Read an Sdo entry." << endl
       
    44         << "  sii_read (sr)      Output a slave's SII contents." << endl
    44         << "  state              Request slave states." << endl
    45         << "  state              Request slave states." << endl
    45         << "  xml                Generate slave information xmls." << endl
    46         << "  xml                Generate slave information xmls." << endl
    46 		<< "Global options:" << endl
    47 		<< "Global options:" << endl
    47         << "  --master  -m <master>  Index of the master to use. Default: "
    48         << "  --master  -m <master>  Index of the master to use. Default: "
    48 		<< DEFAULT_MASTER << endl
    49 		<< DEFAULT_MASTER << endl
   181             master.listSdos(slavePosition, quiet);
   182             master.listSdos(slavePosition, quiet);
   182         } else if (command == "sdo_download" || command == "sd") {
   183         } else if (command == "sdo_download" || command == "sd") {
   183             master.sdoDownload(slavePosition, dataTypeStr, commandArgs);
   184             master.sdoDownload(slavePosition, dataTypeStr, commandArgs);
   184         } else if (command == "sdo_upload" || command == "su") {
   185         } else if (command == "sdo_upload" || command == "su") {
   185             master.sdoUpload(slavePosition, dataTypeStr, commandArgs);
   186             master.sdoUpload(slavePosition, dataTypeStr, commandArgs);
       
   187         } else if (command == "sii_read" || command == "sr") {
       
   188             master.siiRead(slavePosition);
   186         } else if (command == "state") {
   189         } else if (command == "state") {
   187             master.requestStates(slavePosition, commandArgs);
   190             master.requestStates(slavePosition, commandArgs);
   188         } else if (command == "xml") {
   191         } else if (command == "xml") {
   189             master.generateXml(slavePosition);
   192             master.generateXml(slavePosition);
   190         } else {
   193         } else {