|
| enum | _endpoint_direction { RS2_USB_ENDPOINT_DIRECTION_WRITE = 0,
RS2_USB_ENDPOINT_DIRECTION_READ = 0x80
} |
| |
| enum | _endpoint_type { RS2_USB_ENDPOINT_CONTROL,
RS2_USB_ENDPOINT_ISOCHRONOUS,
RS2_USB_ENDPOINT_BULK,
RS2_USB_ENDPOINT_INTERRUPT
} |
| |
| enum | _usb_class {
RS2_USB_CLASS_UNSPECIFIED = 0x00,
RS2_USB_CLASS_AUDIO = 0x01,
RS2_USB_CLASS_COM = 0x02,
RS2_USB_CLASS_HID = 0x03,
RS2_USB_CLASS_PID = 0x05,
RS2_USB_CLASS_IMAGE = 0x06,
RS2_USB_CLASS_PRINTER = 0x07,
RS2_USB_CLASS_MASS_STORAGE = 0x08,
RS2_USB_CLASS_HUB = 0x09,
RS2_USB_CLASS_CDC_DATA = 0x0A,
RS2_USB_CLASS_SMART_CARD = 0x0B,
RS2_USB_CLASS_CONTENT_SECURITY = 0x0D,
RS2_USB_CLASS_VIDEO = 0x0E,
RS2_USB_CLASS_PHDC = 0x0F,
RS2_USB_CLASS_AV = 0x10,
RS2_USB_CLASS_BILLBOARD = 0x11,
RS2_USB_CLASS_DIAGNOSTIC_DEVIE = 0xDC,
RS2_USB_CLASS_WIRELESS_CONTROLLER = 0xE0,
RS2_USB_CLASS_MISCELLANEOUS = 0xEF,
RS2_USB_CLASS_APPLICATION_SPECIFIC = 0xFE,
RS2_USB_CLASS_VENDOR_SPECIFIC = 0xFF
} |
| |
| enum | _usb_status {
RS2_USB_STATUS_SUCCESS = 0,
RS2_USB_STATUS_IO = -1,
RS2_USB_STATUS_INVALID_PARAM = -2,
RS2_USB_STATUS_ACCESS = -3,
RS2_USB_STATUS_NO_DEVICE = -4,
RS2_USB_STATUS_NOT_FOUND = -5,
RS2_USB_STATUS_BUSY = -6,
RS2_USB_STATUS_TIMEOUT = -7,
RS2_USB_STATUS_OVERFLOW = -8,
RS2_USB_STATUS_PIPE = -9,
RS2_USB_STATUS_INTERRUPTED = -10,
RS2_USB_STATUS_NO_MEM = -11,
RS2_USB_STATUS_NOT_SUPPORTED = -12,
RS2_USB_STATUS_OTHER = -13
} |
| |
| enum | _usb_subclass { RS2_USB_SUBCLASS_VIDEO_CONTROL = 0x01,
RS2_USB_SUBCLASS_VIDEO_STREAMING = 0x02
} |
| |
| enum | call_type {
call_type::none,
call_type::query_uvc_devices,
call_type::query_usb_devices,
call_type::send_command,
call_type::create_usb_device,
call_type::create_uvc_device,
call_type::uvc_get_location,
call_type::uvc_set_power_state,
call_type::uvc_get_power_state,
call_type::uvc_lock,
call_type::uvc_unlock,
call_type::uvc_get_pu,
call_type::uvc_set_pu,
call_type::uvc_get_pu_range,
call_type::uvc_get_xu_range,
call_type::uvc_init_xu,
call_type::uvc_set_xu,
call_type::uvc_get_xu,
call_type::uvc_stream_profiles,
call_type::uvc_probe_commit,
call_type::uvc_play,
call_type::uvc_start_callbacks,
call_type::uvc_stop_callbacks,
call_type::uvc_close,
call_type::uvc_frame,
call_type::create_hid_device,
call_type::query_hid_devices,
call_type::hid_register_profiles,
call_type::hid_open,
call_type::hid_close,
call_type::hid_stop_capture,
call_type::hid_start_capture,
call_type::hid_frame,
call_type::hid_get_sensors,
call_type::hid_get_custom_report_data,
call_type::device_watcher_start,
call_type::device_watcher_event,
call_type::device_watcher_stop,
call_type::uvc_get_usb_specification
} |
| |
| enum | create_and_open_status { Mutex_Succeed,
Mutex_TotalFailure,
Mutex_AlreadyExist
} |
| |
| enum | custom_sensor_report_field {
minimum,
maximum,
name,
size,
unit_expo,
units,
value
} |
| |
| enum | device_type {
device_type::uvc,
device_type::usb,
device_type::hid,
device_type::hid_sensor,
device_type::hid_input
} |
| |
| enum | HID_REQUEST_CODE {
HID_REQUEST_GET_REPORT = 0x1,
HID_REQUEST_GET_IDLE = 0x2,
HID_REQUEST_GET_PROTOCOL = 0x3,
HID_REQUEST_SET_REPORT = 0x9,
HID_REQUEST_SET_IDLE = 0xa,
HID_REQUEST_SET_PROTOCOL = 0xb
} |
| |
| enum | power_state { D0,
D3
} |
| |
| enum | supported_kernel_buf_types : uint8_t { e_video_buf,
e_metadata_buf,
e_max_kernel_buf_type
} |
| |
| enum | USB_REQUEST_CODE { USB_REQUEST_CODE_GET = 0xa1,
USB_REQUEST_CODE_SET = 0x21
} |
| |
| enum | usb_spec : uint16_t {
usb_undefined = 0,
usb1_type = 0x0100,
usb1_1_type = 0x0110,
usb2_type = 0x0200,
usb2_01_type = 0x0201,
usb2_1_type = 0x0210,
usb3_type = 0x0300,
usb3_1_type = 0x0310,
usb3_2_type = 0x0320
} |
| |
|
| bool | check (const char *call, HRESULT hr, bool to_throw) |
| |
| std::shared_ptr< backend > | create_backend () |
| |
| std::shared_ptr< hid_device > | create_rshid_device (hid_device_info info) |
| |
| std::shared_ptr< uvc_device > | create_rsuvc_device (uvc_device_info info) |
| |
| long | from_100micros (long val) |
| |
| void | get_block_range (const std::vector< usb_descriptor > &descs, int mi, int &begin, int &end) |
| |
| static uint32_t | get_dev_capabilities (const std::string dev_name) |
| |
| USB_DEVICE_DESCRIPTOR | get_device_descriptor (WINUSB_INTERFACE_HANDLE handle) |
| |
| std::vector< uint8_t > | get_device_descriptors (WINUSB_INTERFACE_HANDLE handle) |
| |
| std::string | get_device_path (libusb_device *usb_device) |
| |
| bool | get_id (DEVINST devinst, std::string *p_out_str) |
| |
| std::string | get_id (DEVINST devinst) |
| |
| usb_device_info | get_info (const std::wstring device_wstr) |
| |
| std::wstring | get_path (HANDLE h, ULONG index) |
| |
| std::vector< usb_device_info > | get_subdevices (libusb_device *device, libusb_device_descriptor desc) |
| |
| static usb_spec | get_usb_connection_type (std::string path) |
| |
| bool | get_usb_descriptors (uint16_t device_vid, uint16_t device_pid, const std::string &device_uid, std::string &location, usb_spec &spec, std::string &serial) |
| |
| bool | get_usb_device_descriptors (DEVINST devinst, uint16_t device_vid, uint16_t device_pid, const std::string &device_uid, std::string &location, usb_spec &spec, std::string &serial, std::string &parent_uid) |
| |
| bool | handle_node (const std::wstring &targetKey, HANDLE h, ULONG index) |
| |
| std::tuple< std::string, usb_spec > | handle_usb_hub (const std::wstring &targetKey, const std::wstring &path) |
| |
| std::string | hr_to_string (HRESULT hr) |
| |
| std::wstring | instance_id_from_device_path (LPCWSTR path) |
| |
| void | internal_callback (struct libusb_transfer *transfer) |
| |
| static bool | is_heighr_or_equel_to_min_version (std::string api_version, std::string min_api_version) |
| |
| bool | is_win10_redstone2 () |
| |
| static usb_status | libusb_status_to_rs (int sts) |
| |
| PSECURITY_DESCRIPTOR | make_allow_all_security_descriptor (void) |
| |
| bool | operator== (const hid_device_info &a, const hid_device_info &b) |
| |
| bool | operator== (const stream_profile &a, const stream_profile &b) |
| |
| bool | operator== (const uvc_device_info &a, const uvc_device_info &b) |
| |
| bool | operator== (const usb_device_info &a, const usb_device_info &b) |
| |
| bool | operator== (const playback_device_info &a, const playback_device_info &b) |
| |
| bool | operator== (const tm2_device_info &a, const tm2_device_info &b) |
| |
| bool | parse_usb_path_from_device_id (uint16_t &vid, uint16_t &pid, uint16_t &mi, std::string &unique_id, const std::string &device_id) |
| |
| bool | parse_usb_path_multiple_interface (uint16_t &vid, uint16_t &pid, uint16_t &mi, std::string &unique_id, const std::string &path, std::string &device_guid) |
| |
| bool | parse_usb_path_single_interface (uint16_t &vid, uint16_t &pid, std::string &serial, const std::string &path) |
| |
| std::vector< std::wstring > | query_by_interface (GUID guid) |
| |
| std::vector< std::wstring > | query_by_interface (const std::string &guidStr) |
| |
| std::vector< hid_device_info > | query_hid_devices_info () |
| |
| std::vector< uvc_device_info > | query_uvc_devices_info () |
| |
| void | ReadFromBuffer (control_range &cfg, BYTE *buffer, int length) |
| |
| void | req_io_buff (int fd, uint32_t count, std::string dev_name, v4l2_memory mem_type, v4l2_buf_type type) |
| |
| template<class T > |
| static void | safe_release (T &ppT) |
| |
| | STDMETHODIMP_ (ULONG) source_reader_callback |
| |
| void | stream_ctl_on (int fd, v4l2_buf_type type=V4L2_BUF_TYPE_VIDEO_CAPTURE) |
| |
| void | stream_off (int fd, v4l2_buf_type type=V4L2_BUF_TYPE_VIDEO_CAPTURE) |
| |
| std::string | time_in_HH_MM_SS_MMM () |
| |
| bool | tm_boot (const std::vector< usb_device_info > &devices) |
| |
| long | to_100micros (long v) |
| |
| std::vector< std::string > | tokenize (std::string string, char separator) |
| |
| static usb_status | usbhost_status_to_rs (int sts) |
| |
| void | uvc_process_bulk_payload (backend_frame_ptr fp, size_t payload_len, backend_frames_queue &queue) |
| |
| template<typename T > |
| size_t | vector_bytes_size (const typename std::vector< T > &vec) |
| |
| std::string | win_to_utf (const WCHAR *s) |
| |
| static usb_status | winusb_status_to_rs (DWORD sts) |
| |
| template<typename T > |
| bool | write_fs_attribute (const std::string &path, const T &val) |
| |
| static int | xioctl (int fh, unsigned long request, void *arg) |
| |
| static int | xioctl (int fh, unsigned long request, void *arg) |
| |