Data types reference – Sensoray 615 User Manual

Page 7

Advertising
background image

7

Data types reference

System structure PCI

typedef struct {
DWORD boards;
DWORD mask;
DWORD PCIslot[SYS_BOARDS];
} PCI;

The PCI structure contains information about the frame grabber boards identified by the system.

boards

Number of supported boards identified by the system.

mask

Board selection mask.

PCIslot

Array of slot numbers.

The PCI structure is initialized by S615_InitSystem function. The system constant SYS_BOARDS
determines the maximum number of frame grabbers supported, and is defined in s615.h. The
boards member is set by S615_InitSystem to the number of model 615 boards detected in the
system. The mask member has to be set before the call to S615_InitSystem and determines which

of the detected boards are required to be initialized by the calling process. A value of 1 in bits 0-3
of mask selects a corresponding board to be initialized. For example, to initialize boards 0 and 2,
the value of mask has to be set to 5. The enabling bit position corresponds to the value of index by

which the board is referenced further on. In the previous example, the index values would be 0
and 2. If another application has to use board 1, the mask value has to be set to 2, and the index

will be 1. Note that no matter which boards are selected by mask, the boards and PCIslot[]
members will reflect the actual number of boards in the system.

PCIslot member represents a PCI slot number for a given board. The PCI slot number is generated
by Windows, and usually is not the same as the ordinal number of the slot. The PCI slot number is
provided for reference only.

Advertising