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

IDBF target - Telecommand Bitfield


"LAT Unit and Transaction ID Bitfield" (APP/LSM)

View Options: (help)

Ancestry:

    0x000 pkt noop
    0x008 bf IDBF target

Definition:

    Alignment:2-byte boundary
    APID:1680/0x690:2
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x008

Description:

    Bitfield to contain the LAT unit that is the target of a LSM telecommand and the transaction ID for the MEM telecommand.

Layout: (hide detail; help)

    Start Stop Size Item Type and Name
    IDBF (bf)
    |  UNIT unit (0-3)
    |  TRANID tranID (4-15)
    

    typedef struct _LSM_IDBF_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* Target LAT Unit */
        unsigned short       unit:4;
    
        /* Transaction ID */
        unsigned short       tranID:12;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* Transaction ID */
        unsigned short       tranID:12;
    
        /* Target LAT Unit */
        unsigned short       unit:4;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) LSM_IDBF_Bfl;
    
    typedef union _LSM_IDBF {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _LSM_IDBF_Bfl            bf;
    
    } LSM_IDBF;