Intermec ck1 Reference Guide
Chapter 3 — Scanner Support
CK1 SDK Programmer’s Reference Manual
127
Getting Bar Code Symbology Setting From Decoder Chip
Purpose: Get an individual bar code symbology from the bar code chip.
Syntax:
SC_BOOL GetBar codePara(char type, int *status);
Parameters: type
Bar code type. For help, see the “Bar Code Setting Type Code
for the Hamster Chip” table on page 114.
for the Hamster Chip” table on page 114.
status
Pointer of the current status
Return Values: SC_TRUE
Successfully
got
the bar code parameter
SC_FALSE
Failed to get the bar code parameter
Resetting All Symbologies to Default
Purpose: Reset the decoder chip’s symbology setting to the system default value.
Syntax:
SC_BOOL SetToDefault();
Return Values: SC_TRUE
Successfully set to default
SC_FALSE
Failed to set to default
Setting Preamble String
Purpose: Send a preamble string to the keyboard buffer before the scanner data. The
default preamble string is NULL, and its maximum length is
48 characters. Use this function with tpt_ScanKey.
48 characters. Use this function with tpt_ScanKey.
Syntax:
int SetPreamble(char *PreStr);
Parameter: PreStr
Pointer of the preamble buffer to set
Return Value: -1 Fail to input the preamble string
Getting Preamble String
Purpose: Get the current preamble string. Use this function with tpt_ScanKey.
Syntax:
SC_BOOL GetPreamble(char *PreStr);
Parameter: PreStr
Pointer of the preamble buffer to get
Return Values: SC_TRUE
Successfully got the preamble string
SC_FALSE
Failed to get the preamble string