As I said before, I think there is a function maybe the key. So I want to analyze this key.
Definition
FT_STATUS FT_Read (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD dwBytesToRead,
LPDWORD lpdwBytesReturned)
Parameters
FT_Handle ftHandle:Handle of the device.
You can think this is a flag from the sftruct which provided by the ftd2xx.h. If this function runs correctly, then will come back FT_OK to FT_Handle or will come back error code.
LPVOID lpBuffer:Pointer to the buffer that receives the data from the device.
This parameter should be a pointer to put the data into a array.
DWORD dwBytesToRead:Number of bytes to be read from the device.
This parameter means you can choose how many data you want to read.
LPDWORD lpdwBytesReturned:Pointer to a variable of type DWORD which receives the number of bytes read from the device.
I think this parameter will reflect how many data you read really?
I don't well know this parameter.
So, I think I should creat a char array to receive data instead of just a char to improve transmission speed. I will try in a few days and share result here!