tool/CommandGraph.cpp
changeset 2675 5944c9a2649d
parent 2589 2b9c78543663
child 2673 459758a800b3
equal deleted inserted replaced
2670:09c55ee9a69d 2675:5944c9a2649d
   118 
   118 
   119         cout << endl;
   119         cout << endl;
   120     }
   120     }
   121     cout << endl;
   121     cout << endl;
   122 
   122 
       
   123     uint16_t alias = 0x0000;
       
   124     uint16_t pos = 0;
       
   125 
   123     for (si = slaves.begin(); si != slaves.end(); si++) {
   126     for (si = slaves.begin(); si != slaves.end(); si++) {
       
   127         if (si->alias) {
       
   128             alias = si->alias;
       
   129             pos = 0;
       
   130         }
       
   131 
   124         cout << "    slave" << si->position << " [shape=\"box\""
   132         cout << "    slave" << si->position << " [shape=\"box\""
   125             << ",label=\"" << si->position;
   133             << ",label=\"" << si->position
       
   134             << " / " << alias << ":" << pos;
   126         if (string(si->order).size())
   135         if (string(si->order).size())
   127             cout << "\\n" << si->order;
   136             cout << "\\n" << si->order;
   128         if (si->dc_supported) {
   137         if (si->dc_supported) {
   129             cout << "\\nDC: ";
   138             cout << "\\nDC: ";
   130             if (si->has_dc_system_time) {
   139             if (si->has_dc_system_time) {
   186 
   195 
   187             cout << "]" << endl;
   196             cout << "]" << endl;
   188         }
   197         }
   189 
   198 
   190         cout << endl;
   199         cout << endl;
       
   200         pos++;
   191     }
   201     }
   192 
   202 
   193     cout << "}" << endl;
   203     cout << "}" << endl;
   194 }
   204 }
   195 
   205