beautypg.com

Sensoray 609 User Manual

Page 11

background image

11

11

DLL exported functions

All custom types referred to below are defined in s609.h.

S609_InitSystem

ECODE S609_InitSystem (
PCI *pPci //pointer to a PCI structure
);

Return values

Returns 0 in case of success, or an error code (a list of error codes is included in s609.h). A value

WNG_INITIALIZED is returned if the system has already been initialized by another process or
thread.

Notes
The S609_InitSystem is called once when the application starts. It initializes all 609 boards found
in the system and writes their slot numbers into PCI structure.

S609_GetHFG

ECODE S609_GetHFG (
HFG *pHfg, //pointer to a handle
DWORD slot //board’s PCI slot number
);

Return values

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

Notes

Gets a handle to the board detected by S609_InitSystem. From this moment on, the board is
addressed by a handle value.