beautypg.com

Sensoray 2255 User Manual

Page 12

background image

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_RegBuffer(HANDLE hdev, int channel, BUFFER *pBuf, UINT32 size);

Registers a buffer for a specific device/channel combination. The image buffers have to be
allocated by the application software. The 2255 driver fills in the buffers with image data.

Parameters

hdev

A handle to the 2255 device.

channel

channel number (1-4).

pBuf

a pointer to BUFFER structure (see s2255.h).

size

requested buffer size.

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).

12