#include <FTD2XXDeviceInfo.h>
Public Member Functions | |
FTD2XXDeviceInfo () | |
FTD2XXDeviceInfo (bool isOpen, int type, int id, string &serialNumber, string &description) | |
bool | isOpen () const |
int | getType () const |
int | getId () const |
int | getVID () const |
int | getPID () const |
string | getSerialNumber () const |
string | getDescription () const |
string | toString () const |
Definition at line 31 of file FTD2XXDeviceInfo.h.
AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::FTD2XXDeviceInfo | ( | ) |
Construct a FTD2XXDeviceInfo
.
AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::FTD2XXDeviceInfo | ( | bool | isOpen, | |
int | type, | |||
int | id, | |||
string & | serialNumber, | |||
string & | description | |||
) |
Construct a FTD2XXDeviceInfo
.
isOpen | device open/closed flag | |
type | device type | |
id | device VID/PID - VID is the upper two bytes, PID is the lower two bytes | |
serialNumber | device serial number | |
description | device description |
string AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::getDescription | ( | ) | const |
Get the device's description.
int AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::getId | ( | ) | const |
Get the device VID/PID. The VID is the upper two bytes, and the PID is the lower two bytes.
int AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::getPID | ( | ) | const |
Get the device's Product ID (PID).
string AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::getSerialNumber | ( | ) | const |
Get the device's serial number.
int AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::getType | ( | ) | const |
Get the device type.
int AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::getVID | ( | ) | const |
Get the device's Vendor ID (VID).
bool AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::isOpen | ( | ) | const |
Check is the device was open when this object was constructed.
string AnnotatorComm::FTD2XX::FTD2XXDeviceInfo::toString | ( | ) | const |
Get a String representation of the device.