libusb测试USB设备传输过程中。使用libusb_bulk_transfer进行传输时,返回值是0,但是actual_length的值也是0。是不是就是证明没有传输成功。该如何解决以上问题。
unsigned char *buff = new unsigned char[m_nCurrentBlockSize];
LARGE_INTEGER startTime, endTime;
int actual_length = 0;
QueryPerformanceCounter(&startTime);
int nResult = libusb_bulk_transfer(m_pTestHandle, m_OutEndpoint, buff, m_nCurrentBlockSize, &actual_length, 5000);
QueryPerformanceCounter(&endTime);
还有个问题就是libusb的libusb_bulk_transfer,传输大小是多少,如果有限制,我该如何修改限制