Sensoray 2255 User Manual
Page 26

S2255_DeviceClose(HANDLE hdev);
Must be called before application terminates for proper clean-up of the SDK and SDK objects.
Parameters
hdev
the handle value of the unit to be closed
.
Returns
0 on success.
S2255_SetMode(HANDLE hdev, int channel, MODE2255 *mode);
Sets the operating mode for the selected channel (1-4) of the 2255.
Parameters
hdev
A handle to the 2255 device.
channel
channel number (1-4).
mode
a pointer to MODE2255 structure containing the desired operation mode (see s2255.h).
Returns
0 on success.
S2255_DQBUF(HANDLE hdev, int channel, int frmnum);
Informs the driver that the application is releasing a frame back to the driver. Failure to do that
may cause the driver to skip frames because of “buffer starvation”.
Parameters
hdev
A handle to the 2255 device.
channel
channel number (1-4).
frmnum
frame number to dequeue (0 to
SYS_FRAMES – 1)
.
Returns
26