ds5-fw-update-device.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 
7 
8 namespace librealsense
9 {
11  {
12  public:
13  ds_update_device(std::shared_ptr<context> ctx, bool register_device_notifications, std::shared_ptr<platform::usb_device> usb_device);
14  virtual ~ds_update_device() = default;
15 
16  void update(const void* fw_image, int fw_image_size, update_progress_callback_ptr = nullptr) const override;
17 
18  protected:
19  virtual const std::string& get_name() const override { return _name; }
20  virtual const std::string& get_product_line() const override { return _product_line; }
21  virtual const std::string& get_serial_number() const override { return _serial_number; }
22  std::string parse_serial_number(const std::vector<uint8_t>& buffer) const;
23 
24  private:
28  };
29 }
virtual ~ds_update_device()=default
GLsizei const GLchar *const * string
GLenum GLfloat * buffer
std::shared_ptr< rs2_update_progress_callback > update_progress_callback_ptr
Definition: src/types.h:1077
std::string parse_serial_number(const std::vector< uint8_t > &buffer) const
void update(const void *fw_image, int fw_image_size, update_progress_callback_ptr=nullptr) const override
ds_update_device(std::shared_ptr< context > ctx, bool register_device_notifications, std::shared_ptr< platform::usb_device > usb_device)
virtual const std::string & get_name() const override
virtual const std::string & get_product_line() const override
virtual const std::string & get_serial_number() const override


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