Skip to content

Support for unions #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
buerge3 opened this issue Oct 14, 2022 · 1 comment
Open

Support for unions #46

buerge3 opened this issue Oct 14, 2022 · 1 comment

Comments

@buerge3
Copy link

buerge3 commented Oct 14, 2022

I would like CTF to support sending commands that contain a union. Proposed enhancement, low priority

@buerge3
Copy link
Author

buerge3 commented Oct 14, 2022

I have example:

typedef struct
{
    CFE_MSG_CommandHeader_t  CmdHeader;       /**< \brief CCSDS command message header */
    uint8 ucSpare[4];                         /**< \brief 64-bit alignment*/
    union
    {
        STRM_ApidFilter_t Filter;             /**< \brief The filter to add or update */
        CFE_MSG_GatewayApId_t ulGatewayApid;  /**< \brief APID of the filter to remove */
    }Parameter_t;
}STRM_IF_ToStrmFilterCmd_t;
VSM_CASSERT((sizeof(STRM_IF_ToStrmFilterCmd_t) == 40), strm_if_msg_h);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant