Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::platform::usb_device_libusb Class Reference

#include <device-libusb.h>

Inheritance diagram for librealsense::platform::usb_device_libusb:
Inheritance graph
[legend]

Public Member Functions

virtual const std::vector< usb_descriptorget_descriptors () const override
 
libusb_device * get_device ()
 
virtual const usb_device_info get_info () const override
 
virtual const rs_usb_interface get_interface (uint8_t interface_number) const override
 
virtual const std::vector< rs_usb_interfaceget_interfaces () const override
 
virtual const rs_usb_messenger open (uint8_t interface_number) override
 
 usb_device_libusb (libusb_device *device, const libusb_device_descriptor &desc, const usb_device_info &info, std::shared_ptr< usb_context > context)
 
virtual ~usb_device_libusb ()
 
- Public Member Functions inherited from librealsense::platform::usb_device
virtual ~usb_device ()=default
 

Private Member Functions

std::shared_ptr< handle_libusbget_handle (uint8_t interface_number)
 

Private Attributes

std::shared_ptr< usb_context_context
 
std::vector< usb_descriptor_descriptors
 
libusb_device * _device
 
const usb_device_info _info
 
std::vector< std::shared_ptr< usb_interface > > _interfaces
 
libusb_device_descriptor _usb_device_descriptor
 

Detailed Description

Definition at line 12 of file device-libusb.h.

Constructor & Destructor Documentation

librealsense::platform::usb_device_libusb::usb_device_libusb ( libusb_device *  device,
const libusb_device_descriptor &  desc,
const usb_device_info info,
std::shared_ptr< usb_context context 
)

Definition at line 12 of file device-libusb.cpp.

librealsense::platform::usb_device_libusb::~usb_device_libusb ( )
virtual

Definition at line 71 of file device-libusb.cpp.

Member Function Documentation

virtual const std::vector<usb_descriptor> librealsense::platform::usb_device_libusb::get_descriptors ( ) const
inlineoverridevirtual

Implements librealsense::platform::usb_device.

Definition at line 22 of file device-libusb.h.

libusb_device* librealsense::platform::usb_device_libusb::get_device ( )
inline

Definition at line 23 of file device-libusb.h.

std::shared_ptr< handle_libusb > librealsense::platform::usb_device_libusb::get_handle ( uint8_t  interface_number)
private

Definition at line 85 of file device-libusb.cpp.

virtual const usb_device_info librealsense::platform::usb_device_libusb::get_info ( ) const
inlineoverridevirtual

Implements librealsense::platform::usb_device.

Definition at line 18 of file device-libusb.h.

const rs_usb_interface librealsense::platform::usb_device_libusb::get_interface ( uint8_t  interface_number) const
overridevirtual

Implements librealsense::platform::usb_device.

Definition at line 76 of file device-libusb.cpp.

virtual const std::vector<rs_usb_interface> librealsense::platform::usb_device_libusb::get_interfaces ( ) const
inlineoverridevirtual

Implements librealsense::platform::usb_device.

Definition at line 19 of file device-libusb.h.

const std::shared_ptr< usb_messenger > librealsense::platform::usb_device_libusb::open ( uint8_t  interface_number)
overridevirtual

Implements librealsense::platform::usb_device.

Definition at line 101 of file device-libusb.cpp.

Member Data Documentation

std::shared_ptr<usb_context> librealsense::platform::usb_device_libusb::_context
private

Definition at line 31 of file device-libusb.h.

std::vector<usb_descriptor> librealsense::platform::usb_device_libusb::_descriptors
private

Definition at line 30 of file device-libusb.h.

libusb_device* librealsense::platform::usb_device_libusb::_device
private

Definition at line 26 of file device-libusb.h.

const usb_device_info librealsense::platform::usb_device_libusb::_info
private

Definition at line 28 of file device-libusb.h.

std::vector<std::shared_ptr<usb_interface> > librealsense::platform::usb_device_libusb::_interfaces
private

Definition at line 29 of file device-libusb.h.

libusb_device_descriptor librealsense::platform::usb_device_libusb::_usb_device_descriptor
private

Definition at line 27 of file device-libusb.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:39