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

Method getIrMaxIsoPacketSize

src/usb_control.cpp:307–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306
307UsbControl::ResultCode UsbControl::getIrMaxIsoPacketSize(int &size)
308{
309 size = 0;
310 libusb_device *dev = libusb_get_device(handle_);
311 int r = libusb_ext::get_max_iso_packet_size(dev, 1, 1, 0x84);
312
313 if(r > LIBUSB_SUCCESS)
314 {
315 size = r;
316 r = LIBUSB_SUCCESS;
317 }
318
319 UsbControl::ResultCode code;
320 CHECK_LIBUSB_RESULT(code, r) << "failed to get max iso packet size! " << WRITE_LIBUSB_ERROR(r);
321 return code;
322}
323
324} /* namespace protocol */
325} /* namespace libfreenect2 */

Callers 1

openMethod · 0.80

Calls 1

get_max_iso_packet_sizeFunction · 0.85

Tested by

no test coverage detected