/* WinUSBNet library
* (C) 2010 Thomas Bleeker (www.madwizard.org)
*
* Licensed under the MIT license, see license.txt or:
* http://www.opensource.org/licenses/mit-license.php
*/
namespace MadWizard.WinUSBNet
{
///
/// Gives information about a device. This information is retrieved using the setup API, not the
/// actual device descriptor. Device description and manufacturer will be the strings specified
/// in the .inf file. After a device is opened the actual device descriptor can be read as well.
///
public class USBDeviceInfo
{
private API.DeviceDetails _details;
///
/// Vendor ID (VID) of the USB device
///
public int VID
{
get
{
return _details.VID;
}
}
///
/// Product ID (VID) of the USB device
///
public int PID
{
get
{
return _details.PID;
}
}
///
/// Manufacturer of the device, as specified in the INF file (not the device descriptor)
///
public string Manufacturer
{
get
{
return _details.Manufacturer;
}
}
///
/// Description of the device, as specified in the INF file (not the device descriptor)
///
public string DeviceDescription
{
get
{
return _details.DeviceDescription;
}
}
///
/// Device pathname
///
public string DevicePath
{
get
{
return _details.DevicePath;
}
}
///
/// BusName
/// Heathcliff74
///
public string BusName
{
get
{
return _details.BusName;
}
}
internal USBDeviceInfo(API.DeviceDetails details)
{
_details = details;
}
}
}