GLAST/LAT > DAQ and FSW > FSW > Index by Name within Package

NODEPAD - Telecommand Bitfield


"Compound of node ID and padding" (APP/LCM)

View Options: (help)

Definition:

    Alignment:2-byte boundary
    APID:1684/0x694:1
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)

Description:

    Compound of node ID and padding

Layout: (hide detail; help)

    Start Stop Size Item Type and Name
    NODEPAD (bf)
    |  NODE nid (0-3)
    |  PAD12 pad12 (4-15)
    

    typedef struct _LCM_NODEPAD_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* Computer to send the command to */
        unsigned short       nid:4;
    
        /* A twelve-bit padding field */
        unsigned short       pad12:12;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* A twelve-bit padding field */
        unsigned short       pad12:12;
    
        /* Computer to send the command to */
        unsigned short       nid:4;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) LCM_NODEPAD_Bfl;
    
    typedef union _LCM_NODEPAD {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _LCM_NODEPAD_Bfl         bf;
    
    } LCM_NODEPAD;
    

Used by: