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

PIDS - Telemetry Bitfield


"PID Bitifield" (APP/LHK)

View Options: (help)

Definition:

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

Description:

    Bitfield of GBM and SC input PIDs.

Layout: (hide detail; help)

    typedef struct _LHK_PIDS_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* Spare 3 bits */
        unsigned short       pad1:3;
    
        /* Spare 10 bits */
        unsigned short       pad0:10;
    
        /* SC PID Input 2 */
        unsigned short       sc2:1;
    
        /* SC PID Input 1 */
        unsigned short       sc1:1;
    
        /* SC PID Input 0 */
        unsigned short       sc0:1;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* SC PID Input 0 */
        unsigned short       sc0:1;
    
        /* SC PID Input 1 */
        unsigned short       sc1:1;
    
        /* SC PID Input 2 */
        unsigned short       sc2:1;
    
        /* Spare 10 bits */
        unsigned short       pad0:10;
    
        /* Spare 3 bits */
        unsigned short       pad1:3;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) LHK_PIDS_Bfl;
    
    typedef union _LHK_PIDS {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _LHK_PIDS_Bfl            bf;
    
    } LHK_PIDS;
    

Fields:

      Attribute(s):  

      Brief:  "SC PID Input 0"

      Instance(s):  sc0

      Attribute(s):  

      Brief:  "SC PID Input 1"

      Instance(s):  sc1

      Attribute(s):  

      Brief:  "SC PID Input 2"

      Instance(s):  sc2

      Attribute(s):  

      Brief:  "Spare 10 bits"

      Instance(s):  pad0

      Attribute(s):  

      Brief:  "Spare 3 bits"

      Instance(s):  pad1

Used by: