nasa / CTF

This is a new repository for a new tool to be added to the cFS ecosystem called cFS Test Framework (CTF).
27 stars 6 forks source link

Support for unions #46

Open buerge3 opened 1 year ago

buerge3 commented 1 year ago

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

buerge3 commented 1 year ago

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);