An open API service indexing awesome lists of open source software.

https://github.com/epl-viz/convert-eds-xdd

Convert CANopen EDS to POWERLINK XDD
https://github.com/epl-viz/convert-eds-xdd

canopen cia eds ethernetpowerlink xdd

Last synced: 9 months ago
JSON representation

Convert CANopen EDS to POWERLINK XDD

Awesome Lists containing this project

README

          

=pod

=encoding utf8

=head1 NAME

Convert::EDS::XDD - Convert CANopen EDS to POWERLINK XDD

=head1 SYNOPSIS

$ cpan Convert::EDS::XDD # install from CPAN
$ eds2xdd profile.eds > profile.xdd # Convert with the eds2xdd script

=head1 DESCRIPTION

EDS is an L based format specified by the CiA e.V. in order to describe CANopen devices. The Ethernet POWERLINK Standardization Group specifies an EDS-based L format for EPL devices.

This module takes in an EDS file or a string with its content and returns a XDD string. An L wrapper script is also installed into the C.

C is also available as a self-contained (fatpacked) script L.

=head1 LIMITATIONS

May not handle all details of the EDS. Pull requests and reports (L) are welcome.

=head1 METHODS AND ARGUMENTS

=over 4

=item eds2xdd($filename, [$encoding])

Here, the C<[]> indicate an optional parameter.

Returns the EDS' content as XML string on success or undef on error in file contents.

Function croaks if opening file fails.

C<$encoding> may be used to indicate the encoding of the file, e.g. C<'utf8'> or
C<'encoding(iso-8859-1)'>.

Do not add a prefix to C<$encoding>, such as C<< '<' >> or C<< '<:' >>.

=item eds2xdd_string($string)

Returns the EDS string as XML string

=back

=head1 GIT REPOSITORY

L

=head1 SEE ALSO

L

=head1 AUTHOR

Ahmad Fatoum C<< >>, L

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2017-2018 Ahmad Fatoum

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut