GLAST/LAT > DAQ and FSW > FSW > Index by Name within Package
Hdr0 hdr0 - Telemetry Bitfield
|
"CCSDS telecommand header (bytes 0-1)" (SVC/ITC) View Options: (help) Ancestry:
Definition:
Description:
Layout: (hide detail; help)
Hdr0 (bf) | Version ver (0-2) | isCmd isCmd (3) | Sec_hdr sec_hdr (4) | Apid apid (5-15)
typedef struct _ITC_Hdr0_Bfl {
#if ENDIANNESS_IS_BIG
/* CCSDS version */
unsigned short ver:3;
/* CCSDS command bit */
unsigned short isCmd:1;
/* CCSDS secondary header flag */
unsigned short sec_hdr:1;
/* CCSDS application ID */
unsigned short apid:11;
#elif ENDIANNESS_IS_LITTLE
/* CCSDS application ID */
unsigned short apid:11;
/* CCSDS secondary header flag */
unsigned short sec_hdr:1;
/* CCSDS command bit */
unsigned short isCmd:1;
/* CCSDS version */
unsigned short ver:3;
#else
#error _FILE_ ENDIANNESS NOT DEFINED
#endif
} __attribute__((packed)) ITC_Hdr0_Bfl;
typedef union _ITC_Hdr0 {
/* underlying unsigned short */
unsigned short us;
/* struct mapped bitfield */
struct _ITC_Hdr0_Bfl bf;
} ITC_Hdr0;
Fields:
Standard CCSDS application identifier.
Set for telecommands, clear for telemetry.
Set when a CCSDS packet includes a secondary header. Clear otherwise. All LAT telemetry/telecommands carry a secondary header.
Standard CCSDS version code |