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

RawAdcStatus rawAdc - Telemetry Bitfield


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

View Options: (help)

Ancestry:

    0x000 pkt DiagLTC
    0x08E bf RawAdcStatus rawAdc

Definition:

    Alignment:2-byte boundary
    APID:730/0x2DA
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x08E

Description:

Layout: (hide detail; help)

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

    typedef struct _LTC_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)) LTC_RawAdcStatus_Bfl;
    
    typedef union _LTC_RawAdcStatus {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _LTC_RawAdcStatus_Bfl    bf;
    
    } LTC_RawAdcStatus;
    

Fields:

      Attribute(s):  

      Brief:  "Raw Sensor ADC Counts"

      Instance(s):  adc

      Raw 12-bit count value from ADC.

      Attribute(s):  

      Brief:  "Raw Sensor Status"

      Instance(s):  status

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