Classes | Namespaces | Macros | Enumerations | Functions | Variables
tm-device.cpp File Reference
#include <memory>
#include <thread>
#include <inttypes.h>
#include "tm-device.h"
#include "stream.h"
#include "media/playback/playback_device.h"
#include "media/ros/ros_reader.h"
#include "usb/usb-enumerator.h"
#include "t265-messages.h"
#include "message-print.h"
Include dependency graph for tm-device.cpp:

Go to the source code of this file.

Classes

class  librealsense::asic_temperature_option
 
class  librealsense::exposure_mode_option
 
class  librealsense::exposure_option
 
class  librealsense::gain_option
 
class  librealsense::md_tm2_parser
 
struct  librealsense::motion_frame_metadata
 
class  librealsense::motion_temperature_option
 
struct  librealsense::pose_frame_metadata
 
class  librealsense::temperature_option
 
class  librealsense::tracking_mode_option< flag, depends_on, invert >
 
struct  librealsense::video_frame_metadata
 

Namespaces

 librealsense
 

Macros

#define ENDPOINT_DEV_IN   0
 
#define ENDPOINT_DEV_INT_IN   2
 
#define ENDPOINT_DEV_INT_OUT   2
 
#define ENDPOINT_DEV_MSGS_IN   1
 
#define ENDPOINT_DEV_MSGS_OUT   1
 
#define ENDPOINT_DEV_OUT   0
 
#define ENDPOINT_HOST_IN   (ENDPOINT_DEV_OUT + 1 + 0x80)
 
#define ENDPOINT_HOST_INT_IN   (ENDPOINT_DEV_INT_OUT + 1 + 0x80)
 
#define ENDPOINT_HOST_INT_OUT   (ENDPOINT_DEV_INT_IN + 1)
 
#define ENDPOINT_HOST_MSGS_IN   (ENDPOINT_DEV_MSGS_OUT + 1 + 0x80)
 
#define ENDPOINT_HOST_MSGS_OUT   (ENDPOINT_DEV_MSGS_IN + 1)
 
#define ENDPOINT_HOST_OUT   (ENDPOINT_DEV_IN + 1)
 
#define FREE_CONT   0x8001
 
#define GET_SENSOR_INDEX(_sensorID)   ((_sensorID & SENSOR_INDEX_MASK) >> SENSOR_INDEX_POS)
 
#define GET_SENSOR_TYPE(_sensorID)   ((_sensorID & SENSOR_TYPE_MASK) >> SENSOR_TYPE_POS)
 
#define NOMINMAX
 
#define SENSOR_INDEX_MASK   (0x0007 << SENSOR_INDEX_POS)
 
#define SENSOR_INDEX_POS   (5)
 
#define SENSOR_TYPE_MASK   (0x001F << SENSOR_TYPE_POS)
 
#define SENSOR_TYPE_POS   (0)
 
#define SET_SENSOR_ID(_type, _index)   ((((_type) << SENSOR_TYPE_POS) & SENSOR_TYPE_MASK) | (((_index) << SENSOR_INDEX_POS) & SENSOR_INDEX_MASK))
 

Enumerations

enum  log_level {
  NO_LOG = 0x0000, LOG_ERR = 0x0001, INFO = 0x0002, WARNING = 0x0003,
  DEBUG = 0x0004, VERBOSE = 0x0005, TRACE = 0x0006, MAX_LOG_LEVEL
}
 
enum  librealsense::temperature_type { librealsense::TEMPERATURE_TYPE_ASIC, librealsense::TEMPERATURE_TYPE_MOTION }
 

Functions

std::string librealsense::async_op_to_string (tm2_sensor::async_op_state val)
 
static uint64_t bytesSwap (uint64_t val)
 
rs2_format rs2_format_from_tm2 (const uint8_t format)
 
int tm2_sensor_id (rs2_stream type, int stream_index)
 
int tm2_sensor_type (rs2_stream rtype)
 

Variables

static const int BUFFER_SIZE = 1024
 
static const int MAX_TRANSFER_SIZE = 848 * 800 + sizeof(bulk_message_video_stream)
 
const std::map< PixelFormat, rs2_formattm2_formats_map
 
static const int USB_TIMEOUT = 10000
 

Macro Definition Documentation

#define ENDPOINT_DEV_IN   0

