Can not read data from Cy7c68013A | Cypress Semiconductor
Can not read data from Cy7c68013A
1, Need I call usb_control_msg() API before calling USB_BULK_READ()?
I did but return value is -116 and code is like below:
usb_control_msg(current_handle, USB_TYPE_VENDOR | USB_RECIP_INTERFACE | USB_ENDPOINT_IN,
buffer, 512, 1000);
2, I call API usb_bulk_read like below:usb_bulk_read(current_handle, 0x81, (char*)buffer, 512, 1000); but return value is -22. Why? And how to fix this?