Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 6 of 21

Symbol Palm Terminal Scanner System Software Manual: Chapter 2 Scanner Commands, pages 37 to 44

Pages 37 to 44 of 168, from Symbol Palm Terminal Scanner System Software Manual

The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol SPT-1700

Page 37

Scanner Commands

See Also

ScanGetExtendedDecodedData

2-21

Page 38

Symbol Palm Terminal Scanner System Software Manual

ScanGetExtendedDecodedData Purpose Retrieves the decoded data larger than 255 bytes (multipacket data) from the last scan.

Prototype int ScanGetExtendedDecodedData (int length, int *type. unsigned char *extendedData);

Parameters length passed to the function by the application, and is the size of the buffer pointed to by *buf.

extendedData pointer to the buffer to place the decoded data.

type pointer to an int, and will contain the bar code type after the API is successfully called.

Returned Status Status_OK If an error occurs, the returned status is one of the following: BAD_PARAM COMMUNICATIONS_ERROR NOT_SUPPORTED

Comments Typically, an application calls this function in response to an EVENT_DECODE_DATA type of event and when extended data flag is set to indicate that extended data has been decoded. The length of the data is also sent out from the scanner manager to the application. Note that scan angle selection is not supported and ScanCmdAimOn is not supported.

SeeAlso ScanGetDecodedData

2-22

Page 39

Scanner Commands

ScanGetDecoderVersion Purpose Retrieves the ASCII revision string of the scanner’s decode software. Also copies the string to a user-specified location.

Prototype int ScanGetDecoderVersion ( CharPtr ptr, Word max_length);

Parameters -> ptr

-> max_length

A pointer to a user-allocated char array. This function places the revision into the array, null terminated. Maximum number of characters to be copied to ptr[].

Returned Status Length of the revision string. If an error occurs, the returned status is one of the following: BAD_PARAM COMMUNICATIONS_ERROR NOT_SUPPORTED

Comments The application should call this function after receiving a REVISION_REPLY_EVENT.

2-23

Page 40

Symbol Palm Terminal Scanner System Software Manual

ScanGetLedState Purpose Indicates whether the green LED is currently on or off. Prototype int ScanGetLedState ( void);

Returned Status Zero=OFF Non-zero=ON

See Also ScanCmdLedOff ScanCmdLedOn

2-24

Page 41

Scanner Commands

ScanGetScanEnabled Purpose Indicates whether the scanner is currently enabled. Prototype int ScanGetScanEnabled ( void);

Returned Status Zero=DISABLED Non-zero=ENABLED

See Also ScanCmdScanEnable ScanCmdScanDisable

2-25

Page 42

Symbol Palm Terminal Scanner System Software Manual

ScanGetScanManagerVersion Purpose Copies the ASCII version string for the Scan Manager software into a user-specified location.

Prototype int ScanGetScanManagerVersion ( CharPtr ptr, Word max_length);

Parameters -> ptr

-> max_length

A pointer to a user-allocated char array. This function places the version into the array, null terminated. Maximum number of characters to be copied to ptr[].

Returned Status Length of the revision string. If an error occurs, the returned status is the following: NOT_SUPPORTED

See Also ScanGetScanPortDriverVersion

2-26

Page 43

Scanner Commands

ScanGetScanPortDriverVersion Purpose Copies the ASCII version string for the scan port driver software into a user-specified location.

Prototype int ScanGetScanPortDriverVersion ( CharPtr ptr, Word max_length);

Parameters -> ptr

-> max_length

A pointer to a user-allocated char array. This function places the version into the array, null terminated. Maximum number of characters to be copied to ptr[].

Returned Status Length of the revision string. If an error occurs, the returned status is the following: NOT_SUPPORTED

See Also ScanGetScanManagerVersion

2-27

Page 44

Symbol Palm Terminal Scanner System Software Manual

ScanOpenDecoder Purpose Loads and initializes the Scan Manager shared library, and initializes the scanner.

Prototype int ScanOpenDecoder ( void);

Returned Status DECODER_ALREADY_OPEN - The function was previously called without a corresponding call to the ScanCloseDecoder function. STATUS_OK

Comments Must be called by all applications before any of the other functions in the Scan Manager shared library can be used. Also include a call to the ScanCloseDecoder function.

See Also ScanCloseDecoder

2-28