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:

    Alignment:2-byte boundary
    APID:720/0x2D0
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x028

Description:

    Bitfields for the bytes 0-1 of a standard CCSDS telecommand header

Layout: (hide detail; help)

    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:

      Attribute(s):  

      Brief:  "CCSDS application ID"

      Instance(s):  apid

      Standard CCSDS application identifier.

      Attribute(s):  

      Brief:  "CCSDS command bit"

      Instance(s):  isCmd

      Set for telecommands, clear for telemetry.

      Attribute(s):  

      Brief:  "CCSDS secondary header flag"

      Instance(s):  sec_hdr

      Set when a CCSDS packet includes a secondary header. Clear otherwise. All LAT telemetry/telecommands carry a secondary header.

      Attribute(s):  

      Brief:  "CCSDS version"

      Instance(s):  ver

      Standard CCSDS version code