equal
deleted
inserted
replaced
1 /***************************************************************************** |
1 /***************************************************************************** |
2 * |
2 * |
3 * $Id$ |
3 * $Id$ |
4 * |
4 * |
5 * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH |
5 * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH |
6 * |
6 * |
7 * This file is part of the IgH EtherCAT Master. |
7 * This file is part of the IgH EtherCAT Master. |
8 * |
8 * |
9 * The IgH EtherCAT Master is free software; you can redistribute it and/or |
9 * The IgH EtherCAT Master is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU General Public License version 2, as |
10 * modify it under the terms of the GNU General Public License version 2, as |
116 in += " "; |
116 in += " "; |
117 } |
117 } |
118 |
118 |
119 cout |
119 cout |
120 << in << "<EtherCATInfo>" << endl |
120 << in << "<EtherCATInfo>" << endl |
121 << in << " <!-- Slave " << slave.position << " -->" << endl |
121 << in << " <!-- Slave " << dec << slave.position << " -->" << endl |
122 << in << " <Vendor>" << endl |
122 << in << " <Vendor>" << endl |
123 << in << " <Id>" << slave.vendor_id << "</Id>" << endl |
123 << in << " <Id>" << slave.vendor_id << "</Id>" << endl |
124 << in << " </Vendor>" << endl |
124 << in << " </Vendor>" << endl |
125 << in << " <Descriptions>" << endl |
125 << in << " <Descriptions>" << endl |
126 << in << " <Devices>" << endl |
126 << in << " <Devices>" << endl |
140 |
140 |
141 for (i = 0; i < slave.sync_count; i++) { |
141 for (i = 0; i < slave.sync_count; i++) { |
142 m.getSync(&sync, slave.position, i); |
142 m.getSync(&sync, slave.position, i); |
143 |
143 |
144 cout |
144 cout |
145 << in << " <Sm Enable=\"" << dec << (unsigned int) sync.enable |
145 << in << " <Sm Enable=\"" |
|
146 << dec << (unsigned int) sync.enable |
146 << "\" StartAddress=\"#x" << hex << sync.physical_start_address |
147 << "\" StartAddress=\"#x" << hex << sync.physical_start_address |
147 << "\" ControlByte=\"#x" << hex << (unsigned int) sync.control_register |
148 << "\" ControlByte=\"#x" |
|
149 << hex << (unsigned int) sync.control_register |
148 << "\" DefaultSize=\"" << dec << sync.default_size |
150 << "\" DefaultSize=\"" << dec << sync.default_size |
149 << "\" />" << endl; |
151 << "\" />" << endl; |
150 } |
152 } |
151 |
153 |
152 for (i = 0; i < slave.sync_count; i++) { |
154 for (i = 0; i < slave.sync_count; i++) { |