fw-update-device-interface.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "types.h"
7 #include "core/streaming.h"
8 
9 namespace librealsense
10 {
11  class updatable
12  {
13  public:
14  virtual void enter_update_state() const = 0;
15  virtual std::vector<uint8_t> backup_flash(update_progress_callback_ptr callback) = 0;
16  virtual void update_flash(const std::vector<uint8_t>& image, update_progress_callback_ptr callback, int update_mode) = 0;
17  };
18 
20  {
21  public:
22  virtual void update(const void* fw_image, int fw_image_size, update_progress_callback_ptr = nullptr) const = 0;
23  protected:
24  virtual const std::string& get_name() const = 0;
25  virtual const std::string& get_product_line() const = 0;
26  virtual const std::string& get_serial_number() const = 0;
27  };
28 
31 }
virtual std::vector< uint8_t > backup_flash(update_progress_callback_ptr callback)=0
static int get_serial_number(IOHIDDeviceRef device, wchar_t *buf, size_t len)
Definition: hidapi.cpp:243
GLsizei const GLchar *const * string
GLenum GLenum GLsizei void * image
std::shared_ptr< rs2_update_progress_callback > update_progress_callback_ptr
Definition: src/types.h:1077
void update(rs2::update_device fwu_dev, std::vector< uint8_t > fw_image)
virtual void update_flash(const std::vector< uint8_t > &image, update_progress_callback_ptr callback, int update_mode)=0
def callback(frame)
Definition: t265_stereo.py:91
int get_product_line(const platform::usb_device_info &usb_info)
virtual void enter_update_state() const =0
MAP_EXTENSION(RS2_EXTENSION_POINTS, librealsense::points)


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