Definition at line 54 of file tm-device.cpp.

#define ENDPOINT_DEV_INT_IN   2

Definition at line 58 of file tm-device.cpp.

#define ENDPOINT_DEV_INT_OUT   2

Definition at line 59 of file tm-device.cpp.

#define ENDPOINT_DEV_MSGS_IN   1

Definition at line 56 of file tm-device.cpp.

#define ENDPOINT_DEV_MSGS_OUT   1

Definition at line 57 of file tm-device.cpp.

#define ENDPOINT_DEV_OUT   0

Definition at line 55 of file tm-device.cpp.

#define ENDPOINT_HOST_IN   (ENDPOINT_DEV_OUT + 1 + 0x80)

Definition at line 64 of file tm-device.cpp.

#define ENDPOINT_HOST_INT_IN   (ENDPOINT_DEV_INT_OUT + 1 + 0x80)

Definition at line 68 of file tm-device.cpp.

#define ENDPOINT_HOST_INT_OUT   (ENDPOINT_DEV_INT_IN + 1)

Definition at line 69 of file tm-device.cpp.

#define ENDPOINT_HOST_MSGS_IN   (ENDPOINT_DEV_MSGS_OUT + 1 + 0x80)

Definition at line 66 of file tm-device.cpp.

#define ENDPOINT_HOST_MSGS_OUT   (ENDPOINT_DEV_MSGS_IN + 1)

Definition at line 67 of file tm-device.cpp.

#define ENDPOINT_HOST_OUT   (ENDPOINT_DEV_IN + 1)

Definition at line 65 of file tm-device.cpp.

#define FREE_CONT   0x8001

Definition at line 82 of file tm-device.cpp.

#define GET_SENSOR_INDEX (   _sensorID)    ((_sensorID & SENSOR_INDEX_MASK) >> SENSOR_INDEX_POS)

Definition at line 49 of file tm-device.cpp.

#define GET_SENSOR_TYPE (   _sensorID)    ((_sensorID & SENSOR_TYPE_MASK) >> SENSOR_TYPE_POS)

Definition at line 50 of file tm-device.cpp.

#define NOMINMAX

Definition at line 5 of file tm-device.cpp.

#define SENSOR_INDEX_MASK   (0x0007 << SENSOR_INDEX_POS)

Bits 5-7

Definition at line 47 of file tm-device.cpp.

#define SENSOR_INDEX_POS   (5)

Definition at line 46 of file tm-device.cpp.

#define SENSOR_TYPE_MASK   (0x001F << SENSOR_TYPE_POS)

Bits 0-4

Definition at line 45 of file tm-device.cpp.

#define SENSOR_TYPE_POS   (0)

Definition at line 44 of file tm-device.cpp.

#define SET_SENSOR_ID (   _type,
  _index 
)    ((((_type) << SENSOR_TYPE_POS) & SENSOR_TYPE_MASK) | (((_index) << SENSOR_INDEX_POS) & SENSOR_INDEX_MASK))

Definition at line 48 of file tm-device.cpp.

Enumeration Type Documentation

enum log_level
Enumerator
NO_LOG 
LOG_ERR 
INFO 
WARNING 
DEBUG 
VERBOSE 
TRACE 
MAX_LOG_LEVEL 

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

Function Documentation

static uint64_t bytesSwap ( uint64_t  val)
static

Definition at line 30 of file tm-device.cpp.

rs2_format rs2_format_from_tm2 ( const uint8_t  format)
inline

Definition at line 106 of file tm-device.cpp.

int tm2_sensor_id ( rs2_stream  type,
int  stream_index 
)
inline

Definition at line 125 of file tm-device.cpp.

int tm2_sensor_type ( rs2_stream  rtype)
inline

Definition at line 111 of file tm-device.cpp.

Variable Documentation

const int BUFFER_SIZE = 1024
static

Definition at line 86 of file tm-device.cpp.

const int MAX_TRANSFER_SIZE = 848 * 800 + sizeof(bulk_message_video_stream)
static

Definition at line 84 of file tm-device.cpp.

const std::map<PixelFormat, rs2_format> tm2_formats_map
Initial value:
=
{
}

Definition at line 88 of file tm-device.cpp.

const int USB_TIMEOUT = 10000
static

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



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