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

CPCIFNADDRBF addr - Telecommand Bitfield


"PCI Device Header Function Address Bitfield" (SVC/MEM)

View Options: (help)

Ancestry:

Definition:

    Alignment:2-byte boundary
    APID:1604/0x644:2
    Attribute(s):
    C type:unsigned short
    Length: 16 bits (2 bytes)
    Offset:0x00A

Description:

    Bitfield containing PCI device header function address.

Layout: (hide detail; help)

    Start Stop Size Item Type and Name

    typedef struct _MEM_CPCIFNADDRBF_Bfl {
    
        #if ENDIANNESS_IS_BIG
    
        /* PCI Bus Address */
        unsigned short       bus:1;
    
        /* PCI Device Address */
        unsigned short       device:5;
    
        /* PCI Function Address */
        unsigned short       function:2;
    
        /* 8-bit padding */
        unsigned short       pad:8;
    
        #elif ENDIANNESS_IS_LITTLE
    
        /* 8-bit padding */
        unsigned short       pad:8;
    
        /* PCI Function Address */
        unsigned short       function:2;
    
        /* PCI Device Address */
        unsigned short       device:5;
    
        /* PCI Bus Address */
        unsigned short       bus:1;
    
        #else
    
        #error _FILE_ ENDIANNESS NOT DEFINED
    
        #endif
    
    } __attribute__((packed)) MEM_CPCIFNADDRBF_Bfl;
    
    typedef union _MEM_CPCIFNADDRBF {
    
        /* underlying unsigned short */
        unsigned short                  us;
    
        /* struct mapped bitfield */
        struct _MEM_CPCIFNADDRBF_Bfl    bf;
    
    } MEM_CPCIFNADDRBF;