On 6/27/19 4:26 PM, Hans Petter Selasky wrote:
On 2019-06-27 15:44, Stephane D'Alu wrote:
On 6/27/19 3:20 PM, Hans Petter Selasky wrote:
On 2019-06-27 15:16, Stephane D'Alu wrote:
[...]
Hi,

For sending a interrupt endpoint message you need to allocate an own USB transfer. The usbd_req_set_report() only works on the control endpoint.


Do you mean?
- usbd_transfer_setup + usbd_transer_start ?


Yes, that is correct.


Got it working, thanks, still a few questions


Is it allowed to:

- create/use several usb_xfer for the same type/endpoint/direction

- in the callback (usb_config) to write several packets
   (multiple call to usbd_transfer_submit), with the same page_cache?

--
Stephane D'Alu
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[email protected]"

Reply via email to