How to pass member values inside the union (which has nested structures)
<p>I have the union as followed in one of my project.</p>

<pre><code>typedef struct  
{  
    teD eId;  
    union  
    {  
        struct  
        {  
            UCHAR ucVolume;  
        }stAng;  
        enum  
        {  
            TEMP_MP=0,  
            FD_MP,  
            FD_HP,  
            COHP,  
            PT_PARAM,  
            T_PARAM,  
            ME_TEST,  
            CK,  
            ER,  
            MIT,  
            FXSCR_IN,  
            F_OUT,  
            FEY,  
            FKEY,  
            FNT_HOLD,  
            FBSERT,  
            FOVE,  
            FBROR  
        }eud;  
        struct  
        {  
            UWORD ud;  
            enum  
            {  
                AR = 0,  
                ACE  
            }eAts;  
            enum  
            {  
                IM = -1,  
                ITY ,  
                PTY,  
                LOTY,  
            }eAe;  
            enum  
            {  
                APE = -1,  
                AHP,  
                AUP,  
                AP,  
                AMP,  
                AULMT,  
                ASERT,  
                AUE,  
                AOR  
            }eAude;  
            CHAR acPme[20];  
        }stAfo;  
    }una;  
}tssg;  

typedef struct  
{  
    teD eId;  
    union  
    {  
        char Data[1032];  
    } unMsgBuf;  
} tstMsg;  

const BOOL cMpssk :: mbPsg (const tstMsg  svd)  
{  
    tssg &amp;tstAuMsg = (tssg&amp;) svd;  
    case 1:  
    {  
        if(tstAuMsg.una.stAfo.eAts == ACE) 
</code></pre>

<p>Here, I am setting <code>tstAuMsg.una.stAfo.eAts =1;</code> but still this if condition not getting through...</p>

<p>I don't understand clearly what could be the exact value should be passed to succeed the if condition.</p>

<p>This is little endian processor and considered 32-bit int.</p>

<p>Request your suggestions with some details why it's being failed that can shed some light on it.</p>

<p>Thank you,
Karthick </p>