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

Method releaseInterfaces

src/usb_control.cpp:234–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234UsbControl::ResultCode UsbControl::releaseInterfaces()
235{
236 UsbControl::ResultCode code = Success;
237 int r;
238
239 r = libusb_release_interface(handle_, ControlAndRgbInterfaceId);
240 CHECK_LIBUSB_RESULT(code, r) << "failed to release interface with ControlAndRgbInterfaceId(="<< ControlAndRgbInterfaceId << ")! " << WRITE_LIBUSB_ERROR(r);
241
242 if(code == Success)
243 {
244 r = libusb_release_interface(handle_, IrInterfaceId);
245 CHECK_LIBUSB_RESULT(code, r) << "failed to release interface with IrInterfaceId(="<< IrInterfaceId << ")! " << WRITE_LIBUSB_ERROR(r);
246 }
247
248 return code;
249}
250
251UsbControl::ResultCode UsbControl::setIsochronousDelay()
252{

Callers 1

closeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected