beautypg.com

Sensoray 711 User Manual

Page 27

background image

28

Sensoray Model 711 Instruction Manual

X11_SetDStatus

__declspec(dllexport) ECODE __stdcall X11_SetDStatus (hfg, status, mask)

HFG hfg;

/* frame grabber handle */

DWORD status;

/* a value to write */

DWORD mask;

/* write mask */

The X11_SetDStatus function modifies individual bits of the frame grabber DSTATUS
register.

Parameter Description
hfg

Frame grabber handle. Selects the frame grabber.

status

Status value to be written.

mask

Write mask. Bits set to 1 allow modification of the corresponding bit
of DSTATUS register.

Returns
The function returns 0 in case of success, or an error code. For the meanings of the status
word individual bits see X11_GetDStatus.

X11_SetMode

__declspec(dllexport) ECODE __stdcall X11_SetMode (hfg, pMode)

HFG hfg;

/* frame grabber handle */

MODE * pMode;

/* address of the MODE type variable */

The X11_SetMode function sets the required frame grabber mode.

Parameter Description
hfg

Frame grabber handle. Selects the frame grabber.

pMode

Points to the MODE type variable containing mode settings.

Returns
The function returns 0 in case of success, or an error code.

Note
The value of the MODE variable pointed to by pMode can be modified as a result of the call
to X11_SetMode. For example, if one of the predefined scale settings is used (SCALE8,
etc.), the members of the advanced portion of MODE are set accordingly.

X11_InterruptOn

__declspec(dllexport) ECODE __stdcall X11_InterruptOn (pIntData)

INT_DATA * pIntData;

/* address of the variable of INT_DATA type */

The X11_InterruptOn function enables the interrupts for the particular frame grabber.