#include <sick_tim_common_usb.h>
Definition at line 52 of file sick_tim_common_usb.h.
sick_tim::SickTimCommonUsb::SickTimCommonUsb |
( |
AbstractParser * |
parser, |
|
|
int |
device_number |
|
) |
| |
sick_tim::SickTimCommonUsb::~SickTimCommonUsb |
( |
| ) |
|
|
virtual |
int sick_tim::SickTimCommonUsb::close_device |
( |
| ) |
|
|
protectedvirtual |
void sick_tim::SickTimCommonUsb::freeSOPASDeviceList |
( |
libusb_device ** |
list | ) |
|
|
private |
int sick_tim::SickTimCommonUsb::get_datagram |
( |
unsigned char * |
receiveBuffer, |
|
|
int |
bufferSize, |
|
|
int * |
actual_length |
|
) |
| |
|
protectedvirtual |
Read a datagram from the device.
- Parameters
-
[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_tim::SickTimCommon.
Definition at line 407 of file sick_tim_common_usb.cpp.
ssize_t sick_tim::SickTimCommonUsb::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_tim_common_usb.cpp.
int sick_tim::SickTimCommonUsb::init_device |
( |
| ) |
|
|
protectedvirtual |
void sick_tim::SickTimCommonUsb::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_tim_common_usb.cpp.
void sick_tim::SickTimCommonUsb::printUSBDeviceDetails |
( |
struct libusb_device_descriptor |
desc | ) |
|
|
private |
void sick_tim::SickTimCommonUsb::printUSBInterfaceDetails |
( |
libusb_device * |
device | ) |
|
|
private |
int sick_tim::SickTimCommonUsb::sendSOPASCommand |
( |
const char * |
request, |
|
|
std::vector< unsigned char > * |
reply |
|
) |
| |
|
protectedvirtual |
Send a SOPAS command to the device and print out the response to the console.
Send a SOPAS command to the device and print out the response to the console.
Implements sick_tim::SickTimCommon.
Definition at line 263 of file sick_tim_common_usb.cpp.
libusb_context* sick_tim::SickTimCommonUsb::ctx_ |
|
private |
libusb_device_handle* sick_tim::SickTimCommonUsb::device_handle_ |
|
private |
int sick_tim::SickTimCommonUsb::device_number_ |
|
private |
libusb_device** sick_tim::SickTimCommonUsb::devices_ |
|
private |
ssize_t sick_tim::SickTimCommonUsb::numberOfDevices_ |
|
private |
const unsigned int sick_tim::SickTimCommonUsb::USB_TIMEOUT = 1000 |
|
staticprivate |
The documentation for this class was generated from the following files: