14 unsigned int in_cmd,
int in_p1 = 0,
int in_p2 = 0,
int in_p3 = 0,
int in_p4 = 0 )
34 const int MAX_HW_MONITOR_BUFFER_SIZE = 1024;
36 std::vector< uint8_t >
res( MAX_HW_MONITOR_BUFFER_SIZE, 0 );
50 REQUIRE( res.size() ==
sizeof(
unsigned int ) * ( expected_size_return + 1 ) );
52 auto vals =
reinterpret_cast< int32_t *
>( (
void *)res.data() );
54 res.erase( res.begin(), res.begin() +
sizeof(
unsigned int ) );
hw_monitor_command(unsigned int in_cmd, int in_p1=0, int in_p2=0, int in_p3=0, int in_p4=0)
std::vector< uint8_t > send_command_and_check(rs2::debug_protocol dp, hw_monitor_command command, uint32_t expected_size_return=0)
static void fill_usb_buffer(int opCodeNumber, int p1, int p2, int p3, int p4, uint8_t const *data, int dataLength, uint8_t *bufferToSend, int &length)
std::vector< uint8_t > send_and_receive_raw_data(const std::vector< uint8_t > &input) const