Sensoray 615 User Manual

Page 14

Advertising
background image

14

index

Board index.

pCmd

Address of the COMMAND structure.

Return values

None.


S615_BufferReady

BOOL S615_BufferReady (

int index //board index

)

Parameters

index

Board index.

Return values

TRUE if buffer queue is not empty, FALSE otherwise.


S615_WaitBuffer

ECODE S615_WaitBuffer (

int index, //board index
BUFFER *pBuf, //pointer to BUFFER structure
DWORD timeout //timeout value (milliseconds)

)

Parameters

index

Board index.

pBuf

Address of the BUFFER structure to receive the data.

timeout

The length of time after which the function returns if no buffers were available.

Return values

Returns 0 in case of success, or an error code in case of a time out.

Notes

S615_WaitBuffer does not consume CPU time while waiting.

Advertising