39 #ifndef SICK_TIM3XX_COMMON_USB_H_ 40 #define SICK_TIM3XX_COMMON_USB_H_ 63 virtual int sendSOPASCommand(
const char* request, std::vector<unsigned char> * reply);
71 virtual int get_datagram(
unsigned char* receiveBuffer,
int bufferSize,
int* actual_length);
76 ssize_t
getSOPASDeviceList(libusb_context *ctx, uint16_t vendorID, uint16_t productID, libusb_device ***list);
virtual int close_device()
void printSOPASDeviceInformation(ssize_t numberOfDevices, libusb_device **devices)
libusb_device ** devices_
void printUSBDeviceDetails(struct libusb_device_descriptor desc)
virtual int get_datagram(unsigned char *receiveBuffer, int bufferSize, int *actual_length)
Read a datagram from the device.
virtual ~SickTimCommonUsb()
virtual int sendSOPASCommand(const char *request, std::vector< unsigned char > *reply)
Send a SOPAS command to the device and print out the response to the console.
libusb_device_handle * device_handle_
ssize_t getSOPASDeviceList(libusb_context *ctx, uint16_t vendorID, uint16_t productID, libusb_device ***list)
virtual int init_device()
void printUSBInterfaceDetails(libusb_device *device)
SickTimCommonUsb(AbstractParser *parser, int device_number)
static const unsigned int USB_TIMEOUT
void freeSOPASDeviceList(libusb_device **list)