Function Reference 4-93
Example
#include <stdio.h>
#include "scan1223.h"
#include "mmsultra.h"
void main(void)
{
short sStatus = 0;
// Command calls status
LPUPCEANINFO UEconfig;
// UPCEAN data structure
sStatus = scnOpenScanner();
// Enable scanner
if (sStatus == -2)
printf("Scanner error-- %d", sStatus);
else
{
// Get configuration
sStatus = scnGetUPCEANInfo(UEconfig);
if (sStatus != 0)
printf("Scanner is disabled.");
else
{
// Set values
UEconfig->uchEnableUPCA = SCN_ENABLE;
UEconfig->uchEnableUPCE = SCN_DISABLE;
UEconfig->uchEnableUPCE1 = SCN_DISABLE;
UEconfig->uchEnableEAN8 = SCN_DISABLE;
UEconfig->uchEnableEAN13 = SCN_DISABLE;
UEconfig->uchEnableBookEAN = SCN_DISABLE;
UEconfig->uchEnableSupps = 2;
UEconfig->uchEnableSuppRedun = 10;
UEconfig->uchXmitUPCAChkDgt = SCN_ENABLE;
UEconfig->uchXmitUPCEChkDgt = SCN_DISABLE;
UEconfig->uchXmitUPCE1ChkDgt = SCN_DISABLE;
UEconfig->uchUPCAPreamble = 2;
UEconfig->uchUPCEPreamble = 0;
UEconfig->uchUPCE1Preamble = 0;
UEconfig->uchCvtUPCEtoUPCA = SCN_DISABLE;
UEconfig->uchCvtUPCE1toUPCA = SCN_DISABLE;
UEconfig->uchEAN8ZeroExtend = SCN_DISABLE;
UEconfig->uchCvtEAN8toEAN13 = SCN_DISABLE;
UEconfig->uchSecurityLevel = 1;
UEconfig->uchEnableCouponCode = SCN_ENABLE;
Summary of Contents for Gold 6037EX
Page 1: ... ROG TC6037EXPM Rev AA 8 03 Printed in the U S A 2003 Paxar Americas Inc All rights reserved ...
Page 2: ... Trademarks 0 1 2 0 0 3 4 5 6 7 78 ...
Page 10: ...viii Table of Contents ...
Page 30: ...2 16 Programmer s Manual ...
Page 36: ...3 6 Programmer s Manual ...
Page 154: ...4 118 Programmer s Manual ...
Page 228: ...14 Index ...
Page 229: ......
Page 230: ......