summaryrefslogtreecommitdiff
path: root/examples/device/cdc_msc_hid_freertos/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/device/cdc_msc_hid_freertos/src/main.c')
-rw-r--r--examples/device/cdc_msc_hid_freertos/src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_hid_freertos/src/main.c b/examples/device/cdc_msc_hid_freertos/src/main.c
index e4471242f..b912c23e8 100644
--- a/examples/device/cdc_msc_hid_freertos/src/main.c
+++ b/examples/device/cdc_msc_hid_freertos/src/main.c
@@ -259,6 +259,9 @@ void hid_task(void* params)
}
}
+// Invoked when received GET_REPORT control request
+// Application must fill buffer report's content and return its length.
+// Return zero will cause the stack to STALL request
uint16_t tud_hid_get_report_cb(uint8_t report_id, hid_report_type_t report_type, uint8_t* buffer, uint16_t reqlen)
{
// TODO not Implemented
@@ -270,6 +273,8 @@ uint16_t tud_hid_get_report_cb(uint8_t report_id, hid_report_type_t report_type,
return 0;
}
+// Invoked when received SET_REPORT control request or
+// received data on OUT endpoint ( Report ID = 0, Type = 0 )
void tud_hid_set_report_cb(uint8_t report_id, hid_report_type_t report_type, uint8_t const* buffer, uint16_t bufsize)
{
// TODO not Implemented