Skip to content

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

Merged
hathach merged 2 commits into
masterfrom
hid-callback-multiple-instance
Feb 24, 2021
Merged

add itf argument to hid API to support multiple instances#678
hathach merged 2 commits into
masterfrom
hid-callback-multiple-instance

Conversation

@hathach
Copy link
Copy Markdown
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