Output hex values in ethercat xml.

This commit is contained in:
Florian Pose 2010-04-07 13:50:47 +02:00
parent 1aa6122534
commit 3bcf58d047
2 changed files with 3 additions and 4 deletions

1
TODO
View File

@ -31,7 +31,6 @@ Version 1.5.0:
- Implement ranges for slaves and domains. - Implement ranges for slaves and domains.
- Add -x switch for hex display. - Add -x switch for hex display.
- Implement CompleteAccess - Implement CompleteAccess
- Output hexadecimal values in xml command.
- Implement --output-file argument in foe_read. - Implement --output-file argument in foe_read.
- Fix arguments of reg_read. - Fix arguments of reg_read.
- Number layout for reg_read. - Number layout for reg_read.

View File

@ -143,9 +143,9 @@ void CommandXml::generateSlaveXml(
cout cout
<< in << " <Sm Enable=\"" << dec << (unsigned int) sync.enable << in << " <Sm Enable=\"" << dec << (unsigned int) sync.enable
<< "\" StartAddress=\"" << sync.physical_start_address << "\" StartAddress=\"#x" << hex << sync.physical_start_address
<< "\" ControlByte=\"" << (unsigned int) sync.control_register << "\" ControlByte=\"#x" << hex << (unsigned int) sync.control_register
<< "\" DefaultSize=\"" << sync.default_size << "\" DefaultSize=\"" << dec << sync.default_size
<< "\" />" << endl; << "\" />" << endl;
} }