How to bulkTransfer() read from USB_DIR_OUT?

Viewed 471

My USB device has both IN and OUT UsbEndpoints, but communicates only on the OUT endpoint. I send a message to it and device responds on the same endpoint.

I need to communicate synchronously, so that means using bulkTransfer(), right? bulkTransfer() determines direction by UsbEndpoint.getDirection() which cannot be changed. How should I use bulkTransfer() to read from the endpoint with OUT direction?

0 Answers
Related