tud_hid_report_complete_cb() API

update hid composite to make use of tud_hid_report_complete_cb() for
sending reports when possible.
This commit is contained in:
hathach
2021-02-09 15:57:29 +07:00
parent ecd16cf24b
commit d2b8e591f6
6 changed files with 136 additions and 95 deletions

View File

@@ -123,7 +123,10 @@ TU_ATTR_WEAK bool tud_hid_set_idle_cb(uint8_t idle_rate);
#endif
// TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t itf, );
// Invoked when sent REPORT successfully to host
// Application can use this to send the next report
// Note: For composite reports, report[0] is report ID
TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t itf, uint8_t const* report, uint8_t len);
//--------------------------------------------------------------------+