Function rs2_send_and_receive_raw_data

Function Documentation

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)

Send raw data to device

Parameters:
  • device[in] RealSense device to send data to

  • raw_data_to_send[in] Raw data to be sent to device

  • size_of_raw_data_to_send[in] Size of raw_data_to_send in bytes

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

Device’s response in a rs2_raw_data_buffer, which should be released by rs2_delete_raw_data