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

RawAdcStatus rawAdc - Telemetry Bitfield


"Sensor Status and ADC Counts" (APP/LHK)

View Options: (help)

Ancestry:

Definition:

    Alignment:2-byte boundary
    APID:656/0x290
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x062

Description:

Layout: (hide detail; help)

    Start Stop Size Item Type and Name
    0 3 4 RawStatus status
    4 15 12 RawAdc adc

    typedef struct _LHK_RawAdcStatus_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* Raw Sensor Status */
        unsigned short       status:4;
    
        /* Raw Sensor ADC Counts */
        unsigned short       adc:12;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* Raw Sensor ADC Counts */
        unsigned short       adc:12;
    
        /* Raw Sensor Status */
        unsigned short       status:4;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) LHK_RawAdcStatus_Bfl;
    
    typedef union _LHK_RawAdcStatus {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _LHK_RawAdcStatus_Bfl    bf;
    
    } LHK_RawAdcStatus;
    

Fields:

      Attribute(s):  

      Brief:  "Raw Sensor ADC Counts"

      Instance(s):  adc

      Attribute(s):  

      Brief:  "Raw Sensor Status"

      Instance(s):  status

      0-NOT_READ, 1-GOOD, 2-READ_FAIL, 3-BROKEN