Argox PA-20 Programming Guide Manual do Utilizador Página 26

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 130
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 25
PT-20 Programming Guide
24
Example call
InitScanner1( );
while(1)
{
if (Decode())
SleepScanner1(TRUE);
while(_getchar()==0);
SleepScanner1(FALSE);
}
Includes
#include “SDK.h ”
Description
Use SleepScanner1 function to set scanner in sleep mode. You have not
to initial scanner again, and it would be scan again.
Returns
None
HaltScanner1
Purpose
Stop the scanner port from operating.
Syntax
void HaltScanner1(void);
Example call
HaltScanner1( );
Includes
#include “SDK.h ”
Description
Use HaltScanner1 function to stop scanner port from operating. To
restart a halted scanner port, the initialization function, InitScanner1,
must be called. It is recommended that the scanner port should be
stopped if the barcode decoding is not required for a long period of time.
Returns
none
TriggerStatus
Purpose
To check the scan key status.
Syntax
int TriggerStatus(void);
Example call
if (TriggerStatus( ))
_printf_color(COLOR_RED, “Scan key pressed!”);
Includes
#include “SDK.h ”
Description
This function can check the scan key status, if pressed scan key, this
function will return 1, else will return 0.
Returns
0:Scan key is not pressed.
1:Scan key is pressed.
Scanner_Reset
Purpose
Set scanner setting to default.
Syntax
BOOL Scanner_Reset(void)
Example call
If (Scanner_Reset())
_printf_color(COLOR_RED, “Scan module reset OK!”);
Includes
#include “SDK.h ”
Vista de página 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 129 130

Comentários a estes Manuais

Sem comentários