Anonymous
Not applicable
Dec 03, 2014
10:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 03, 2014
10:23 PM
Status = CyU3PDmaChannelGetBuffer(&glCPUtoUSB_Handle, &ReportBuffer, CYU3P_WAIT_FOREVER);\n CheckStatus("GetReportBuffer4KeyPress", Status); \n // Most of this report will be 0's ReportBuffer.count = REPORT_SIZE;\n CyU3PMemSet(ReportBuffer.buffer, 0, REPORT_SIZE);\n // Convert InputChar to a Modifier and a Usage ReportBuffer.buffer[0] = Ascii2Usage[Index++]; ReportBuffer.buffer[2] = Ascii2Usage[Index]; // Send the Key Press to the host Status = CyU3PDmaChannelCommitBuffer(&glCPUtoUSB_Handle, REPORT_SIZE, 0); CheckStatus("Send KeyPress ", Status); // Wait 50msec then send a Key Release CyU3PThreadSleep(50); Status = CyU3PDmaChannelGetBuffer(&glCPUtoUSB_Handle, &ReportBuffer, CYU3P_WAIT_FOREVER); CheckStatus("GetReportBuffer4KeyRelease", Status); CyU3PMemSet(ReportBuffer.buffer, 0, REPORT_SIZE); ReportBuffer.count = REPORT_SIZE; Status = CyU3PDmaChannelCommitBuffer(&glCPUtoUSB_Handle, REPORT_SIZE, 0); CheckStatus("Send KeyRelease", Status); when I use CyU3PDmaChannelGetBuffer(API), The host can not receive data without the event of the host(usb event). I want to receive data without the event of the host pc as soon as data in Dmabuffer.
1 Reply
Anonymous
Not applicable
Dec 16, 2014
12:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 16, 2014
12:44 AM
This is a duplicate thread.
Replies posted on these threads:
http://www.cypress.com/?app=forum&id=167&rID=103980