7 May 2012 08:22
[LibusbK-devel] how to read data from interrupt endpoint.
peter wang <peter.wang1013 <at> gmail.com>
2012-05-07 06:22:27 GMT
2012-05-07 06:22:27 GMT
Hi all:
I wan to read data from interrupt endpoint, My firmware work is done, below is description.
|
0
|
bLength
|
1
|
07h
|
|
|
1
|
bDescriptorType
|
1
|
05h
|
Endpoint
|
|
2
|
bEndpointAddress
|
1
|
81h
|
1 In
|
|
3
|
bmAttributes
|
1
|
03h
|
Interrupt
|
|
|
1..0: Transfer Type
|
|
......11
|
Interrupt
|
|
|
7..2: Reserved
|
|
000000..
|
|
|
4
|
wMaxPacketSize
|
2
|
0008h
|
8 bytes
|
|
6
|
bInterval
|
1
|
0Fh
|
2048000 us
|
|
0
|
bLength
|
1
|
05h
|
|
|
1
|
bDescriptorType
|
1
|
25h
|
Video Control Interrupt Endpoint
|
|
2
|
|
3
|
03 08 00
|
I used UsbK library.
1, when I use the demo - xfer-sync to test, the program will not return when run to this line:
xfer-sync.c
success
= Usb.ReadPipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
2, when I use the demo - xfer-async to test, the function
xfer-async.c
success
= OvlK_WaitOrCancel(myRequest->Ovl, ASYNC_TIMEOUT_MS, &myRequest->TransferLength);will return errorno=000004C7h (The operation was canceled by the user).
and in usblyzer, it printf: URB Status USBD_STATUS_CANCELED
thanks in advance.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Libusb-win32-devel mailing list Libusb-win32-devel <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
RSS Feed