com.codeminders.hidapi
Class HIDDeviceInfo

java.lang.Object
  extended by com.codeminders.hidapi.HIDDeviceInfo

public class HIDDeviceInfo
extends java.lang.Object

Container class which contains HID device properties.

Author:
lord

Method Summary
 int getInterface_number()
          Get the USB interface which this logical device represents.
 java.lang.String getManufacturer_string()
          Get the device manufacturer string.
 java.lang.String getPath()
          Get the platform-specific device path.
 int getProduct_id()
          Get the device USB product ID.
 java.lang.String getProduct_string()
          Get the device product string
 int getRelease_number()
          Get the device release number in binary-coded decimal, also known as device version number.
 java.lang.String getSerial_number()
          Get the device serial number.
 int getUsage_page()
          Get the device usage page (Windows/Mac only).
 int getUsage()
          Get the device usage (Windows/Mac only).
 int getVendor_id()
          Get the device USB vendor ID.
 HIDDevice open()
          Open a HID device using a path name from this class.
 java.lang.String toString()
          Override method for conversion this object to String object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPath

public java.lang.String getPath()
Get the platform-specific device path.

Returns:
the string value

getVendor_id

public int getVendor_id()
Get the device USB vendor ID.

Returns:
integer value

getProduct_id

public int getProduct_id()
Get the device USB product ID.

Returns:
the integer value

getSerial_number

public java.lang.String getSerial_number()
Get the device serial number.

Returns:
the string value

getRelease_number

public int getRelease_number()
Get the device release number in binary-coded decimal, also known as device version number.

Returns:
the integer value

getManufacturer_string

public java.lang.String getManufacturer_string()
Get the device manufacturer string.

Returns:
the string value

getProduct_string

public java.lang.String getProduct_string()
Get the device product string

Returns:
the integer value

getUsage_page

public int getUsage_page()
Get the device usage page (Windows/Mac only).

Returns:
the integer value

getUsage

public int getUsage()
Get the device usage (Windows/Mac only).

Returns:
the integer value

getInterface_number

public int getInterface_number()
Get the USB interface which this logical device represents. Valid on both Linux implementations in all cases, and valid on the Windows implementation only if the device contains more than one interface.

Returns:
the integer value

open

public HIDDevice open()
               throws java.io.IOException
Open a HID device using a path name from this class. Used from JNI.

Returns:
return a reference to the HIDDevice object
Throws:
java.io.IOException

toString

public java.lang.String toString()
Override method for conversion this object to String object.

Overrides:
toString in class java.lang.Object
Returns:
return a reference to the String object