Sensoray 711 User Manual
Page 33

34
Sensoray Model 711 Instruction Manual
Notes
X11_InterruptUnmask enables selected interrupt(s) on a hardware level. The argument of
the function should be the same as used in the call to X11_InterruptOn.
X11_GetHFG
__declspec(dllexport) ECODE __stdcall X11_GetHFG (phfg, slot)
HFG * phfg;
/* address of the frame grabber handle */
DWORD slot;
/* PCI slot number */
The X11_GetHFG retrieves the value of the frame grabber handle given the PCI slot
number of the board.
Parameter Description
phfg
Points to the variable of HFG type.
slot
PCI slot number.
Returns
The function returns 0 in case of success, or an error code. It sets the variable pointed to by
phfg to the value of the frame grabber handle.
Example
PCI pci;
ECODE ecode;
HFG hfg[SYS_GRABBERS];
int i;
if (!(ecode = X11_InitSystem (&pci))) {
for (i = 0; i < pci.boards; i++) {
if ((ecode = X11_GetHFG (&hfg[i], pci.PCIslot[i]))) {
return ecode;
}
}
/* application code here */
} else {
return ecode;
}
X11_GetRC
__declspec(dllexport) ECODE __stdcall X11_GetRC (hbuf, frame, pmode, rowcol, rcnum,
pArray)
HBUF hbuf;
/* image buffer handle */
DWORD frame;
/* frame number */
MODE * pmode;
/* address of MODE structure */
DWORD rowcol;
/* access mode flag */
DWORD rcnum;
/* row or column number */
void * pArray;
/* address of receiving array */