Intermec ck1 Reference Guide
Chapter 3 — Scanner Support
126
CK1 SDK Programmer’s Reference Manual
Disabling Trigger
Purpose: Disable the trigger key.
Syntax:
void DisableBarcode();
Return Value: NONE
Checking Bar Code Input
Purpose: Check if there is a bar code read from the decoder chip. This function is
only called in tpt_Scanner.
Syntax:
int CheckBracode();
Return Values: TRUE (non zero) Have bar code
FALSE (zero)
Does not have bar code
Reading Bar Code Data
Purpose: Get input bar code data from the controlling program. Only use this
function with tpt_Scanner.
Syntax:
SC_BOOL GetBar code(char *getbuf, char *cType);
Parameters: getbuf
Pointer of the buffer to store bar code
cType
Pointer of the bar code type. For help, see the “Bar Code Type
Number Returned From the Hamster Chip” table on page
112.
Number Returned From the Hamster Chip” table on page
112.
Return Values: SC_TRUEL
Successfully got the bar code
SC_FALSE There
is
no
bar code available
Setting Bar Code Symbology Into Decoder Chip
Purpose: Set the individual bar code symbology.
Syntax:
SC_BOOL SetBar 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 new status
Return Values: SC_TRUE Successfully set the bar code parameter
SC_FALSE Failed to set the bar code parameter