beautypg.com

Sensoray 2255 User Manual

Page 30

background image

Returns

Returns negative value on error, 0 if frame not ready, 1 if frame in progress(filling), or 2 if frame is
ready.

S2255_query_buf_ext(HDEVICE hdev, int channel, int frmnum, int *ts);

Queries state of frame with index frmnum.

Parameters

hdev

Handle to device

channel

Channel to check(1-4)

frmnum

Frame index to check (0 to SYS_FRAMES – 1)

ts

pointer to timestamp (valid only if return value is 2—frame ready)

Returns

Returns negative value on error, 0 if frame not ready, 1 if frame in progress(filling), or 2 if frame is
ready.

S2255_query_buf_all(HDEVICE hdev, int channel, int state[SYS_FRAMES], int
ts[SYS_FRAMES]);

Queries state of frame with index frmnum.

Parameters

hdev

Handle to device

channel

Channel to check(1-4)

state

array of frame states

ts

array of frame timestamps (valid only if state for from is 2)

Returns

Returns negative value on error, 0 on success. Frame states are stored in state and timestamps in
ts array.

S2255_get_buffer(HDEVICE hdev, int channel, int frame, char *pdata, int size);

30