- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When I transfer the data by using XferData, this function does not work after abnormal situation what the data transfer not finish.
I've looking the solution to resolve this hang problem .
I used reset or reconnect functions of CYAPI, But they useless..
if (!(USBDevice->BulkInEndPt->XferData(_Orgin_Pixel_, len)))
{
USBDevice->ReConnect();
USBDevice->Reset();
}
Currently now I just turn off and on the FX3KIT.
How do I resolve this problem.??
and the below is what I just watch the information
- USBDevice->BulkInEndPt 0x00762fb0 {...} CCyBulkEndPoint *
- CCyUSBEndPoint {hDevice=0x000001bc DscLen=7 '\a' DscType=5 '\x5' ...} CCyUSBEndPoint
+ __vfptr 0x00ca8224 {isp1.exe!const CCyBulkEndPoint::`vftable'} {0x00c916ea {isp1.exe!CCyUSBEndPoint::BeginDirectXfer(unsigned char *,long,struct _OVERLAPPED *)}, ...} void * *
hDevice 0x000001bc void *
DscLen 7 '\a' unsigned char
DscType 5 '\x5' unsigned char
Address 129 '?' unsigned char
Attributes 2 '\x2' unsigned char
MaxPktSize 16384 unsigned short
PktsPerFrame 1 unsigned short
Interval 0 '\0' unsigned char
ssdscLen 6 '\x6' unsigned char
ssdscType 48 '0' unsigned char
ssmaxburst 15 '\xf' unsigned char
ssbmAttribute 0 '\0' unsigned char
ssbytesperinterval 0 unsigned short
TimeOut 10000 unsigned long
UsbdStatus 3221291008 unsigned long
NtStatus 3221225760 unsigned long
bytesWritten 0 unsigned long
LastError 997 unsigned long
bIn true bool
XferMode XMODE_DIRECT (1) XFER_MODE_TYPE