Intermec ck1 Reference Guide
Chapter 3 — Scanner Support
CK1 SDK Programmer’s Reference Manual
111
Syntax:
char *GetBar codeTypeName(int type);
char *GetBar codeShortTypeName(int type);
Parameter: type
Type number that the control program shows to the application
Return Values: A string point to the type name of the number
Note: Changing the content of the string returned changes the next calling
of the same type.
of the same type.
Function Structure
The scanner APIs are stored at two structures. The type of the structures is
named TPT.
named TPT.
typedef int SC_BOOL;
typedef SC_BOOL
typedef SC_BOOL
(*HAMSTER_FUNCTION1)();
typedef void
(*HAMSTER_FUNCTION2)();
typedef SC_BOOL
(*HAMSTER_FUNCTION3)(char* type, char* status);
typedef SC_BOOL
(*HAMSTER_FUNCTION4)(char type, int* status);
typedef int (*HAMSTER_FUNCTION5)(char* PreambleStr);
typedef SC_BOOL
typedef SC_BOOL
(*HAMSTER_FUNCTION6)(void* buffer);
typedef struct
{
HAMSTER_FUNCTION1
EnableBarcode;
HAMSTER_FUNCTION2
DisableBarcode;
HAMSTER_FUNCTION1
CheckBarcode;
HAMSTER_FUNCTION3
GetBarcode;
HAMSTER_FUNCTION4
SetBarcodePara;
HAMSTER_FUNCTION4
GetBarcodePara;
HAMSTER_FUNCTION1
SetToDefault;
HAMSTER_FUNCTION5
SetPreamble;
HAMSTER_FUNCTION5
GetPreamble;
HAMSTER_FUNCTION5
SetPostamble;
HAMSTER_FUNCTION5
GetPostamble;
HAMSTER_FUNCTION5
SetDelimiter;
HAMSTER_FUNCTION5
GetDelimiter;
HAMSTER_FUNCTION1
StopScan;
HAMSTER_FUNCTION1
StartScan;
HAMSTER_FUNCTION6
GetCurrentSetting;
}TPT;
TPT Functions
Function Name
tpt_Scanner
tpt_ScanKey
Description
EnableBarcode Exist
Exist
Enable
scanner
DisableBarcode
Exist
Exist
Disable scanner
CheckBarcode
Exist
Dummy
Check if a bar code was read
GetBarcode
Exist
Dummy
Get the bar code
SetBarcodePara
Exist
Exist
Set bar code type parameter
GetBarcodePara
Exist
Exist
Get bar code type parameter