mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 11:51:45 +08:00
Output DC config in 'ethercat config'.
This commit is contained in:
@@ -218,6 +218,22 @@ void CommandConfig::showDetailedConfigs(
|
||||
cout << " None." << endl;
|
||||
}
|
||||
|
||||
if (configIter->dc_assign_activate) {
|
||||
int i;
|
||||
|
||||
cout << "DC configuration:" << endl
|
||||
<< " AssignActivate: 0x" << hex << setfill('0')
|
||||
<< setw(4) << configIter->dc_assign_activate << endl;
|
||||
|
||||
cout << " Cycle time [ns] Shift time [ns]" << endl;
|
||||
for (i = 0; i < EC_SYNC_SIGNAL_COUNT; i++) {
|
||||
cout << " SYNC" << dec << i << setfill(' ') << right
|
||||
<< setw(11) << configIter->dc_sync[i].cycle_time
|
||||
<< " "
|
||||
<< setw(11) << configIter->dc_sync[i].shift_time
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user