tools/Master.cpp
changeset 1073 f3c50aa42b6c
parent 1072 94a5f043dee5
child 1079 ef1266652c4d
--- a/tools/Master.cpp	Mon Jun 30 12:22:46 2008 +0000
+++ b/tools/Master.cpp	Mon Jun 30 12:37:06 2008 +0000
@@ -1577,6 +1577,24 @@
         << hex << setfill('0') << setw(8) << slave.revision_number
         << "\"/>" << endl;
 
+    if (strlen(slave.name)) {
+        cout
+            << "          <Name><![CDATA["
+            << slave.name
+            << "]]></Name>" << endl;
+    }
+
+    for (i = 0; i < slave.sync_count; i++) {
+        getSync(&sync, slavePosition, i);
+
+        cout
+            << "          <Sm Enable=\"" << dec << (unsigned int) sync.enable
+            << "\" StartAddress=\"" << sync.physical_start_address
+            << "\" ControlByte=\"" << (unsigned int) sync.control_register
+            << "\" DefaultSize=\"" << sync.default_size
+            << "\" />" << endl;
+    }
+
     for (i = 0; i < slave.sync_count; i++) {
         getSync(&sync, slavePosition, i);