robincornelius / libedssharp

A CanOpen EDS editor and library in C# with CanOpenNode export for Object Dictionary
GNU General Public License v3.0
232 stars 137 forks source link

Support for Complext Data types (DEFSTRUCTS) #165

Open AminGholamzadeh opened 5 years ago

AminGholamzadeh commented 5 years ago

Enhancement

Hi Robin,

Is there currently any way to implement multiple indexes being records of the same complex type?

Since the .c and .h files will have a structure defined for each index of type "Record", could this be expanded so that multiple indexes of same object could be achieved? (Something like defstructs in original openCAN spec)

At the moment the only way to do this is to have records of different name with the same structure which will create identical "structs" in C with different names (not end of the world, but wasteful)

heliochronix commented 4 years ago

It would be nice to have the ability to define data types per application. So, for example, have all the standard data types included, but allow selection of (or custom definition of) other data types to include and to have as an option for the data type drop down.

As an example, on one of the projects I work on the TIME_OF_DAY datatype is not useful or used (but defined by default anyway). However, data types based on CCSDS Time Code Formats would be useful. It'd be nice to be able to select which ones I'd like to include, and make my own if necessary.