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

BOOTCOMMAND tcLast - Telemetry Bitfield


"Last boot command bitfield" (OS/PBC)

View Options: (help)

Ancestry:

    0x000 pkt LBTEPU1HKP
    0x020 bf BOOTCOMMAND tcLast

Definition:

    Alignment:2-byte boundary
    APID:610/0x262
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x020

Description:

    Bitfield to hold APID and function code of command most recently received by the PBC.

Layout: (hide detail; help)

    typedef struct _PBC_BOOTCOMMAND_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* Last Function Code */
        unsigned short       func:5;
    
        /* Last APID */
        unsigned short       apid:11;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* Last APID */
        unsigned short       apid:11;
    
        /* Last Function Code */
        unsigned short       func:5;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) PBC_BOOTCOMMAND_Bfl;
    
    typedef union _PBC_BOOTCOMMAND {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _PBC_BOOTCOMMAND_Bfl     bf;
    
    } PBC_BOOTCOMMAND;
    

Fields:

      Attribute(s):  

      Brief:  "Last APID"

      Instance(s):  apid

      APID of last command received by the PBC.

      Attribute(s):  

      Brief:  "Last Function Code"

      Instance(s):  func

      Function code of the last command received by the PBC.