add tuh_vid_pid_get()

complete Sony PS4 dualshock controller example
This commit is contained in:
hathach
2021-08-24 19:10:23 +07:00
parent 88bb8fac3d
commit 3c0c051df1
15 changed files with 569 additions and 49 deletions

View File

@@ -228,7 +228,7 @@ bool hidh_xfer_cb(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t result, uint3
if ( dir == TUSB_DIR_IN )
{
TU_LOG2(" Get Report callback (%u, %u)\r\n", dev_addr, instance);
TU_LOG1_MEM(hid_itf->epin_buf, 8, 2);
TU_LOG3_MEM(hid_itf->epin_buf, xferred_bytes, 2);
tuh_hid_report_received_cb(dev_addr, instance, hid_itf->epin_buf, xferred_bytes);
}else
{