Mercurial > hg > ucis.core
comparison USBLib/Communication/LibUsb1/LibUsb1Registry.cs @ 64:99ed461509fe
Fixed data type for USB vendor and product IDs
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 13 Oct 2013 20:03:05 +0200 |
parents | 2e3f57f326b3 |
children |
comparison
equal
deleted
inserted
replaced
63:309c705d7460 | 64:99ed461509fe |
---|---|
37 DeviceDescriptor = descriptor; | 37 DeviceDescriptor = descriptor; |
38 } | 38 } |
39 return DeviceDescriptor.Value; | 39 return DeviceDescriptor.Value; |
40 } | 40 } |
41 | 41 |
42 public int Vid { get { return GetDeviceDescriptor().idVendor; } } | 42 public UInt16 Vid { get { return GetDeviceDescriptor().idVendor; } } |
43 public int Pid { get { return GetDeviceDescriptor().idProduct; } } | 43 public UInt16 Pid { get { return GetDeviceDescriptor().idProduct; } } |
44 public byte InterfaceID { get { return 0; } } | 44 public byte InterfaceID { get { return 0; } } |
45 | 45 |
46 public string Name { | 46 public string Name { |
47 get { | 47 get { |
48 byte iProduct = GetDeviceDescriptor().iProduct; | 48 byte iProduct = GetDeviceDescriptor().iProduct; |