6 #include "../usb/usb-device.h" 7 #include "../usb/usb-enumerator.h" 11 #include "common/fw/target.h" 20 for(
const auto & device_info : devices) {
21 if(device_info.vid == 0x03E7 && device_info.pid == 0x2150) {
25 if (
const auto&
m =
dev->open(0))
29 auto target_hex = fw_get_target(
size);
32 LOG_ERROR(
"librealsense failed to get T265 FW resource");
34 auto iface =
dev->get_interface(0);
37 auto status =
m->bulk_transfer(endpoint, const_cast<uint8_t*>(target_hex), static_cast<uint32_t>(
size), transfered, 1000);
42 LOG_ERROR(
"Failed to open T265 zero interface");
48 bool tm_boot(
const std::vector<usb_device_info> & devices)
status
Defines return codes that SDK interfaces use. Negative values indicate errors, a zero value indicates...
LOG_INFO("Log message using LOG_INFO()")