Implemeting xbox one controller on uhid

Stephane D'Alu stephane.dalu at gmail.com
Thu Jun 27 19:08:28 UTC 2019


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


More information about the freebsd-usb mailing list