usb_bulk_read

Name

usb_bulk_read -- Read data from a bulk endpoint

Description

int usb_bulk_read(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout);

usb_bulk_read performs a bulk read request to the endpoint specified by ep. Returns number of bytes read on success or < 0 on error.