MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / set_sel

Function set_sel

src/usb_control.cpp:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 int set_sel(libusb_device_handle *handle, int timeout, uint8_t u1sel, uint8_t u1pel, uint8_t u2sel, uint8_t u2pel)
86 {
87 // for details see USB 3.1 r1 spec section 9.4.12
88
89 uint8_t bmRequestType = LIBUSB_RECIPIENT_DEVICE;
90 uint8_t bRequest = LIBUSB_REQUEST_SET_SEL;
91 uint16_t wValue = 0;
92 uint16_t wIndex = 0;
93 uint16_t wLength = 6;
94 unsigned char data[6] = { 0x55, 0, 0x55, 0, 0, 0 };
95
96 return libusb_control_transfer(handle, bmRequestType, bRequest, wValue, wIndex, data, wLength, timeout);
97 }
98
99 template<typename TFeatureSelector>
100 int set_feature(libusb_device_handle *handle, int timeout, TFeatureSelector feature_selector)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected