beautypg.com

Sensoray 2255 User Manual

Page 16

background image

a handle to the 2255 device.

channel

channel number (1-4).

frmnum

Index of frame in question (starting from 0). Must be smaller than number of registered

buffers.

ts

Timestamp in milliseconds when frame was captured on board. The timestamp is a running

counter that is reset only when when board is powered up. The timestamp is 32 bits long

and wraps around after an overflow. Resolution of timestamp is 1ms.

Returns

Returns 0 if a frame buffer is unused. Returns 1 if a buffer is currently being filled (do not use

buffer). Returns 2 if a buffer is ready (dequeue buffer after use). Returns -1 or negative value

if failure occurs.

S2255_GetSN(HDEVICE hdev, SN2255 *sn);

Returns the serial number on the board. Please note: Only boards manufactured after August
2010 have a serial number.

Parameters

hdev

a handle to the 2255 device.

sn

serial number structure (see s2255.h). Includes programming date.

S2255_Enumerate(int *pCount, DEVINFO2255 *pDevices);

Enumerates all 2255 boards in the system. If called with *pCount equal to 0, the number of
attached devices is set in *pCount. If *pCount != 0 and pDevices != NULL, then pDevices points
to a list of at least *pCount DEVINFO2255 structures which get filled in with board number and
serial number information. Please see demo application for an example.

Parameters

*pCount

Returns devices found in system (if called with *pCount=0) or size of pDevices to fill with

board information.

pDevice

16