![Argox PT-10 Скачать руководство пользователя страница 40](http://html.mh-extra.com/html/argox/pt-10/pt-10_programming-manual_2969261040.webp)
39
kbhit
Purpose
:
Use
Kbhit
to check if any key is going to be read. As
Kbhit
will not
wait for the input from keypad, the program can be proceeded till a
signal of interruption was received by pressing the keypad.
Syntax
:
int kbhit(void);
Example call
:
while( kbhit() == TM_NONE) do_your_thing();
Includes
:
#include
“
UserLib.h
"
Description
:
The
kbhit
function checks if any key is going to be read. Scanning
function only accepts the return with good read from the scanner.
Returns
:
The
Kbhit
function returns what it reads from keypad: TM_NONE
、
TM_0
、
TM_1
、
TM_2
、
TM_3
、
TM_4
、
TM_5
、
TM_6
、
TM_7
、
TM_8
、
TM_9
、
TM_DOT
、
TM_CANCEL
、
TM_ALPHA
、
TM_FN
、
TM_ESC
、
TM_PW
、
TM_ENT
、
TM_SCAN
、
TM_UP
、
TM_DOWN
、
TM_LEFT
、
TM_RIGHT
。
kbhit_GetScan_BarType
Purpose
:
Use
kbhit_GetScan_BarType
function to get read barcode type when
TM_SCAN
is returned.
Syntax
:
int kbhit_GetScan_BarType(void);
Example call
:
if(kbhit_GetScan_BarType() == BCODE_Code39) do_something();
Includes
:
#include
“
UserLib.h
"
Description
:
The
kbhit_GetScan_BarType
function gets the good read barcode
type from the
kbhit
function.
Returns
:
The
kbhit_GetScan_BarType
function returns the read barcode type:
BCODE_NONE
、
BCODE_Code39
、
BCODE_EAN8
、
BCODE_EAN13
、
BCODE_UPCA
、
BCODE_UPCE
、
BCODE_Code128
、
BCODE_I25
、
BCODE_Codabar
、
BCODE_Code93
、
BCODE_ChinaPost
。
kbhit_GetScan_Data
Purpose
:
Use
kbhit_GetScan_Data
function to get read barcode data when
TM_SCAN
is returned.
Syntax
:
char* kbhit_GetScan_Data(void);
Example call
:
_printf("%s", kbhit_GetScan_Data());
Includes
:
#include
“
UserLib.h
"
Description
:
The
kbhit_GetScan_Data
function gets the good read barcode data
from the
kbhit
function.
Returns
:
The
kbhit_GetScan_Data
function returns the read barcode data. In
case of no data received, a NULL will be returned.
kbhit_GetScan_DataLen
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...