Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host edpt xfer #1403

Merged
merged 22 commits into from
Mar 19, 2022
Merged

Host edpt xfer #1403

merged 22 commits into from
Mar 19, 2022

Conversation

hathach
Copy link
Owner

@hathach hathach commented Mar 19, 2022

Describe the PR

  • More major changes for host stack transfer, include support for generic endpoint transfer.
  • tuh_control_xfer(), tuh_edpt_xfer() and callback follow similar API with 1 unique tuh_xfer_t following the libusb convention https://libusb.sourceforge.io/api-1.0/group__libusb__syncio.html
    • required CFG_TUH_API_EDPT_XFER=1 since it requires 8 more bytes per endpoint
    • does not requires to alloc or keep the xfer struct memory lasting for transfer to complete (usbh will keep a copy of required fields).
    • to save sram, not all xfer struct is available for use in callback
    • timeout not supported yet (maybe later).

@hathach hathach merged commit ae531a7 into master Mar 19, 2022
@hathach hathach deleted the host-edpt-xfer branch March 19, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants