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

ADC adc - Telemetry Bitfield


"An ADC result" (APP/LHK)

View Options: (help)

Ancestry:

Definition:

    Alignment:2-byte boundary
    APID:536/0x218
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x024

Description:

    A compound of ADC readout and limit evaluation

Layout: (hide detail; help)

    typedef struct _LHK_ADC_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* ADC limit evaluation */
        unsigned short       limit:3;
    
        /* Readout status (ADC or switch) */
        unsigned short       status:1;
    
        /* Raw ADC value */
        unsigned short       value:12;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* Raw ADC value */
        unsigned short       value:12;
    
        /* Readout status (ADC or switch) */
        unsigned short       status:1;
    
        /* ADC limit evaluation */
        unsigned short       limit:3;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) LHK_ADC_Bfl;
    
    typedef union _LHK_ADC {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _LHK_ADC_Bfl             bf;
    
    } LHK_ADC;
    

Fields:

      Brief:  "ADC limit evaluation"

      Instance(s):  limit

      The result of comparing an ADC value against limits.

      Attribute(s):  

      Brief:  "Raw ADC value"

      Instance(s):  value

      Raw ADC value

      Brief:  "Readout status (ADC or switch)"

      Instance(s):  status

      Readout status. If set, read out failed for the designated ADC/switch.