5 #ifndef HW_MONITOR_PROTOCOL_H 6 #define HW_MONITOR_PROTOCOL_H 79 hwmon_cmd(uint8_t cmd_id) : cmd(cmd_id), Param1(0), Param2(0), Param3(0), Param4(0), sizeOfSendCommandData(0), TimeOut(5000), oneDirection(false){}
93 void fill_usb_buffer(
int opCodeNumber,
int p1,
int p2,
int p3,
int p4, uint8_t *
data,
int dataLength, uint8_t * bufferToSend,
int &
length);
95 void execute_usb_command(uvc::device & device, std::timed_mutex & mutex, uint8_t *out,
size_t outSize, uint32_t & op, uint8_t *
in,
size_t & inSize);
107 void get_raw_data(uint8_t opcode, uvc::device & device, std::timed_mutex & mutex, uint8_t *
data,
size_t & bytesReturned);
111 #endif // HW_MONITOR_PROTOCOL_H const uint8_t IVCAM_MONITOR_ENDPOINT_IN
const uint8_t IV_COMMAND_POWER_GEAR
const uint8_t IV_COMMAND_CONFIDENCE_THRESHHOLD
size_t receivedCommandDataLength
uint8_t receivedOpcode[4]
const uint8_t IV_COMMAND_FIRMWARE_UPDATE_MODE
const uint8_t NUM_OF_CALIBRATION_COEFFS
const uint8_t IVCAM_MONITOR_INTERFACE
int sizeOfSendCommandData
void fill_usb_buffer(int opCodeNumber, int p1, int p2, int p3, int p4, uint8_t *data, int dataLength, uint8_t *bufferToSend, int &length)
const uint8_t IV_COMMAND_FILTER_OPTION
uint8_t receivedCommandData[HW_MONITOR_BUFFER_SIZE]
const uint16_t IVCAM_MONITOR_MAGIC_NUMBER
const uint8_t IVCAM_COLOR_EXPOSURE_PRIORITY
void perform_and_send_monitor_command(uvc::device &device, std::timed_mutex &mutex, hwmon_cmd &newCommand)
void execute_usb_command(uvc::device &device, std::timed_mutex &mutex, uint8_t *out, size_t outSize, uint32_t &op, uint8_t *in, size_t &inSize)
hwmon_cmd(uint8_t cmd_id)
const uint8_t IV_COMMAND_INTENSITY_IMAGE_TYPE
const uint8_t IV_COMMAND_ZUNIT
const uint8_t SIZE_OF_CALIB_HEADER_BYTES
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * data
const uint8_t IVCAM_DEPTH_DYNAMIC_FPS
void read_from_eeprom(int IRB_opcode, int IWB_opcode, uvc::device &device, unsigned int offset, int size, byte *data)
const uint8_t IV_COMMAND_MOTION_VS_RANGE_TRADE
const uint16_t SIZE_OF_CALIB_PARAM_BYTES
const uint8_t IVCAM_DEPTH_ACCURACY
const uint8_t IVCAM_MIN_SUPPORTED_VERSION
const uint16_t IVCAM_MONITOR_MAX_BUFFER_SIZE
GLsizei const GLfloat * value
size_t receivedCommandDataLength
const uint16_t HW_MONITOR_BUFFER_SIZE
const uint8_t IVCAM_COLOR_ERROR
const uint8_t NUM_OF_CALIBRATION_PARAMS
const uint16_t HW_MONITOR_COMMAND_SIZE
void i2c_write_reg(int command, uvc::device &device, uint16_t slave_address, uint16_t reg, uint32_t value)
const uint8_t IV_COMMAND_GET_CALIBRATION_DATA
const uint16_t MAX_SIZE_OF_CALIB_PARAM_BYTES
const uint8_t IVCAM_DEPTH_ERROR
const uint8_t IV_COMMAND_DEPTH_ACCURACY
const uint8_t IVCAM_COLOR_EXPOSURE_GRANULAR
const uint8_t IVCAM_DEPTH_MOTION_RANGE
const uint8_t IVCAM_DEPTH_FILTER_OPTION
GLuint GLsizei GLsizei * length
const uint8_t IVCAM_COLOR_AUTO_FLICKER
const uint8_t IVCAM_MONITOR_HEADER_SIZE
int sizeOfSendCommandData
void i2c_read_reg(int command, uvc::device &device, uint16_t slave_address, uint16_t reg, uint32_t size, byte *data)
void send_hw_monitor_command(uvc::device &device, std::timed_mutex &mutex, hwmon_cmd_details &details)
const uint8_t IV_COMMAND_LASER_POWER
void get_raw_data(uint8_t opcode, uvc::device &device, std::timed_mutex &mutex, uint8_t *data, size_t &bytesReturned)
const uint8_t PARAMETERS_BUFFER_SIZE
const uint8_t IVCAM_DEPTH_CONFIDENCE_THRESH
const uint8_t IV_COMMAND_VERSION
const uint8_t IVCAM_DEPTH_LASER_POWER
const uint8_t IVCAM_MONITOR_ENDPOINT_OUT
const uint16_t IVCAM_MONITOR_MUTEX_TIMEOUT
const uint8_t IV_COMMAND_LOW_CONFIDENCE_LEVEL