Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
librealsense::update_device Class Reference

#include <fw-update-device.h>

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

Public Member Functions

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
 
virtual void update (const void *fw_image, int fw_image_size, update_progress_callback_ptr=nullptr) 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
 

Protected Member Functions

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
 
- Protected Member Functions inherited from librealsense::update_device_interface
virtual const std::stringget_name () const =0
 
virtual const std::stringget_product_line () const =0
 
virtual const std::stringget_serial_number () const =0
 

Protected Attributes

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 97 of file fw-update-device.h.

Constructor & Destructor Documentation

librealsense::update_device::update_device ( const std::shared_ptr< context > &  ctx,
bool  register_device_notifications,
std::shared_ptr< platform::usb_device usb_device 
)

Definition at line 112 of file fw-update-device.cpp.

librealsense::update_device::~update_device ( )
virtual

Definition at line 134 of file fw-update-device.cpp.

Member Function Documentation

bool librealsense::update_device::compress_while_record ( ) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 265 of file fw-update-device.cpp.

virtual bool librealsense::update_device::contradicts ( const stream_profile_interface a,
const std::vector< stream_profile > &  others 
) const
inlineoverridevirtual

Implements librealsense::device_interface.

Definition at line 129 of file fw-update-device.h.

std::shared_ptr< matcher > librealsense::update_device::create_matcher ( const frame_holder frame) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 230 of file fw-update-device.cpp.

void librealsense::update_device::create_snapshot ( std::shared_ptr< info_interface > &  snapshot) const
overridevirtual

Create a snapshot of the deriving extension. A snapshot of T is a reflection of the state and memory of T at the time of the call

Implements librealsense::recordable< info_interface >.

Definition at line 298 of file fw-update-device.cpp.

void librealsense::update_device::detach ( std::shared_ptr< platform::usb_messenger messenger) const
protected

Definition at line 46 of file fw-update-device.cpp.

void librealsense::update_device::enable_recording ( std::function< void(const info_interface &)>  recording_function)
overridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< info_interface >.

Definition at line 302 of file fw-update-device.cpp.

std::shared_ptr< context > librealsense::update_device::get_context ( ) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 235 of file fw-update-device.cpp.

platform::backend_device_group librealsense::update_device::get_device_data ( ) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 240 of file fw-update-device.cpp.

rs2_dfu_state librealsense::update_device::get_dfu_state ( std::shared_ptr< platform::usb_messenger messenger) const
protected

Definition at line 32 of file fw-update-device.cpp.

std::pair< uint32_t, rs2_extrinsics > librealsense::update_device::get_extrinsics ( const stream_interface stream) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 245 of file fw-update-device.cpp.

const std::string & librealsense::update_device::get_info ( rs2_camera_info  info) const
overridevirtual

Implements librealsense::info_interface.

Definition at line 270 of file fw-update-device.cpp.

std::vector< tagged_profile > librealsense::update_device::get_profiles_tags ( ) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 255 of file fw-update-device.cpp.

sensor_interface & librealsense::update_device::get_sensor ( size_t  i)
overridevirtual

Implements librealsense::device_interface.

Definition at line 210 of file fw-update-device.cpp.

const sensor_interface & librealsense::update_device::get_sensor ( size_t  i) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 215 of file fw-update-device.cpp.

size_t librealsense::update_device::get_sensors_count ( ) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 220 of file fw-update-device.cpp.

void librealsense::update_device::hardware_reset ( )
overridevirtual

Implements librealsense::device_interface.

Definition at line 225 of file fw-update-device.cpp.

bool librealsense::update_device::is_valid ( ) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 250 of file fw-update-device.cpp.

void librealsense::update_device::read_device_info ( std::shared_ptr< platform::usb_messenger messenger)
protected

Definition at line 55 of file fw-update-device.cpp.

bool librealsense::update_device::supports_info ( rs2_camera_info  info) const
overridevirtual

Implements librealsense::info_interface.

Definition at line 283 of file fw-update-device.cpp.

void librealsense::update_device::tag_profiles ( stream_profiles  profiles) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 260 of file fw-update-device.cpp.

void librealsense::update_device::update ( const void fw_image,
int  fw_image_size,
update_progress_callback_ptr  update_progress_callback = nullptr 
) const
overridevirtual
bool librealsense::update_device::wait_for_state ( std::shared_ptr< platform::usb_messenger messenger,
const rs2_dfu_state  state,
size_t  timeout = 1000 
) const
protected

Definition at line 81 of file fw-update-device.cpp.

Member Data Documentation

const std::shared_ptr<context> librealsense::update_device::_context
protected

Definition at line 148 of file fw-update-device.h.

std::string librealsense::update_device::_highest_fw_version
protected

Definition at line 151 of file fw-update-device.h.

bool librealsense::update_device::_is_dfu_locked = false
protected

Definition at line 154 of file fw-update-device.h.

std::string librealsense::update_device::_last_fw_version
protected

Definition at line 152 of file fw-update-device.h.

std::string librealsense::update_device::_physical_port
protected

Definition at line 153 of file fw-update-device.h.

std::vector<uint8_t> librealsense::update_device::_serial_number_buffer
protected

Definition at line 150 of file fw-update-device.h.

const platform::rs_usb_device librealsense::update_device::_usb_device
protected

Definition at line 149 of file 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:38