public final class FTdevicelistInfoNode extends Object
Represents a FT_DEVICE_LIST_INFO_NODE structure.
| Constructor and Description |
|---|
FTdevicelistInfoNode(String flags,
String type,
String id,
String locId,
String serialNumber,
String description,
String ftHandle)
Construct and allocates a new FTdevicelistInfoNode object with given details.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpDeviceInfo()
Prints information about this FT device info node on console.
|
String |
getDescription()
Retrieves the description for this FT device info node.
|
long |
getFlags()
Retrieves the flags for this FT device info node.
|
long |
getFThandle()
Retrieves the ftHandle for this FT device info node.
|
long |
getId()
Retrieves the id for this FT device info node.
|
long |
getLocId()
Retrieves the locId for this FT device info node.
|
String |
getSerialNumber()
Retrieves the serial number string for this FT device info node.
|
long |
getType()
Retrieves the type for this FT device info node.
|
String[] |
interpretFlags()
Interpret the flags of this device giving information about whether port is open or closed and
is it enumerated as high speed or full speed usb device.
|
public FTdevicelistInfoNode(String flags, String type, String id, String locId, String serialNumber, String description, String ftHandle)
Construct and allocates a new FTdevicelistInfoNode object with given details.
flags - flags for this device.type - device type.id - device ID.locId - location id of this device.serialNumber - serial number of this device.description - description of this device.ftHandle - handle for this device.public long getFlags()
Retrieves the flags for this FT device info node.
NumberFormatException - if the flags hex string can not be converted into numerical representation.public String[] interpretFlags()
Interpret the flags of this device giving information about whether port is open or closed and is it enumerated as high speed or full speed usb device.
NumberFormatException - if the flags hex string can not be converted into numerical representation.public long getType()
Retrieves the type for this FT device info node.
NumberFormatException - if the type hex string can not be converted into numerical representation.public long getId()
Retrieves the id for this FT device info node.
NumberFormatException - if the id hex string can not be converted into numerical representation.public long getLocId()
Retrieves the locId for this FT device info node.
NumberFormatException - if the locId hex string can not be converted into numerical representation.public String getSerialNumber()
Retrieves the serial number string for this FT device info node.
public String getDescription()
Retrieves the description for this FT device info node.
public long getFThandle()
Retrieves the ftHandle for this FT device info node.
NumberFormatException - if the ftHandle hex string can not be converted into numerical representation.public void dumpDeviceInfo()
Prints information about this FT device info node on console.
Copyright © 2016. All rights reserved.