5X80 Series Software Development Kit (SDK) User’s Guide
2 - 3
hhpCaptureRawBarcode
This function causes the imager to capture images and attempt to decode them. Decoded data returned is unmodified 8 bit ASCII
data. Barcode capture can be synchronous or asynchronous. Synchronous capture is specified by setting the bWait parameter
hhpCaptureRawBarcode to TRUE. In this case, the function will not return until a barcode is read, an error occurs, or the decode
timeout is reached. Asynchronous capture is specified by setting the bWait parameter hhpCaptureRawBarcode to FALSE, or
whenever a barcode capture is initiated other than by the 5X80 SDK (e.g., from a hardware trigger). In order to be notified of an
asynchronous transfer, you must enable at least one of the notification methods (see
hhpSetAsyncMethods
on page 2-10).
Syntax
hhpCaptureBarcode
(
P
HHP_RAW_DECODE_MSG
pDecodeMsg,
DWORD
dwTimeout,
BOOL
bWait
)
Parameter
Description
pDecodeMsg
Pointer to an HHP_RAW_DECODE_MSG structure if bWait is TRUE.
If bWait is FALSE, the parameter is ignored and should be NULL. (HHP_DECODE_MSG will be
passed to hhpGetAsyncMethods() call instead.) The function returns immediately, and you are
notified when symbols are decoded, an error occurs, or decoding times out (no barcode) using the
specified event notification method(s).
dwTimeout
Maximum time (in milliseconds) to attempt to decode before declaring a no decode. A value of
CURRENT_DECODE_TIMEOUT specifies that the timeout is whatever is currently set on the
imager. A value of 0 indicates no timeout.
bWait
If TRUE, wait for capture to complete before returning. If FALSE, one of the event notification
methods must be enabled to receive notification upon completion.
hhpConnect
This function opens a connection to an imager. The connection must be closed by calling hhpDisconnect(). The caller can verify
that the imager is connected by calling hhpEngineConnected().
Opens the selected communications port and establishes connection with the imager and starts the read data thread.
Syntax
hhpConnect
(
HHP_CONNECT_TYPE
connectType,
PVOID
pStruct
)
Parameter
Description
connectType
Describes the type of connection and hardware port, e.g., HHP_COM1, HHP_COM2, HHP_COM3.
pStruct
An optional structure that contains setup information for the hardware port, or NULL.
PHHP_SERIAL_PORT_CONFIG is used to configure a serial port connection.
Содержание 5080
Страница 1: ...Software Development Kit SDK for 5080 5180 and 5380 Decoded Miniature Image Scan Engines User s Guide ...
Страница 6: ...iv 5X80 Series Software Development Kit SDK User s Guide ...
Страница 14: ...1 8 5X80 Series Software Development Kit SDK User s Guide ...
Страница 50: ...4 14 5X80 Series Software Development Kit SDK User s Guide ...
Страница 60: ...6 8 5X80 Series Software Development Kit SDK User s Guide ...
Страница 62: ...7 2 5X80 Series Software Development Kit SDK User s Guide ...
Страница 63: ......
Страница 64: ... Hand Held Products Inc 700 Visions Drive P O Box 208 Skaneateles Falls NY 13153 0208 5X10 80SDK UG Rev C 9 07 ...