Sync manager and name information in xml.
authorFlorian Pose <fp@igh-essen.com>
Mon, 30 Jun 2008 12:37:06 +0000
changeset 1073 f3c50aa42b6c
parent 1072 94a5f043dee5
child 1074 a82793a6d1a0
Sync manager and name information in xml.
tools/Master.cpp
--- 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);