#include <sick_tim3xx_common_usb.h>

| Public Member Functions | |
| SickTim3xxCommonUsb (AbstractParser *parser) | |
| virtual | ~SickTim3xxCommonUsb () | 
| Protected Member Functions | |
| virtual int | close_device () | 
| virtual int | get_datagram (unsigned char *receiveBuffer, int bufferSize, int *actual_length) | 
| Read a datagram from the device. | |
| virtual int | init_device () | 
| 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. | |
| Private Member Functions | |
| void | freeSOPASDeviceList (libusb_device **list) | 
| ssize_t | getSOPASDeviceList (libusb_context *ctx, uint16_t vendorID, uint16_t productID, libusb_device ***list) | 
| void | printSOPASDeviceInformation (ssize_t numberOfDevices, libusb_device **devices) | 
| void | printUSBDeviceDetails (struct libusb_device_descriptor desc) | 
| void | printUSBInterfaceDetails (libusb_device *device) | 
| Private Attributes | |
| libusb_context * | ctx_ | 
| libusb_device_handle * | device_handle_ | 
| libusb_device ** | devices_ | 
| ssize_t | numberOfDevices_ | 
| Static Private Attributes | |
| static const unsigned int | USB_TIMEOUT = 1000 | 
Definition at line 52 of file sick_tim3xx_common_usb.h.
Definition at line 44 of file sick_tim3xx_common_usb.cpp.
| sick_tim3xx::SickTim3xxCommonUsb::~SickTim3xxCommonUsb | ( | ) |  [virtual] | 
Definition at line 49 of file sick_tim3xx_common_usb.cpp.
| int sick_tim3xx::SickTim3xxCommonUsb::close_device | ( | ) |  [protected, virtual] | 
Implements sick_tim3xx::SickTim3xxCommon.
Definition at line 55 of file sick_tim3xx_common_usb.cpp.
| void sick_tim3xx::SickTim3xxCommonUsb::freeSOPASDeviceList | ( | libusb_device ** | list | ) |  [private] | 
Definition at line 152 of file sick_tim3xx_common_usb.cpp.
| int sick_tim3xx::SickTim3xxCommonUsb::get_datagram | ( | unsigned char * | receiveBuffer, | 
| int | bufferSize, | ||
| int * | actual_length | ||
| ) |  [protected, virtual] | 
Read a datagram from the device.
| [in] | receiveBuffer | data buffer to fill | 
| [in] | bufferSize | max data size to write to buffer (result should be 0 terminated) | 
| [out] | actual_length | the actual amount of data written | 
Implements sick_tim3xx::SickTim3xxCommon.
Definition at line 406 of file sick_tim3xx_common_usb.cpp.
| ssize_t sick_tim3xx::SickTim3xxCommonUsb::getSOPASDeviceList | ( | libusb_context * | ctx, | 
| uint16_t | vendorID, | ||
| uint16_t | productID, | ||
| libusb_device *** | list | ||
| ) |  [private] | 
Returns a list of USB devices currently attached to the system and matching the given vendorID and productID.
Definition at line 90 of file sick_tim3xx_common_usb.cpp.
| int sick_tim3xx::SickTim3xxCommonUsb::init_device | ( | ) |  [protected, virtual] | 
Implements sick_tim3xx::SickTim3xxCommon.
Definition at line 316 of file sick_tim3xx_common_usb.cpp.
| void sick_tim3xx::SickTim3xxCommonUsb::printSOPASDeviceInformation | ( | ssize_t | numberOfDevices, | 
| libusb_device ** | devices | ||
| ) |  [private] | 
Print the USB device information of the connected TIM3xx devices to the console.
Definition at line 230 of file sick_tim3xx_common_usb.cpp.
| void sick_tim3xx::SickTim3xxCommonUsb::printUSBDeviceDetails | ( | struct libusb_device_descriptor | desc | ) |  [private] | 
Definition at line 168 of file sick_tim3xx_common_usb.cpp.
| void sick_tim3xx::SickTim3xxCommonUsb::printUSBInterfaceDetails | ( | libusb_device * | device | ) |  [private] | 
Definition at line 178 of file sick_tim3xx_common_usb.cpp.
| int sick_tim3xx::SickTim3xxCommonUsb::sendSOPASCommand | ( | const char * | request, | 
| std::vector< unsigned char > * | reply | ||
| ) |  [protected, virtual] | 
Send a SOPAS command to the device and print out the response to the console.
Implements sick_tim3xx::SickTim3xxCommon.
Definition at line 263 of file sick_tim3xx_common_usb.cpp.
| libusb_context* sick_tim3xx::SickTim3xxCommonUsb::ctx_  [private] | 
Definition at line 84 of file sick_tim3xx_common_usb.h.
| libusb_device_handle* sick_tim3xx::SickTim3xxCommonUsb::device_handle_  [private] | 
Definition at line 87 of file sick_tim3xx_common_usb.h.
| libusb_device** sick_tim3xx::SickTim3xxCommonUsb::devices_  [private] | 
Definition at line 86 of file sick_tim3xx_common_usb.h.
| ssize_t sick_tim3xx::SickTim3xxCommonUsb::numberOfDevices_  [private] | 
Definition at line 85 of file sick_tim3xx_common_usb.h.
| const unsigned int sick_tim3xx::SickTim3xxCommonUsb::USB_TIMEOUT = 1000  [static, private] | 
Definition at line 74 of file sick_tim3xx_common_usb.h.