GLAST/LAT > DAQ and FSW > FSW > Index by Name within Package
ADC adct2m1 - Telemetry Bitfield
|
View Options: (help) Ancestry:
Definition:
Description:
Layout: (hide detail; help) ADC (bf) | ADClimit limit (0-2) | status status (3) | ADCvalue value (4-15)
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:
The result of comparing an ADC value against limits.
Raw ADC value
Readout status. If set, read out failed for the designated ADC/switch. |