SuperDave
Joined: 22 May 2008 Posts: 63 Location: Madison, TN
|
USB HID data back to Delphi 2010 |
Posted: Fri Jun 28, 2013 10:03 am |
|
|
From Delphi 2010 I can find and Checkout my custom USB/HID device with a PIC18LF13K50. So I know USB is wired right. I can send it instructions to EP1 and see that those instructions are received correctly (each value in the inbound array is as expected). When I then ask it to send data back using either
Code: | if (usb_put_packet(TxEP, iUSBtxData, TxLen, USB_DTS_TOGGLE)) | or
Code: | if(usb_puts(TxEP,iUSBtxData,TxLen,0)) |
the USB/HID device reports success (true).
But the Delphi procedure that should get the on data interrupt call is not called.
In the object the "OnDeviceData" event is set to the HidCtlDeviceData procedure.
In the code at device checkout, OnData (OnDeviceData is not a choice) is also set to the HidCtlDeviceData procedure.
There's a breakpoint at the entry to the HidCtlDeviceData procedure, it never gets there.
Any ideas why? |
|