Date: Thu, 27 Jun 2019 21:08:20 +0200 From: "Stephane D'Alu" <stephane.dalu@gmail.com> To: Hans Petter Selasky <hps@selasky.org>, freebsd-usb@freebsd.org Subject: Re: Implemeting xbox one controller on uhid Message-ID: <928ffe72-93d7-3518-5e65-1940f2e07398@gmail.com> In-Reply-To: <d005567f-c069-9f10-e4d9-5e700a0cd185@selasky.org> References: <ff5b0e3e-1929-e4f3-3e64-4c413b5464d1@gmail.com> <342406ee-c51e-0691-5560-4f49de90c83f@selasky.org> <b425fdeb-654d-f49a-ac9e-7a558f2c2bd0@gmail.com> <d005567f-c069-9f10-e4d9-5e700a0cd185@selasky.org>
index | next in thread | previous in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?928ffe72-93d7-3518-5e65-1940f2e07398>
