6 #include "../usb/usb-enumerator.h" 7 #include "../hw-monitor.h" 11 #include "../uvc/uvc-types.h" 19 #define CLEAR_FEATURE 0x01 20 #define UVC_FEATURE 0x02 27 std::shared_ptr<handle_usbhost>
handle)
28 : _device(device), _handle(handle)
44 int ep = endpoint->get_address();
49 LOG_INFO(
"USB pipe " << ep <<
" reset successfully");
61 LOG_WARNING(
"control_transfer returned error, index: " << index <<
", error: " << strerr <<
", number: " << (
int)errno);
74 LOG_WARNING(
"bulk_transfer returned error, endpoint: " << (
int)endpoint->get_address() <<
", error: " << strerr <<
", number: " << (int)errno);
83 auto rv = std::make_shared<usb_request_usbhost>(
_device, endpoint);
90 return _device->submit_request(request);
95 return _device->cancel_request(request);
GLuint64 GLenum void * handle
GLsizei const GLchar *const * string
LOG_INFO("Log message using LOG_INFO()")
int usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void *buffer, int length, unsigned int timeout)
GLenum GLuint GLenum GLsizei length
int usb_device_bulk_transfer(struct usb_device *device, int endpoint, void *buffer, unsigned int length, unsigned int timeout)