Hi Dave,
Thanks for the reply.

Quote Originally Posted by DaveC3 View Post
Paul

Up to now I have only used one endpoint. I believe you set up your device in the descriptor file. You tell it the number of interfaces you want, the number of endpoints, in the endpoint descriptor you tell the type of transfer and so on.
Got that far. My descriptor is set for 1 interface and endpoint1in is set for 8 byte buffer length and interrupt.

Then in the report descriptor you would set the packet size type of data and so on.
Not sure about this one. I have no report descriptor. I have made other HID projects and see that endpoint 1 has a report descriptor, but I thought that was due to the 'get_report' is a control transfer that comes in via the setup packet and not as in interrupt request on the USTAT. Do you have any further details on this?

In PBP you would listen for that endpoint "USBIN X,buffer,cnt, goto label" (X being the endpoint number 1,2 etc). The PC sends endpoint "0" PBP endpoint is 1

Check out the USB18.inc file

I am not an expert but have made many USB devices and written custom descriptors.


Dave
Got to love the USB18 file..... I have been reading it over and over for a few weeks now and none of the functions deal with interrupt requests.
I will try to use PBP to setup and initialize the endpoint buffer descriptor in memory and then read the USTAT for an ep01_in request and then set uown back to the sie etc.

Should be able to get some time this weekend to try a few things.

Thank again,

Paul