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:
Description:
Layout: (hide detail; help)
CPCIFNADDRBF (bf) | CPCIBUS bus (0) | CPCIDEVICE device (1-5) | CPCIFUNCTION function (6-7) | CPAD8 pad (8-15)
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;
|