Re: USB: Question about usb_write() API
Andrei
Hi,
On Tue, Jan 30, 2018 at 02:31:46PM +0000, Cufi, Carles wrote: + AndreiI think API states it supports both methods: https://github.com/zephyrproject-rtos/zephyr/blob/master/include/usb/usb_device.h#L209 Fragmentation to USB packets is done on a higher level, in function_ecm and finction_rndis files. One more thing to consider is the write callbacks. In most cases, thePlease 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 Best regards Andrei Emeltchenko |
|