We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi friends.
My English is very limited.
I am sending data to a computer via USB and LPC2368. but the data comes back to me once, come back I want to stop. Would not help but do?
Thank you.
Link: www.4shared.com/.../USBHID.html
I've tried many methods but could not manage. I'm about to go crazy:)
my sample code
void USB_EndPoint1 (DWORD event) {
switch (event) { case USB_EVT_IN: GetInReport(); fg_endpoints &= ~(Bit(1)<<16); //USB_WriteEP(0x81, InReport, sizeof(InReport)); OutReportBufCnt = USB_WriteEP(0x81, InReport, sizeof(OutReport)); break; case USB_EVT_OUT:
OutReportBufCnt = USB_WriteEP(0x81, InReport, sizeof(OutReport)); // fg_endpoints &= ~(Bit(1)<<16); break; } }