equal
deleted
inserted
replaced
1433 list<string> protoList; |
1433 list<string> protoList; |
1434 list<string>::const_iterator protoIter; |
1434 list<string>::const_iterator protoIter; |
1435 |
1435 |
1436 getSlave(&slave, slavePosition); |
1436 getSlave(&slave, slavePosition); |
1437 |
1437 |
1438 cout << "Slave " << dec << slavePosition << endl |
1438 cout << "=== Slave " << dec << slavePosition << " ===" << endl; |
1439 << "Alias: " << slave.alias << endl |
1439 |
|
1440 if (slave.alias) |
|
1441 cout << "Alias: " << slave.alias << endl; |
|
1442 |
|
1443 cout |
1440 << "State: " << slaveState(slave.state) << endl |
1444 << "State: " << slaveState(slave.state) << endl |
1441 << "Flag: " << (slave.error_flag ? 'E' : '+') << endl |
1445 << "Flag: " << (slave.error_flag ? 'E' : '+') << endl |
1442 << "Identity:" << endl |
1446 << "Identity:" << endl |
1443 << " Vendor Id: 0x" |
1447 << " Vendor Id: 0x" |
1444 << hex << setfill('0') << setw(8) << slave.vendor_id << endl |
1448 << hex << setfill('0') << setw(8) << slave.vendor_id << endl |
1517 << " Enable notLRW: " |
1521 << " Enable notLRW: " |
1518 << (slave.general_flags.enable_not_lrw ? "yes" : "no") << endl |
1522 << (slave.general_flags.enable_not_lrw ? "yes" : "no") << endl |
1519 << " Current consumption: " |
1523 << " Current consumption: " |
1520 << dec << slave.current_on_ebus << " mA" << endl; |
1524 << dec << slave.current_on_ebus << " mA" << endl; |
1521 } |
1525 } |
1522 cout << endl; |
|
1523 } |
1526 } |
1524 |
1527 |
1525 /****************************************************************************/ |
1528 /****************************************************************************/ |
1526 |
1529 |
1527 void Master::generateSlaveXml(uint16_t slavePosition) |
1530 void Master::generateSlaveXml(uint16_t slavePosition) |