Elo TouchSystems ET1229L Series User Manual page 169

12.1" lcd touchmonior with optional magnetic stripe reader, finger print reader and rear facing customer display
Hide thumbs Also See for ET1229L Series:
Table of Contents

Advertisement

MagTek Device Drivers for Windows
/** clear overlapped structure */
memset ( &ov_r, 0, sizeof (ov_r) );
memset ( &ov_w, 0, sizeof (ov_w) );
if (argc < 2)
drv_h = OPEN_DEVICE ("COM5");
else
drv_h = OPEN_DEVICE (argv[1]);
if (drv_h == INVALID_HANDLE_VALUE)
{
ws = GetLastError();
printf("Can NOT open device : %s. Error : 0x%lx", "", ws);
return ( stage);
}
{ DCB dcb;
GetCommState(drv_h, &dcb);
dcb.BaudRate = CBR_9600;
dcb.Parity
= NOPARITY;
dcb.ByteSize = 8;
dcb.StopBits = ONESTOPBIT;
dcb.fParity
= 0;
dcb.fBinary
= 1;
dcb.fOutxCtsFlow = 0;
dcb.fOutxDsrFlow = 0;
dcb.fDtrControl = DTR_CONTROL_ENABLE;
SetCommState(drv_h, &dcb);
}
#define STAGE(idx, op, msg)
do {
STAGE ( 6, CreateEvent (NULL, TRUE, FALSE, NULL),
"Can't Create Overlapped Event(read)" );
ov_r.hEvent = ret_h;
STAGE ( 7, CreateEvent (NULL, TRUE, FALSE, NULL),
"Can't Create Overlapped Event(write)" );
ov_w.hEvent = ret_h;
STAGE ( 8,
CreateThread(
NULL,
0L,
(LPTHREAD_START_ROUTINE)output_thread,// adr of thread function
NULL,
0L,
&retdw
),
"Can't Create output thread" );
out_threadh = ret_h;
STAGE ( 9,
CreateThread(
46
/* Must Specify proper COM# as default */
ret_h = op;
if (ret_h==NULL)
{
printf("%s\n", (msg));
break;
}
stage = idx;
// address of thread security attributes
// initial thread stack size, in bytes
// argument for new thread
// creation flags 0-run immediately
// address of returned thread identifier
\
\
\
\
\
\
\

Advertisement

Table of Contents
loading

This manual is also suitable for:

Entuitive 1229l

Table of Contents