Macros | Functions | Variables
internal-tests-usb.cpp File Reference
#include "catch.h"
#include "usb/usb-enumerator.h"
#include "usb/usb-device.h"
#include "hw-monitor.h"
#include "librealsense2/h/rs_option.h"
#include <map>
Include dependency graph for internal-tests-usb.cpp:

Go to the source code of this file.

Macros

#define USB_SUBCLASS_CONTROL   1
 

Functions

std::vector< uint8_tcreate_gvd_request_buffer (bool is_sr300)
 
std::vector< usb_device_infoget_devices_info ()
 
void read_gvd (const rs_usb_device &dev)
 
std::string req_to_string (int req)
 
 TEST_CASE ("query_devices","[live][usb]")
 
 TEST_CASE ("first_endpoints_direction","[live][usb]")
 
 TEST_CASE ("query_controls","[live][usb]")
 
 TEST_CASE ("read_gvd","[live][usb]")
 
 TEST_CASE ("query_devices_info_duration","[live][usb]")
 
 TEST_CASE ("create_device_duration","[live][usb]")
 

Variables

static std::map< std::string, int > pu_controls
 
static std::map< std::string, int > uvc_req_code
 

Macro Definition Documentation

#define USB_SUBCLASS_CONTROL   1

Definition at line 13 of file internal-tests-usb.cpp.

Function Documentation

std::vector<uint8_t> create_gvd_request_buffer ( bool  is_sr300)

Definition at line 211 of file internal-tests-usb.cpp.

std::vector<usb_device_info> get_devices_info ( )

Definition at line 64 of file internal-tests-usb.cpp.

void read_gvd ( const rs_usb_device dev)

Definition at line 228 of file internal-tests-usb.cpp.

std::string req_to_string ( int  req)

Definition at line 29 of file internal-tests-usb.cpp.

TEST_CASE ( "query_devices"  ,
""  [live][usb] 
)

Definition at line 76 of file internal-tests-usb.cpp.

TEST_CASE ( "first_endpoints_direction"  ,
""  [live][usb] 
)

Definition at line 95 of file internal-tests-usb.cpp.

TEST_CASE ( "query_controls"  ,
""  [live][usb] 
)

Definition at line 123 of file internal-tests-usb.cpp.

TEST_CASE ( "read_gvd"  ,
""  [live][usb] 
)

Definition at line 253 of file internal-tests-usb.cpp.

TEST_CASE ( "query_devices_info_duration"  ,
""  [live][usb] 
)

Definition at line 273 of file internal-tests-usb.cpp.

TEST_CASE ( "create_device_duration"  ,
""  [live][usb] 
)

Definition at line 283 of file internal-tests-usb.cpp.

Variable Documentation

std::map< std::string, int> pu_controls
static
Initial value:
= {
{"PU_CONTROL_UNDEFINED", 0x00},
{"PU_BACKLIGHT_COMPENSATION_CONTROL", 0x01},
{"PU_BRIGHTNESS_CONTROL", 0x02},
{"PU_CONTRAST_CONTROL", 0x03 },
{"PU_GAIN_CONTROL", 0x04 },
{"PU_POWER_LINE_FREQUENCY_CONTROL", 0x05 },
{"PU_HUE_CONTROL", 0x06 },
{"PU_SATURATION_CONTROL", 0x07 },
{"PU_SHARPNESS_CONTROL", 0x08 },
{"PU_GAMMA_CONTROL", 0x09 },
{"PU_WHITE_BALANCE_TEMPERATURE_CONTROL", 0x0A },
{"PU_WHITE_BALANCE_TEMPERATURE_AUTO_CONTROL", 0x0B },
{"PU_WHITE_BALANCE_COMPONENT_CONTROL", 0x0C },
{"PU_WHITE_BALANCE_COMPONENT_AUTO_CONTROL", 0x0D },
{"PU_DIGITAL_MULTIPLIER_CONTROL", 0x0E },
{"PU_DIGITAL_MULTIPLIER_LIMIT_CONTROL", 0x0F },
{"PU_HUE_AUTO_CONTROL", 0x10 },
{"PU_ANALOG_VIDEO_STANDARD_CONTROL", 0x11 },
{"PU_ANALOG_LOCK_STATUS_CONTROL", 0x12 },
{"PU_CONTRAST_AUTO_CONTROL", 0x13 },
}

Definition at line 40 of file internal-tests-usb.cpp.

std::map< std::string, int> uvc_req_code
static
Initial value:
= {
{"UVC_RC_UNDEFINED", 0x00},
{"UVC_SET_CUR", 0x01},
{"UVC_GET_CUR", 0x81},
{"UVC_GET_MIN", 0x82},
{"UVC_GET_MAX", 0x83},
{"UVC_GET_RES", 0x84},
{"UVC_GET_LEN", 0x85},
{"UVC_GET_INFO", 0x86},
{"UVC_GET_DEF", 0x87},
{"UVC_REQ_TYPE_GET", 0xa1},
{"UVC_REQ_TYPE_SET", 0x21}
}

Definition at line 15 of file internal-tests-usb.cpp.



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