public class ModernRoboticsUsbUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS_DEVICE_ID |
static int |
ADDRESS_MANUFACTURER_CODE |
static int |
ADDRESS_VERSION_NUMBER |
static int |
DEVICE_ID_DC_MOTOR_CONTROLLER
Modern Robotics DC Motor Controller USB Device ID
|
static int |
DEVICE_ID_DEVICE_INTERFACE_MODULE
Modern Robotics Device Interface Module USB Device ID
|
static int |
DEVICE_ID_LEGACY_MODULE
Modern Robotics Legacy Module USB Device ID
|
static int |
DEVICE_ID_SERVO_CONTROLLER
Modern Robotics Servo Controller USB Device ID
|
static int |
MFG_CODE_MODERN_ROBOTICS
Modern Robotics USB Manufacturer Code
|
Constructor and Description |
---|
ModernRoboticsUsbUtil() |
Modifier and Type | Method and Description |
---|---|
static DeviceManager.UsbDeviceType |
getDeviceType(byte[] deviceHeader) |
static byte[] |
getUsbDeviceHeader(RobotUsbDevice robotUsbDevice) |
static RobotUsbDevice |
openRobotUsbDevice(boolean doScan,
RobotUsbManager robotUsbManager,
SerialNumber serialNumber) |
public static final int MFG_CODE_MODERN_ROBOTICS
public static final int DEVICE_ID_DC_MOTOR_CONTROLLER
public static final int DEVICE_ID_SERVO_CONTROLLER
public static final int DEVICE_ID_LEGACY_MODULE
public static final int DEVICE_ID_DEVICE_INTERFACE_MODULE
public static final int ADDRESS_VERSION_NUMBER
public static final int ADDRESS_MANUFACTURER_CODE
public static final int ADDRESS_DEVICE_ID
public static RobotUsbDevice openRobotUsbDevice(boolean doScan, RobotUsbManager robotUsbManager, SerialNumber serialNumber) throws RobotCoreException
RobotCoreException
public static byte[] getUsbDeviceHeader(RobotUsbDevice robotUsbDevice) throws RobotUsbException
RobotUsbException
public static DeviceManager.UsbDeviceType getDeviceType(byte[] deviceHeader)