Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
rs_device.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory.
2  Copyright(c) 2017 Intel Corporation. All Rights Reserved. */
3 
9 #ifndef LIBREALSENSE_RS2_DEVICE_H
10 #define LIBREALSENSE_RS2_DEVICE_H
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #include "rs_types.h"
17 #include "rs_sensor.h"
18 
25 int rs2_get_device_count(const rs2_device_list* info_list, rs2_error** error);
26 
32 
40 int rs2_device_list_contains(const rs2_device_list* info_list, const rs2_device* device, rs2_error** error);
41 
49 rs2_device* rs2_create_device(const rs2_device_list* info_list, int index, rs2_error** error);
50 
55 void rs2_delete_device(rs2_device* device);
56 
64 const char* rs2_get_device_info(const rs2_device* device, rs2_camera_info info, rs2_error** error);
65 
73 int rs2_supports_device_info(const rs2_device* device, rs2_camera_info info, rs2_error** error);
74 
81 void rs2_hardware_reset(const rs2_device * device, rs2_error ** error);
82 
91 const rs2_raw_data_buffer* rs2_send_and_receive_raw_data(rs2_device* device, void* raw_data_to_send, unsigned size_of_raw_data_to_send, rs2_error** error);
92 
100 int rs2_is_device_extendable_to(const rs2_device* device, rs2_extension extension, rs2_error ** error);
101 
108 rs2_sensor_list* rs2_query_sensors(const rs2_device* device, rs2_error** error);
109 
116 void rs2_loopback_enable(const rs2_device* device, const char* from_file, rs2_error** error);
117 
123 void rs2_loopback_disable(const rs2_device* device, rs2_error** error);
124 
131 int rs2_loopback_is_enabled(const rs2_device* device, rs2_error** error);
132 
139 void rs2_connect_tm2_controller(const rs2_device* device, const unsigned char* mac_addr, rs2_error** error);
140 
147 void rs2_disconnect_tm2_controller(const rs2_device* device, int id, rs2_error** error);
148 
149 #ifdef __cplusplus
150 }
151 #endif
152 #endif
rs2_camera_info
Read-only strings that can be queried from the device. Not all information attributes are available o...
Definition: rs_sensor.h:22
struct rs2_raw_data_buffer rs2_raw_data_buffer
Definition: rs_types.h:150
int rs2_device_list_contains(const rs2_device_list *info_list, const rs2_device *device, rs2_error **error)
int rs2_loopback_is_enabled(const rs2_device *device, rs2_error **error)
void rs2_delete_device(rs2_device *device)
struct rs2_sensor_list rs2_sensor_list
Definition: rs_types.h:169
rs2_device * rs2_create_device(const rs2_device_list *info_list, int index, rs2_error **error)
void rs2_connect_tm2_controller(const rs2_device *device, const unsigned char *mac_addr, rs2_error **error)
void rs2_loopback_enable(const rs2_device *device, const char *from_file, rs2_error **error)
void rs2_disconnect_tm2_controller(const rs2_device *device, int id, rs2_error **error)
Exposes RealSense structs.
int rs2_supports_device_info(const rs2_device *device, rs2_camera_info info, rs2_error **error)
int rs2_is_device_extendable_to(const rs2_device *device, rs2_extension extension, rs2_error **error)
void rs2_hardware_reset(const rs2_device *device, rs2_error **error)
Exposes RealSense sensor functionality for C compilers.
rs2_sensor_list * rs2_query_sensors(const rs2_device *device, rs2_error **error)
const rs2_raw_data_buffer * rs2_send_and_receive_raw_data(rs2_device *device, void *raw_data_to_send, unsigned size_of_raw_data_to_send, rs2_error **error)
rs2_extension
Specifies advanced interfaces (capabilities) objects may implement.
Definition: rs_types.h:94
struct rs2_device rs2_device
Definition: rs_types.h:148
struct rs2_device_list rs2_device_list
Definition: rs_types.h:156
struct rs2_error rs2_error
Definition: rs_types.h:149
void rs2_loopback_disable(const rs2_device *device, rs2_error **error)
void rs2_delete_device_list(rs2_device_list *info_list)
int rs2_get_device_count(const rs2_device_list *info_list, rs2_error **error)
const char * rs2_get_device_info(const rs2_device *device, rs2_camera_info info, rs2_error **error)