Classes | Namespaces | Macros | Typedefs | Enumerations | Variables
usb-types.h File Reference
#include <stdint.h>
#include <sstream>
#include <string>
#include <map>
#include <vector>
Include dependency graph for usb-types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  librealsense::platform::usb_config_descriptor
 
struct  librealsense::platform::usb_descriptor
 
struct  librealsense::platform::usb_device_info
 
struct  librealsense::platform::usb_interface_descriptor
 

Namespaces

 librealsense
 
 librealsense::platform
 

Macros

#define USB_DT_BOS   0x0f
 
#define USB_DT_CONFIG   0x02
 
#define USB_DT_CS_CONFIG   (USB_TYPE_CLASS | USB_DT_CONFIG)
 
#define USB_DT_CS_DEVICE   (USB_TYPE_CLASS | USB_DT_DEVICE)
 
#define USB_DT_CS_ENDPOINT   (USB_TYPE_CLASS | USB_DT_ENDPOINT)
 
#define USB_DT_CS_INTERFACE   (USB_TYPE_CLASS | USB_DT_INTERFACE)
 
#define USB_DT_CS_RADIO_CONTROL   0x23
 
#define USB_DT_CS_STRING   (USB_TYPE_CLASS | USB_DT_STRING)
 
#define USB_DT_DEBUG   0x0a
 
#define USB_DT_DEVICE   0x01
 
#define USB_DT_DEVICE_CAPABILITY   0x10
 
#define USB_DT_DEVICE_QUALIFIER   0x06
 
#define USB_DT_ENCRYPTION_TYPE   0x0e
 
#define USB_DT_ENDPOINT   0x05
 
#define USB_DT_INTERFACE   0x04
 
#define USB_DT_INTERFACE_ASSOCIATION   0x0b
 
#define USB_DT_INTERFACE_POWER   0x08
 
#define USB_DT_KEY   0x0d
 
#define USB_DT_OTG   0x09
 
#define USB_DT_OTHER_SPEED_CONFIG   0x07
 
#define USB_DT_PIPE_USAGE   0x24
 
#define USB_DT_RPIPE   0x22
 
#define USB_DT_SECURITY   0x0c
 
#define USB_DT_SS_ENDPOINT_COMP   0x30
 
#define USB_DT_SSP_ISOC_ENDPOINT_COMP   0x31
 
#define USB_DT_STRING   0x03
 
#define USB_DT_WIRE_ADAPTER   0x21
 
#define USB_DT_WIRELESS_ENDPOINT_COMP   0x11
 

Typedefs

typedef enum librealsense::platform::_endpoint_direction librealsense::platform::endpoint_direction
 
typedef enum librealsense::platform::_endpoint_type librealsense::platform::endpoint_type
 
typedef enum librealsense::platform::_usb_class librealsense::platform::usb_class
 
typedef enum librealsense::platform::_usb_status librealsense::platform::usb_status
 
typedef enum librealsense::platform::_usb_subclass librealsense::platform::usb_subclass
 

Enumerations

enum  librealsense::platform::_endpoint_direction { librealsense::platform::RS2_USB_ENDPOINT_DIRECTION_WRITE = 0, librealsense::platform::RS2_USB_ENDPOINT_DIRECTION_READ = 0x80 }
 
enum  librealsense::platform::_endpoint_type { librealsense::platform::RS2_USB_ENDPOINT_CONTROL, librealsense::platform::RS2_USB_ENDPOINT_ISOCHRONOUS, librealsense::platform::RS2_USB_ENDPOINT_BULK, librealsense::platform::RS2_USB_ENDPOINT_INTERRUPT }
 
enum  librealsense::platform::_usb_class {
  librealsense::platform::RS2_USB_CLASS_UNSPECIFIED = 0x00, librealsense::platform::RS2_USB_CLASS_AUDIO = 0x01, librealsense::platform::RS2_USB_CLASS_COM = 0x02, librealsense::platform::RS2_USB_CLASS_HID = 0x03,
  librealsense::platform::RS2_USB_CLASS_PID = 0x05, librealsense::platform::RS2_USB_CLASS_IMAGE = 0x06, librealsense::platform::RS2_USB_CLASS_PRINTER = 0x07, librealsense::platform::RS2_USB_CLASS_MASS_STORAGE = 0x08,
  librealsense::platform::RS2_USB_CLASS_HUB = 0x09, librealsense::platform::RS2_USB_CLASS_CDC_DATA = 0x0A, librealsense::platform::RS2_USB_CLASS_SMART_CARD = 0x0B, librealsense::platform::RS2_USB_CLASS_CONTENT_SECURITY = 0x0D,
  librealsense::platform::RS2_USB_CLASS_VIDEO = 0x0E, librealsense::platform::RS2_USB_CLASS_PHDC = 0x0F, librealsense::platform::RS2_USB_CLASS_AV = 0x10, librealsense::platform::RS2_USB_CLASS_BILLBOARD = 0x11,
  librealsense::platform::RS2_USB_CLASS_DIAGNOSTIC_DEVIE = 0xDC, librealsense::platform::RS2_USB_CLASS_WIRELESS_CONTROLLER = 0xE0, librealsense::platform::RS2_USB_CLASS_MISCELLANEOUS = 0xEF, librealsense::platform::RS2_USB_CLASS_APPLICATION_SPECIFIC = 0xFE,
  librealsense::platform::RS2_USB_CLASS_VENDOR_SPECIFIC = 0xFF
}
 
