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

CUNITBF ident - Telecommand Bitfield


"LAT Unit Bitfield" (OS/PBC)

View Options: (help)

Ancestry:

    0x000 pkt LBTBAD
    0x008 bf CUNITBF ident

Definition:

    Alignment:2-byte boundary
    APID:1600/0x640:4
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x008

Description:

    Bitfield containing target LAT unit and some padding.

Layout: (hide detail; help)

    Start Stop Size Item Type and Name

    typedef struct _PBC_CUNITBF_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* Target LAT Unit */
        unsigned short       latUnit:4;
    
        /* 12-bit padding */
        unsigned short       pad:12;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* 12-bit padding */
        unsigned short       pad:12;
    
        /* Target LAT Unit */
        unsigned short       latUnit:4;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) PBC_CUNITBF_Bfl;
    
    typedef union _PBC_CUNITBF {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _PBC_CUNITBF_Bfl         bf;
    
    } PBC_CUNITBF;