Re: USB: Question about usb_write() API


Sundar Subramaniyan
 

Hi Andrei,

On Tue, Jan 30, 2018 at 9:01 PM, andrei.emeltchenko@... <andrei.emeltchenko.news@...> wrote:
I think API states it supports both methods:
https://github.com/zephyrproject-rtos/zephyr/blob/master/include/usb/usb_device.h#L209

Yes, it does support both of them. So new drivers should support both of them to be inline with the API definition?
As Paul pointed out, some old drivers might need to be modified since some applications assume the drivers' fragmentation support.
 
Fragmentation to USB packets is done on a higher level, in function_ecm
and finction_rndis files.


Thanks for pointing this. I'll look how this is being used.
 
Please also look to usb_dc_ep_transfer() implemented for DW and STM32:

https://github.com/zephyrproject-rtos/zephyr/pull/5231

https://github.com/zephyrproject-rtos/zephyr/pull/5214

Will look into it. Thanks.
 
Best regards
Andrei Emeltchenko

Thanks,
Sundar

Join devel@lists.zephyrproject.org to automatically receive all group messages.