enum  librealsense::platform::_usb_status {
  librealsense::platform::RS2_USB_STATUS_SUCCESS = 0, librealsense::platform::RS2_USB_STATUS_IO = -1, librealsense::platform::RS2_USB_STATUS_INVALID_PARAM = -2, librealsense::platform::RS2_USB_STATUS_ACCESS = -3,
  librealsense::platform::RS2_USB_STATUS_NO_DEVICE = -4, librealsense::platform::RS2_USB_STATUS_NOT_FOUND = -5, librealsense::platform::RS2_USB_STATUS_BUSY = -6, librealsense::platform::RS2_USB_STATUS_TIMEOUT = -7,
  librealsense::platform::RS2_USB_STATUS_OVERFLOW = -8, librealsense::platform::RS2_USB_STATUS_PIPE = -9, librealsense::platform::RS2_USB_STATUS_INTERRUPTED = -10, librealsense::platform::RS2_USB_STATUS_NO_MEM = -11,
  librealsense::platform::RS2_USB_STATUS_NOT_SUPPORTED = -12, librealsense::platform::RS2_USB_STATUS_OTHER = -13
}
 
enum  librealsense::platform::_usb_subclass { librealsense::platform::RS2_USB_SUBCLASS_VIDEO_CONTROL = 0x01, librealsense::platform::RS2_USB_SUBCLASS_VIDEO_STREAMING = 0x02 }
 
enum  librealsense::platform::usb_spec : uint16_t {
  librealsense::platform::usb_undefined = 0, librealsense::platform::usb1_type = 0x0100, librealsense::platform::usb1_1_type = 0x0110, librealsense::platform::usb2_type = 0x0200,
  librealsense::platform::usb2_01_type = 0x0201, librealsense::platform::usb2_1_type = 0x0210, librealsense::platform::usb3_type = 0x0300, librealsense::platform::usb3_1_type = 0x0310,
  librealsense::platform::usb3_2_type = 0x0320
}
 

Variables

static const std::map< usb_spec, std::stringlibrealsense::platform::usb_spec_names
 
static std::map< usb_status, std::stringlibrealsense::platform::usb_status_to_string
 
const uint16_t VID_INTEL_CAMERA = 0x8086
 

Macro Definition Documentation

#define USB_DT_BOS   0x0f

Definition at line 26 of file usb-types.h.

#define USB_DT_CONFIG   0x02

Definition at line 13 of file usb-types.h.

#define USB_DT_CS_CONFIG   (USB_TYPE_CLASS | USB_DT_CONFIG)

Definition at line 36 of file usb-types.h.

#define USB_DT_CS_DEVICE   (USB_TYPE_CLASS | USB_DT_DEVICE)

Definition at line 35 of file usb-types.h.

#define USB_DT_CS_ENDPOINT   (USB_TYPE_CLASS | USB_DT_ENDPOINT)

Definition at line 39 of file usb-types.h.

#define USB_DT_CS_INTERFACE   (USB_TYPE_CLASS | USB_DT_INTERFACE)

Definition at line 38 of file usb-types.h.

#define USB_DT_CS_RADIO_CONTROL   0x23

Definition at line 31 of file usb-types.h.

#define USB_DT_CS_STRING   (USB_TYPE_CLASS | USB_DT_STRING)

Definition at line 37 of file usb-types.h.

#define USB_DT_DEBUG   0x0a

Definition at line 21 of file usb-types.h.

#define USB_DT_DEVICE   0x01

Definition at line 12 of file usb-types.h.

#define USB_DT_DEVICE_CAPABILITY   0x10

Definition at line 27 of file usb-types.h.

#define USB_DT_DEVICE_QUALIFIER   0x06

Definition at line 17 of file usb-types.h.

#define USB_DT_ENCRYPTION_TYPE   0x0e

Definition at line 25 of file usb-types.h.

#define USB_DT_ENDPOINT   0x05

Definition at line 16 of file usb-types.h.

#define USB_DT_INTERFACE   0x04

Definition at line 15 of file usb-types.h.

#define USB_DT_INTERFACE_ASSOCIATION   0x0b

Definition at line 22 of file usb-types.h.

#define USB_DT_INTERFACE_POWER   0x08

Definition at line 19 of file usb-types.h.

#define USB_DT_KEY   0x0d

Definition at line 24 of file usb-types.h.

#define USB_DT_OTG   0x09

Definition at line 20 of file usb-types.h.

#define USB_DT_OTHER_SPEED_CONFIG   0x07

Definition at line 18 of file usb-types.h.

#define USB_DT_PIPE_USAGE   0x24

Definition at line 32 of file usb-types.h.

#define USB_DT_RPIPE   0x22

Definition at line 30 of file usb-types.h.

#define USB_DT_SECURITY   0x0c

Definition at line 23 of file usb-types.h.

#define USB_DT_SS_ENDPOINT_COMP   0x30

Definition at line 33 of file usb-types.h.

#define USB_DT_SSP_ISOC_ENDPOINT_COMP   0x31

Definition at line 34 of file usb-types.h.

#define USB_DT_STRING   0x03

Definition at line 14 of file usb-types.h.

#define USB_DT_WIRE_ADAPTER   0x21

Definition at line 29 of file usb-types.h.

#define USB_DT_WIRELESS_ENDPOINT_COMP   0x11

Definition at line 28 of file usb-types.h.

Variable Documentation

const uint16_t VID_INTEL_CAMERA = 0x8086

Definition at line 41 of file usb-types.h.



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