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

Method setVideoTransferFunctionState

src/usb_control.cpp:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286UsbControl::ResultCode UsbControl::setVideoTransferFunctionState(UsbControl::State state)
287{
288 bool suspend = state == Enabled ? false : true;
289 int r = libusb_ext::set_feature_function_suspend(handle_, timeout_, suspend, suspend);
290
291 UsbControl::ResultCode code;
292 CHECK_LIBUSB_RESULT(code, r) << "failed to set video transfer function state! " << WRITE_LIBUSB_ERROR(r);
293 return code;
294}
295
296UsbControl::ResultCode UsbControl::setIrInterfaceState(UsbControl::State state)
297{

Callers 3

openMethod · 0.80
startStreamsMethod · 0.80
stopMethod · 0.80

Calls 1

Tested by

no test coverage detected