Macros | Functions
rs-fw-update.cpp File Reference
#include <librealsense2/rs.hpp>
#include <vector>
#include <map>
#include <string>
#include <iostream>
#include <fstream>
#include <thread>
#include <mutex>
#include <chrono>
#include <condition_variable>
#include "tclap/CmdLine.h"
#include "tclap/ValueArg.h"
Include dependency graph for rs-fw-update.cpp:

Go to the source code of this file.

Macros

#define WAIT_FOR_DEVICE_TIMEOUT   10
 

Functions

void list_devices (rs2::context ctx)
 
int main (int argc, char **argv)
 
void print_device_info (rs2::device d)
 
std::vector< uint8_tread_firmware_data (bool is_set, const std::string &file_path)
 
std::vector< uint8_tread_fw_file (std::string file_path)
 
void update (rs2::update_device fwu_dev, std::vector< uint8_t > fw_image)
 

Macro Definition Documentation

#define WAIT_FOR_DEVICE_TIMEOUT   10

Definition at line 21 of file rs-fw-update.cpp.

Function Documentation

void list_devices ( rs2::context  ctx)

Definition at line 86 of file rs-fw-update.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 106 of file rs-fw-update.cpp.

void print_device_info ( rs2::device  d)

Definition at line 40 of file rs-fw-update.cpp.

std::vector<uint8_t> read_firmware_data ( bool  is_set,
const std::string file_path 
)

Definition at line 57 of file rs-fw-update.cpp.

std::vector<uint8_t> read_fw_file ( std::string  file_path)

Definition at line 23 of file rs-fw-update.cpp.

void update ( rs2::update_device  fwu_dev,
std::vector< uint8_t fw_image 
)

Definition at line 75 of file rs-fw-update.cpp.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:28