English
Language : 

MA104 Datasheet, PDF (30/32 Pages) Megawin Technology Co., Ltd – USB 2.0 low speed device.
MA104 Datasheet
Version 1.02
8.2.5 MA104_Disconnect
MA104_Disconnect() closes the connection between user application and MA104 device. It pairs up with
MA104_Connect().
MA104_API
DWORD MA104_Disconnect( MA104 * pMA104);
Parameter:
pMA104 : Caller-supplied pointer to a MA104 structure.
Remark:
It is necessary to call disconnect after each call of connect.
8.2.6 MA104_WriteData
The MA104_WriteData function writes data to MA104 device.
MA104_API
DWORD MA104_WriteData( MA104 * pMA104,
LPBYTE lpBuffer,
DWORD nNumberOfBytesToWrite,
LPDWORD lpNumberOfBytesWritten );
Parameter:
pMA104 : Caller-supplied pointer to MA104 structure.
lpBuffer : Pointer to the buffer containing the data to be written to the MA104 device.
nNumberOfBytesToWrite : It is the length of lpBuffer.
lpNumberOfBytesWritten : It is the actually written length.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
30/32