Content originally posted in LPCWare by behzat_c on Fri Jun 17 01:49:16 MST 2011
Quote: jharwood
The attached project may do what you want. I'm no USB expert, but it seems to test out ok.
For an IN_REPORT (device --> host) see the function HandleFrame().
For an OUT_REPORT (host --> device) see the function HandleClassRequest(), case HID_SET_REPORT
You will need RDB1768cmsis_usbstack and CMSISv1p30_LPC17xx libraries to be present in your workspace.
Hi,
Thank you in advance. For, IN report this code is working. But, i couldn't manage to work with OUT report properly.
I'm sending messages from the computer but the code doesn't even go in to the HandleClassRequest function. ( I'm testing with breakpoints. )
Also, i couldn't find where does the out endpoint initializes. There is, USBHwRegisterEPIntHandler for IN enpoint but there is no such init. for OUT endpoint.
Please clearify me if i'm missing something.