#include <USBInterface.h>
Public Member Functions | |
| void | getServoStatus (int servo, servoStatus &status) |
| void | moveToTarget (int servo, ushort value) |
| void | moveToTarget (int servo, ushort value, ushort time) |
| void | setSpeed (int servo, ushort value) |
| void | setTarget (int servo, ushort value) |
| void | setUscSettings (uscSettings settings) |
| USBPololuInterface (uint16_t vendorID=8187, uint16_t productID=137) | |
| ~USBPololuInterface () | |
Static Public Attributes | |
| static int | MOVE_TARGET_MAX_TRYS = 1000 |
| static int | MOVE_TARGET_TIMEOUT = 1000 |
Private Member Functions | |
| uint8_t | channelToPort (uint8_t channel) |
| void | controlTransfer (char requestType, char request, ushort value, ushort index) |
| void | controlTransfer (char requestType, char request, ushort Value, ushort Index, unsigned char *data, ushort length) |
| string | getErrorDescription (int code) |
| uint8_t | normalSpeedToExponentialSpeed (ushort normalSpeed) |
| void | setRawParameter (ushort parameter, ushort value, int bytes) |
| uscParameter | specifyServo (uscParameter p, uint8_t servo) |
Private Attributes | |
| libusb_context * | m_context |
| libusb_device * | m_device |
| libusb_device_handle * | m_deviceHandle |
Definition at line 516 of file USBInterface.h.
| USBPololuInterface::USBPololuInterface | ( | uint16_t | vendorID = 8187, |
| uint16_t | productID = 137 |
||
| ) |
Definition at line 46 of file USBInterface.cpp.
Definition at line 378 of file USBInterface.cpp.
| uint8_t USBPololuInterface::channelToPort | ( | uint8_t | channel | ) | [private] |
Definition at line 182 of file USBInterface.cpp.
| void USBPololuInterface::controlTransfer | ( | char | requestType, |
| char | request, | ||
| ushort | value, | ||
| ushort | index | ||
| ) | [private] |
Definition at line 129 of file USBInterface.cpp.
| void USBPololuInterface::controlTransfer | ( | char | requestType, |
| char | request, | ||
| ushort | Value, | ||
| ushort | Index, | ||
| unsigned char * | data, | ||
| ushort | length | ||
| ) | [private] |
Definition at line 152 of file USBInterface.cpp.
| string USBPololuInterface::getErrorDescription | ( | int | code | ) | [private] |
Definition at line 94 of file USBInterface.cpp.
| void USBPololuInterface::getServoStatus | ( | int | servo, |
| servoStatus & | status | ||
| ) |
Definition at line 297 of file USBInterface.cpp.
| void USBPololuInterface::moveToTarget | ( | int | servo, |
| ushort | value | ||
| ) |
Definition at line 328 of file USBInterface.cpp.
| void USBPololuInterface::moveToTarget | ( | int | servo, |
| ushort | value, | ||
| ushort | time | ||
| ) |
Definition at line 350 of file USBInterface.cpp.
| uint8_t USBPololuInterface::normalSpeedToExponentialSpeed | ( | ushort | normalSpeed | ) | [private] |
Definition at line 209 of file USBInterface.cpp.
| void USBPololuInterface::setRawParameter | ( | ushort | parameter, |
| ushort | value, | ||
| int | bytes | ||
| ) | [private] |
Definition at line 197 of file USBInterface.cpp.
| void USBPololuInterface::setSpeed | ( | int | servo, |
| ushort | value | ||
| ) |
Definition at line 373 of file USBInterface.cpp.
| void USBPololuInterface::setTarget | ( | int | servo, |
| ushort | value | ||
| ) |
Definition at line 321 of file USBInterface.cpp.
| void USBPololuInterface::setUscSettings | ( | uscSettings | settings | ) |
Definition at line 234 of file USBInterface.cpp.
| uscParameter USBPololuInterface::specifyServo | ( | uscParameter | p, |
| uint8_t | servo | ||
| ) | [private] |
Definition at line 204 of file USBInterface.cpp.
libusb_context* USBPololuInterface::m_context [private] |
Definition at line 545 of file USBInterface.h.
libusb_device* USBPololuInterface::m_device [private] |
Definition at line 544 of file USBInterface.h.
libusb_device_handle* USBPololuInterface::m_deviceHandle [private] |
Definition at line 546 of file USBInterface.h.
int USBPololuInterface::MOVE_TARGET_MAX_TRYS = 1000 [static] |
Definition at line 531 of file USBInterface.h.
int USBPololuInterface::MOVE_TARGET_TIMEOUT = 1000 [static] |
Definition at line 530 of file USBInterface.h.