English
Language : 

MA104 Datasheet, PDF (29/32 Pages) Megawin Technology Co., Ltd – USB 2.0 low speed device.
MA104 Datasheet
Version 1.02
8.2.3 _MW_MA104 structure
typedef struct _MW_MA014
{
DWORD VID;
DWORD PID;
DWORD ReadTimeOut;
DWORD WriteTimeOut;
HANDLE Handle;
} MA104;
Parameter:
VID : Megawin’s Vendor ID is 0x0E6A;
PID : MA104’s Product ID is 0x0109 / 0x010F;
ReadTimeOut :
Specifies the time-out interval, in milliseconds.
Within this given timer interval, read activity should be finished;
otherwise, it will be considered as an error.
WriteTimeOut :
Specifies the time-out interval, in milliseconds.
Within this given time interval, Write activity should be finished;
otherwise, it will be considered as an error.
Handle :
DLL will save a valid handle in this variable, and caller is responsible for protecting this value from being
modified.
8.2.4 MA104_Connect
MA104_Connect() sets up the software relation between user application and MA104 device. It pairs up with
MA104_Disconnect().
MA104_API
DWORD MA104_Connect( MA104 * pMA104,
DWORD Index );
Parameter:
pMA104 : Caller-supplied pointer to a MA104 structure.
Index : Device index of a MA104, and it starts from one.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
29/32