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

#include <hw-monitor.h>

Classes

struct  hwmon_cmd
 
struct  hwmon_cmd_details
 

Public Member Functions

void get_gvd (size_t sz, unsigned char *gvd, uint8_t gvd_cmd) const
 
template<typename T >
get_gvd_field (const std::vector< uint8_t > &data, size_t index)
 
 hw_monitor (std::shared_ptr< locked_transfer > locked_transfer)
 
bool is_camera_locked (uint8_t gvd_cmd, uint32_t offset) const
 
std::vector< uint8_tsend (std::vector< uint8_t > const &data) const
 
std::vector< uint8_tsend (command cmd, hwmon_response *=nullptr, bool locked_transfer=false) const
 

Static Public Member Functions

static void fill_usb_buffer (int opCodeNumber, int p1, int p2, int p3, int p4, uint8_t const *data, int dataLength, uint8_t *bufferToSend, int &length)
 
static std::string get_firmware_version_string (const std::vector< uint8_t > &buff, size_t index, size_t length=4)
 
static std::string get_module_serial_string (const std::vector< uint8_t > &buff, size_t index, size_t length=6)
 

Private Member Functions

void execute_usb_command (uint8_t *out, size_t outSize, uint32_t &op, uint8_t *in, size_t &inSize) const
 
void send_hw_monitor_command (hwmon_cmd_details &details) const
 

Static Private Member Functions

static void update_cmd_details (hwmon_cmd_details &details, size_t receivedCmdLen, unsigned char *outputBuffer)
 

Private Attributes

std::shared_ptr< locked_transfer_locked_transfer
 

Detailed Description

Definition at line 257 of file hw-monitor.h.

Constructor & Destructor Documentation

librealsense::hw_monitor::hw_monitor ( std::shared_ptr< locked_transfer locked_transfer)
inlineexplicit

Definition at line 319 of file hw-monitor.h.

Member Function Documentation

void librealsense::hw_monitor::execute_usb_command ( uint8_t out,
size_t  outSize,
uint32_t op,
uint8_t in,
size_t inSize 
) const
private

Definition at line 65 of file hw-monitor.cpp.

void librealsense::hw_monitor::fill_usb_buffer ( int  opCodeNumber,
int  p1,
int  p2,
int  p3,
int  p4,
uint8_t const *  data,
int  dataLength,
uint8_t bufferToSend,
int &  length 
)
static

Definition at line 31 of file hw-monitor.cpp.

std::string librealsense::hw_monitor::get_firmware_version_string ( const std::vector< uint8_t > &  buff,
size_t  index,
size_t  length = 4 
)
static

Definition at line 9 of file hw-monitor.cpp.

void librealsense::hw_monitor::get_gvd ( size_t  sz,
unsigned char *  gvd,
uint8_t  gvd_cmd 
) const

Definition at line 191 of file hw-monitor.cpp.

template<typename T >
T librealsense::hw_monitor::get_gvd_field ( const std::vector< uint8_t > &  data,
size_t  index 
)
inline

Definition at line 341 of file hw-monitor.h.

std::string librealsense::hw_monitor::get_module_serial_string ( const std::vector< uint8_t > &  buff,
size_t  index,
size_t  length = 6 
)
static

Definition at line 22 of file hw-monitor.cpp.

bool librealsense::hw_monitor::is_camera_locked ( uint8_t  gvd_cmd,
uint32_t  offset 
) const

Definition at line 199 of file hw-monitor.cpp.

std::vector< uint8_t > librealsense::hw_monitor::send ( std::vector< uint8_t > const &  data) const

Definition at line 115 of file hw-monitor.cpp.

std::vector< uint8_t > librealsense::hw_monitor::send ( command  cmd,
hwmon_response p_response = nullptr,
bool  locked_transfer = false 
) const

Definition at line 121 of file hw-monitor.cpp.

void librealsense::hw_monitor::send_hw_monitor_command ( hwmon_cmd_details details) const
private

Definition at line 104 of file hw-monitor.cpp.

void librealsense::hw_monitor::update_cmd_details ( hwmon_cmd_details details,
size_t  receivedCmdLen,
unsigned char *  outputBuffer 
)
staticprivate

Definition at line 88 of file hw-monitor.cpp.

Member Data Documentation

std::shared_ptr<locked_transfer> librealsense::hw_monitor::_locked_transfer
private

Definition at line 317 of file hw-monitor.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