![background image](http://html1.mh-extra.com/html/hand-held-products/5080/5080_user-manual_589690053.webp)
5X80 Series Software Development Kit (SDK) User’s Guide
6 - 1
6
Program Samples
Configuration Management
Sample 1 - Set code 39 defaults turning on Full ASCII
CODE39_T
code39;
// Structure for Code 39.
TCHAR
tcErrMsg[ 128 ];
// Error message buffer.
Result_t
nResult = RESULT_ERR_INTIALIZE; //
Return
code.
code39.dwStructSize = sizeof( CODE39_T );
// setup size parameter, used in
struct verification.
code39. dwMask = SYM_MASK_FLAGS;
// you want all info.
if( (nResult = hhpReadSymbologyConfig( SETUP_TYPE_DEFAULT,SYM_CODE39,&code39 )) ==
RESULT_SUCCESS )
{
code39.dwFlags |= SYMBOLOGY_ENABLE_FULLASCII;
// OR flags with Enable Full ASCII
flag to turn on code 39.
nResult = hhpWriteSymbologyConfig( SYM_CODE39,&code39 );
}
hhpGetErrorMessage( nResult,tcErrMsg );
_tprintf( _T(“Setup Code39 Returned: %s\n”),tcErrMsg;
Sample 2 - Set the capture mode to photo image
Note: This changes the imager configuration for the items selected. The imager uses these values if they are not overridden at
the time of image capture/transfer.
HHP_IMAGE_TRANSFER
imgTrans;
// Image transfer structure.
TCHAR
tcErrMsg[ 128 ];
// Error message buffer.
Result_t
nResult = RESULT_ERR_INTIALIZE;
// Return code.
// Set the structure size and structure mask
imgTrans.dwStructSize = sizeof( HHP_IMAGE_TRANSFER);
imgTrans.dwMask = IMAGE_CAPTURE_MODE_MASK;
// Turn on photo image mode.
ImgTrans.captureMode = HHP_AUTOEXPOSURE_PHOTO;
// Call the write configuration function specifying the HHP_ACQUISITION_STRUCTURE.
nResult = hhpWriteConfigItem( IMAGE_ACQUISITION,&imgTrans );
// Display error code (NOTE: RESULT_SUCCESS error code returns string SUCCESS.
hhpGetErrorMessage( nResult,tcErrMsg );
_tprintf( _T(“Change Imager Config To Photo Capture Mode: %s\n”),tcErrMsg;
Содержание 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 ...