GLAST/LAT > DAQ and FSW > FSW > Index by Name within Package
Hdr3 - Telemetry Bitfield
|
"CCSDS telecommand header (bytes 6-7)" (SVC/ITC) View Options: (help) Definition:
Description:
Layout: (hide detail; help) Hdr3 (bf) | Fnc_pad fnc_pad (0) | Fnc_code fnc (1-15)
typedef struct _ITC_Hdr3_Bfl {
#if ENDIANNESS_IS_BIG
/* Padding */
unsigned short fnc_pad:1;
/* CCSDS telecommand function code */
unsigned short fnc:15;
#elif ENDIANNESS_IS_LITTLE
/* CCSDS telecommand function code */
unsigned short fnc:15;
/* Padding */
unsigned short fnc_pad:1;
#else
#error _FILE_ ENDIANNESS NOT DEFINED
#endif
} __attribute__((packed)) ITC_Hdr3_Bfl;
typedef union _ITC_Hdr3 {
/* underlying unsigned short */
unsigned short us;
/* struct mapped bitfield */
struct _ITC_Hdr3_Bfl bf;
} ITC_Hdr3;
Fields:
CCSDS telecommand function code
Function codes are not allowed to touch the most significnat bit of the 16-bit function code. This padding places the bit off limits. Used by:
|