Function rs2_build_debug_protocol_command
Defined in File rs_device.h
Function Documentation
-
const rs2_raw_data_buffer *rs2_build_debug_protocol_command(rs2_device *device, unsigned opcode, unsigned param1, unsigned param2, unsigned param3, unsigned param4, void *data, unsigned size_of_data, rs2_error **error)
Build debug_protocol raw data command from opcode, parameters and data. The result can be used as raw_data_to_send parameter in send_and_receive_raw_data
- Parameters:
device – [in] RealSense device to send data to
opcode – [in] Commad opcode
param1 – [in] First input parameter
param2 – [in] Second parameter
param3 – [in] Third parameter
param4 – [in] Fourth parameter
data – [in] Input Data (up to 1024 bytes)
size_of_data – [in] Size of input data in bytes
error – [out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored
- Returns:
rs2_raw_data_buffer which includes raw command