Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
librealsense::l500_update_device Class Reference

#include <l500-fw-update-device.h>

Inheritance diagram for librealsense::l500_update_device:
Inheritance graph
[legend]

Classes

struct  serial_number_data
 

Public Member Functions

 l500_update_device (std::shared_ptr< context > ctx, bool register_device_notifications, std::shared_ptr< platform::usb_device > usb_device)
 
void update (const void *fw_image, int fw_image_size, update_progress_callback_ptr=nullptr) const override
 
virtual ~l500_update_device ()=default
 
- Public Member Functions inherited from librealsense::update_device
virtual bool compress_while_record () const override
 
virtual bool contradicts (const stream_profile_interface *a, const std::vector< stream_profile > &others) const override
 
virtual std::shared_ptr< matchercreate_matcher (const frame_holder &frame) const override
 
virtual void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
virtual void enable_recording (std::function< void(const info_interface &)> recording_function) override
 
virtual std::shared_ptr< contextget_context () const override
 
virtual platform::backend_device_group get_device_data () const override
 
virtual std::pair< uint32_t, rs2_extrinsicsget_extrinsics (const stream_interface &stream) const override
 
virtual const std::stringget_info (rs2_camera_info info) const override
 
virtual std::vector< tagged_profileget_profiles_tags () const override
 
virtual sensor_interfaceget_sensor (size_t i) override
 
virtual const sensor_interfaceget_sensor (size_t i) const override
 
virtual size_t get_sensors_count () const override
 
virtual void hardware_reset () override
 
virtual bool is_valid () const override
 
virtual bool supports_info (rs2_camera_info info) const override
 
virtual void tag_profiles (stream_profiles profiles) const override
 
 update_device (const std::shared_ptr< context > &ctx, bool register_device_notifications, std::shared_ptr< platform::usb_device > usb_device)
 
virtual ~update_device ()
 
- Public Member Functions inherited from librealsense::device_interface
virtual ~device_interface ()=default
 
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
 

Static Public Attributes

static const uint16_t DFU_VERSION_MASK = 0xFE
 
static const uint16_t DFU_VERSION_VALUE = 0x4A
 

Protected Member Functions

virtual const std::stringget_name () const override
 
virtual const std::stringget_product_line () const override
 
virtual const std::stringget_serial_number () const override
 
std::string parse_serial_number (const std::vector< uint8_t > &buffer) const
 
- Protected Member Functions inherited from librealsense::update_device
void detach (std::shared_ptr< platform::usb_messenger > messenger) const
 
rs2_dfu_state get_dfu_state (std::shared_ptr< platform::usb_messenger > messenger) const
 
void read_device_info (std::shared_ptr< platform::usb_messenger > messenger)
 
bool wait_for_state (std::shared_ptr< platform::usb_messenger > messenger, const rs2_dfu_state state, size_t timeout=1000) const
 

Private Attributes

std::string _name
 
std::string _product_line
 
std::string _serial_number
 

Additional Inherited Members

- Protected Attributes inherited from librealsense::update_device
const std::shared_ptr< context_context
 
std::string _highest_fw_version
 
bool _is_dfu_locked = false
 
std::string _last_fw_version
 
std::string _physical_port
 
std::vector< uint8_t_serial_number_buffer
 
const platform::rs_usb_device _usb_device
 

Detailed Description

Definition at line 10 of file l500-fw-update-device.h.

Constructor & Destructor Documentation

librealsense::l500_update_device::l500_update_device ( std::shared_ptr< context ctx,
bool  register_device_notifications,
std::shared_ptr< platform::usb_device usb_device 
)

Definition at line 9 of file l500-fw-update-device.cpp.

virtual librealsense::l500_update_device::~l500_update_device ( )
virtualdefault

Member Function Documentation

virtual const std::string& librealsense::l500_update_device::get_name ( ) const
inlineoverrideprotectedvirtual

Implements librealsense::update_device_interface.

Definition at line 30 of file l500-fw-update-device.h.

virtual const std::string& librealsense::l500_update_device::get_product_line ( ) const
inlineoverrideprotectedvirtual

Implements librealsense::update_device_interface.

Definition at line 31 of file l500-fw-update-device.h.

virtual const std::string& librealsense::l500_update_device::get_serial_number ( ) const
inlineoverrideprotectedvirtual

Implements librealsense::update_device_interface.

Definition at line 32 of file l500-fw-update-device.h.

std::string librealsense::l500_update_device::parse_serial_number ( const std::vector< uint8_t > &  buffer) const
protected

Definition at line 22 of file l500-fw-update-device.cpp.

void librealsense::l500_update_device::update ( const void fw_image,
int  fw_image_size,
update_progress_callback_ptr  callback = nullptr 
) const
overridevirtual

Reimplemented from librealsense::update_device.

Definition at line 17 of file l500-fw-update-device.cpp.

Member Data Documentation

std::string librealsense::l500_update_device::_name
private

Definition at line 36 of file l500-fw-update-device.h.

std::string librealsense::l500_update_device::_product_line
private

Definition at line 37 of file l500-fw-update-device.h.

std::string librealsense::l500_update_device::_serial_number
private

Definition at line 38 of file l500-fw-update-device.h.

const uint16_t librealsense::l500_update_device::DFU_VERSION_MASK = 0xFE
static

Definition at line 13 of file l500-fw-update-device.h.

const uint16_t librealsense::l500_update_device::DFU_VERSION_VALUE = 0x4A
static

Definition at line 14 of file l500-fw-update-device.h.


The documentation for this class was generated from the following files:


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