You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The LC app (https://github.com/nasa/LC) uses a union for its LC_MultiType_t container. This is used in the table definitions so it can have any data type. Unfortunately, the EDS cannot currently generate a structure that can represent this.
Describe the solution you'd like
Render a specific EDS construct as a union so it will be compatible with this use-case in LC.
Additional context
This is just a specialized/specific case of container inheritance. The EDS tool does render a union for container types that are used as a base type for other objects, but it renders it abstractly - that is, there is just a max size and alignment, the members and member types are not explicitly listed, as this might create a circular dependency if they are in another datasheet.
In this case, all the derived types are in the same datasheet, so there is no dependency issue. In this context the tool can render a union with all the members and it should address the LC use case.
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
If a datasheet/packagefile defines all derived containers then render
that object in C as a normal union with all members, as opposed to the
abstract union that would be rendered if types came from different
package files.
Is your feature request related to a problem? Please describe.
The LC app (https://github.com/nasa/LC) uses a union for its
LC_MultiType_t
container. This is used in the table definitions so it can have any data type. Unfortunately, the EDS cannot currently generate a structure that can represent this.Describe the solution you'd like
Render a specific EDS construct as a union so it will be compatible with this use-case in LC.
Additional context
This is just a specialized/specific case of container inheritance. The EDS tool does render a union for container types that are used as a base type for other objects, but it renders it abstractly - that is, there is just a max size and alignment, the members and member types are not explicitly listed, as this might create a circular dependency if they are in another datasheet.
In this case, all the derived types are in the same datasheet, so there is no dependency issue. In this context the tool can render a union with all the members and it should address the LC use case.
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: