beautypg.com

Sensoray 2255 User Manual

Page 13

background image

frmnum

frame number to dequeue (0 to

SYS_FRAMES – 1)

.

Returns

0 on success.

S2255_StartAcquire (HANDLE hdev, int channel, HANDLE *phevent);

Starts capture on the specified channel of the 2255.

Parameters

hdev

A handle to the 2255 device.

channel

channel number (1-4).

phevent

address of a variable accepting a handle to the event set by the driver each time a frame is

ready.

Returns

0 on success.

S2255_StopAcquire(HANDLE hdev, int channel);

Stops capture on the specified channel of the 2255.

Parameters

hdev

A handle to the 2255 device.

channel

channel number (1-4).

Returns

0 on success.

S2255_GrabFrame (HANDLE hdev, int channel, unsigned char *pFrame,
unsigned long size, unsigned long timeout, BITMAPINFO *pBMI);

Grabs a single frame from the board without the need to start acquisition (S2255_StartAcquire) or
register buffers (S2255_RegBuffer). This method of capture is not recommended for continuous
capture. Only use when not using S2255_StartAcquire and S2255_StopAcquire. Do not call this

13