Example #1
0
        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"));
        }
Example #2
0
 public CoolitHidDevice(CoolitDeviceEntity coolitDeviceEntity, IHidDeviceManager deviceManager)
     : base(coolitDeviceEntity.DeviceID, deviceManager)
 {
 }