예제 #1
0
파일: HidDevice.cs 프로젝트: mpyzhov/CMTest
        public HidDevice(string deviceID, IHidDeviceManager deviceManager)
        {
            manager            = deviceManager;
            devicePath         = new DevicePathBuilder(manager.GetHidGuid()).Build(deviceID);
            deviceInstancePath = deviceID;

            var devid = deviceID.ToLowerInvariant();

            ProductId = ParseHexId(devid, devid.IndexOf("pid"));
            VendorId  = ParseHexId(devid, devid.IndexOf("vid"));
            Version   = ParseHexId(devid, devid.IndexOf("rev"));
        }
예제 #2
0
 public CoolitHidDevice(CoolitDeviceEntity coolitDeviceEntity, IHidDeviceManager deviceManager)
     : base(coolitDeviceEntity.DeviceID, deviceManager)
 {
 }