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

Rework host control xfer #1397

Merged
merged 6 commits into from Mar 15, 2022
Merged

Rework host control xfer #1397

merged 6 commits into from Mar 15, 2022

Conversation

hathach
Copy link
Owner

@hathach hathach commented Mar 14, 2022

Describe the PR

  • change API of tuh_control_xfer and its callback
  • rename tuh_control_complete_cb_t to tuh_control_xfer_cb_t
  • add user argument to control callback
  • rework usbh enumeration process using user arg from control transfer as state
  • add synchronous version of all get descriptor API
  • update bare example to use sync API for string descriptor
  • change order of index, language_id in tuh_descriptor_get_string() to
    match similar API of libusb
  • add index to tuh_descriptor_get_hid_report()

- change API of tuh_control_xfer and its callback
- rename tuh_control_complete_cb_t to tuh_control_xfer_cb_t
- add user argument to control callback
- migrate usbh and hub
- add synchronous version of all get descriptor API
- update bare example to use sync API for string descriptor
- change order of index, language_id in tuh_descriptor_get_string() to
match similar API of libusb
- add index to tuh_descriptor_get_hid_report()
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.

None yet

1 participant