l500-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  static const uint16_t DFU_VERSION_MASK = 0xFE;
14  static const uint16_t DFU_VERSION_VALUE = 0x4A; // On Units with old DFU payload can be 74/75 decimal
15 
16  // The L515 device EEPROM has different bytes order then D4xx device.
17  // this struct overrides the generic serial_number_data struct at fw-update-device.h
19  {
22  };
23 
24  l500_update_device(std::shared_ptr<context> ctx, bool register_device_notifications, std::shared_ptr<platform::usb_device> usb_device);
25  virtual ~l500_update_device() = default;
26 
27  void update(const void* fw_image, int fw_image_size, update_progress_callback_ptr = nullptr) const override;
28 
29  protected:
30  virtual const std::string& get_name() const override { return _name; }
31  virtual const std::string& get_product_line() const override { return _product_line; }
32  virtual const std::string& get_serial_number() const override { return _serial_number; }
33  std::string parse_serial_number(const std::vector<uint8_t>& buffer) const;
34 
35  private:
39  };
40 }
unsigned short uint16_t
Definition: stdint.h:79
GLsizei const GLchar *const * string
l500_update_device(std::shared_ptr< context > ctx, bool register_device_notifications, std::shared_ptr< platform::usb_device > usb_device)
unsigned char uint8_t
Definition: stdint.h:78
GLenum GLfloat * buffer
std::shared_ptr< rs2_update_progress_callback > update_progress_callback_ptr
Definition: src/types.h:1077
virtual const std::string & get_name() const override
virtual const std::string & get_product_line() const override
virtual ~l500_update_device()=default
void update(const void *fw_image, int fw_image_size, update_progress_callback_ptr=nullptr) const override
std::string parse_serial_number(const std::vector< uint8_t > &buffer) const
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:21