Sensoray 2255 User Manual
Page 11

} FRAME;
Each BUFFER can contain up to SYS_FRAMES (64) FRAME’s. Using multiple FRAME’s may be beneficial
for preserving captured data in case of significant application latencies. On the other hand, when the
primary function of the application is image display, having too many buffers will increase maximum
display latency. For minimum display latency it is recommended to allocate 2 frames per buffer.
LPBITMAPINFO
member is provided for convenience in those cases when images are captured in
bitmap format. It points to the structure automatically created with a call to S2255_RegBuffer function.
Also, buffer size is returned in
BUFFER.lpbmi[].biSizeImage
member (including data size for JPEG
capture mode).
Functions Reference
S2255_DeviceOpen(int board, HANDLE *hdev);
Opens the 2255 device and acquires a handle.
Parameters
board
A 2255 index (0 for the first unit, 1 for the second unit, etc.).
hdev
a pointer to the variable accepting the handle value. All subsequent function calls use the
handle to address the 2255.
Returns
0 on success.
S2255_DeviceClose(HANDLE hdev);
Must be called before application terminates for proper clean-up of the SDK and SDK objects.
Parameters
hdev
the handle value of the unit to be closed
.
Returns
0 on success.
S2255_SetMode(HANDLE hdev, int channel, MODE2255 *mode);
Sets the operating mode for the selected channel (1-4) of the 2255.
11