diff options
| author | hathach <[email protected]> | 2019-05-02 14:41:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-02 14:41:21 +0700 |
| commit | d6a47a89f229916f6d2b38c620bc6bbd99c9b656 (patch) | |
| tree | 1c81c7c65ed82c92447c4e9ffa5b105c9d74d884 /examples/device/cdc_msc_hid/src | |
| parent | f9d9eebfe1dbf462a69e7d3a967b2ad103ae2277 (diff) | |
clean up
Diffstat (limited to 'examples/device/cdc_msc_hid/src')
| -rw-r--r-- | examples/device/cdc_msc_hid/src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_hid/src/main.c b/examples/device/cdc_msc_hid/src/main.c index 1a954f21a..f743026c2 100644 --- a/examples/device/cdc_msc_hid/src/main.c +++ b/examples/device/cdc_msc_hid/src/main.c @@ -228,6 +228,9 @@ void hid_task(void) } } +// 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 @@ -239,6 +242,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 |
