com.eurotech.framework.linux.usb
Class UsbSerialEntry

java.lang.Object
  extended by com.eurotech.framework.linux.usb.UsbSerialEntry

public class UsbSerialEntry
extends Object


Constructor Summary
UsbSerialEntry(int ttyUsbPortNo, String vendor, String product, int numPorts, int portEnum, String path)
          UsbSerialEntry constructor
 
Method Summary
 int getNumberOfPorts()
          Reports total number of ports.
 String getPath2usbDevice()
          Reports path to USB device
 int getPortEnumeration()
          Reports port enumeration
 String getProductID()
          Reports product ID
 int getTtyUsbPortNo()
          Reports ttyUSB port number
 String getVendorID()
          Reports vendor ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsbSerialEntry

public UsbSerialEntry(int ttyUsbPortNo,
                      String vendor,
                      String product,
                      int numPorts,
                      int portEnum,
                      String path)
UsbSerialEntry constructor

Parameters:
ttyUsbPortNo - - ttyUSB port number
vendor - - vendor ID
product - - product ID
portEnum - - port enumeration
path - - path to USB device
Method Detail

getTtyUsbPortNo

public int getTtyUsbPortNo()
Reports ttyUSB port number

Returns:
ttyUSB port number as int

getVendorID

public String getVendorID()
Reports vendor ID

Returns:
vendor ID as String

getProductID

public String getProductID()
Reports product ID

Returns:
product ID as String

getNumberOfPorts

public int getNumberOfPorts()
Reports total number of ports.

Returns:
number of ports as int

getPortEnumeration

public int getPortEnumeration()
Reports port enumeration

Returns:
port enumeration as int

getPath2usbDevice

public String getPath2usbDevice()
Reports path to USB device

Returns:
path to USB device as String


Copyright © 2013. All Rights Reserved.