#include <l500-fw-update-device.h>
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< matcher > | create_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< context > | get_context () const override |
virtual platform::backend_device_group | get_device_data () const override |
virtual std::pair< uint32_t, rs2_extrinsics > | get_extrinsics (const stream_interface &stream) const override |
virtual const std::string & | get_info (rs2_camera_info info) const override |
virtual std::vector< tagged_profile > | get_profiles_tags () const override |
virtual sensor_interface & | get_sensor (size_t i) override |
virtual const sensor_interface & | get_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::string & | get_name () const override |
virtual const std::string & | get_product_line () const override |
virtual const std::string & | get_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 |
Definition at line 10 of file l500-fw-update-device.h.
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.
|
virtualdefault |
|
inlineoverrideprotectedvirtual |
Implements librealsense::update_device_interface.
Definition at line 30 of file l500-fw-update-device.h.
|
inlineoverrideprotectedvirtual |
Implements librealsense::update_device_interface.
Definition at line 31 of file l500-fw-update-device.h.
|
inlineoverrideprotectedvirtual |
Implements librealsense::update_device_interface.
Definition at line 32 of file l500-fw-update-device.h.
|
protected |
Definition at line 22 of file l500-fw-update-device.cpp.
|
overridevirtual |
Reimplemented from librealsense::update_device.
Definition at line 17 of file l500-fw-update-device.cpp.
|
private |
Definition at line 36 of file l500-fw-update-device.h.
|
private |
Definition at line 37 of file l500-fw-update-device.h.
|
private |
Definition at line 38 of file l500-fw-update-device.h.
|
static |
Definition at line 13 of file l500-fw-update-device.h.
|
static |
Definition at line 14 of file l500-fw-update-device.h.