GLAST/LAT > DAQ and FSW > FSW > Index by Name within Package
CPCIADDRBF addr - Telecommand Bitfield
|
"PCI Device Header Address Bitfield" (SVC/MEM) View Options: (help) Ancestry:
Definition:
Description:
Layout: (hide detail; help)
CPCIADDRBF (bf) | CPCIBUS bus (0) | CPCIDEVICE device (1-5) | CPCIFUNCTION function (6-7) | CPCIOFFSET offset (8-15)
typedef struct _MEM_CPCIADDRBF_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;
/* PCI Offset Address */
unsigned short offset:8;
#elif ENDIANNESS_IS_LITTLE
/* PCI Offset Address */
unsigned short offset: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_CPCIADDRBF_Bfl;
typedef union _MEM_CPCIADDRBF {
/* underlying unsigned short */
unsigned short us;
/* struct mapped bitfield */
struct _MEM_CPCIADDRBF_Bfl bf;
} MEM_CPCIADDRBF;
|