equal
deleted
inserted
replaced
26 |
26 |
27 str << getName() << " [OPTIONS]" << endl |
27 str << getName() << " [OPTIONS]" << endl |
28 << endl |
28 << endl |
29 << getBriefDescription() << endl |
29 << getBriefDescription() << endl |
30 << endl |
30 << endl |
31 << "Note that the Pdo information can either originate" << endl |
31 << "Note that the PDO information can either originate" << endl |
32 << "from the SII or from the CoE communication area. For" << endl |
32 << "from the SII or from the CoE communication area. For" << endl |
33 << "slaves, that support configuring Pdo assignment and" << endl |
33 << "slaves, that support configuring PDO assignment and" << endl |
34 << "mapping, the output depends on the last configuration." << endl |
34 << "mapping, the output depends on the last configuration." << endl |
35 << endl |
35 << endl |
36 << "Command-specific options:" << endl |
36 << "Command-specific options:" << endl |
37 << " --alias -a <alias>" << endl |
37 << " --alias -a <alias>" << endl |
38 << " --position -p <pos> Slave selection. See the help of" << endl |
38 << " --position -p <pos> Slave selection. See the help of" << endl |
109 m.getSync(&sync, slave.position, i); |
109 m.getSync(&sync, slave.position, i); |
110 |
110 |
111 for (j = 0; j < sync.pdo_count; j++) { |
111 for (j = 0; j < sync.pdo_count; j++) { |
112 m.getPdo(&pdo, slave.position, i, j); |
112 m.getPdo(&pdo, slave.position, i, j); |
113 pdoType = (sync.control_register & 0x04 ? "R" : "T"); |
113 pdoType = (sync.control_register & 0x04 ? "R" : "T"); |
114 pdoType += "xPdo"; |
114 pdoType += "xPdo"; // last 2 letters lowercase in XML! |
115 |
115 |
116 cout |
116 cout |
117 << " <" << pdoType |
117 << " <" << pdoType |
118 << " Sm=\"" << i << "\" Fixed=\"1\" Mandatory=\"1\">" << endl |
118 << " Sm=\"" << i << "\" Fixed=\"1\" Mandatory=\"1\">" << endl |
119 << " <Index>#x" |
119 << " <Index>#x" |