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

add itf argument to hid API to support multiple instances #678

Merged
merged 2 commits into from
Feb 24, 2021

Conversation

hathach
Copy link
Owner

@hathach hathach commented Feb 24, 2021

Describe the PR
Follow up to #524, this PR remove backward-compatible single ITF callback when CFG_TUD_HID=1. This makes it clearer for user to notice that stack support multiple instance of HID interfaces and simplify the #ifelse in application should it choose to enable multiple HID. Following API signature is changed and required updated in application.

  • tud_hid_descriptor_report_cb()
  • tud_hid_get_report_cb()
  • tud_hid_set_report_cb()
  • tud_hid_boot_mode_cb()
  • tud_hid_set_idle_cb()

following API signature is changed:
- tud_hid_descriptor_report_cb()
- tud_hid_get_report_cb()
- tud_hid_set_report_cb()
- tud_hid_boot_mode_cb()
- tud_hid_set_idle_cb()
@hathach hathach merged commit 63a9e68 into master Feb 24, 2021
@hathach hathach deleted the hid-callback-multiple-instance branch February 24, 2021 08:23
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.

1 participant