예제 #1
0
 public bool IsConnected(string devicePath)
 {
     return(HidDevices.IsConnected(devicePath));
 }
예제 #2
0
 public IEnumerable <IHidDevice> Enumerate(int vendorId, params int[] productIds)
 {
     return(HidDevices.EnumerateDevices().Select(d => new HidFastReadDevice(d.Path, d.Description)).
            Where(f => f.Attributes.VendorId == vendorId && productIds.Contains(f.Attributes.ProductId)).
            Select(d => d as IHidDevice));
 }
예제 #3
0
 public IEnumerable <IHidDevice> Enumerate(int vendorId)
 {
     return(HidDevices.EnumerateDevices().Select(d => new HidFastReadDevice(d.Path, d.Description)).
            Where(f => f.Attributes.VendorId == vendorId).
            Select(d => d as IHidDevice));
 }
예제 #4
0
 public IEnumerable <IHidDevice> Enumerate()
 {
     return(HidDevices.EnumerateDevices().
            Select(d => new HidFastReadDevice(d.Path, d.Description) as IHidDevice));
 }
예제 #5
0
 public IEnumerable <IHidDevice> Enumerate(string devicePath)
 {
     return(HidDevices.EnumerateDevices().Where(x => x.Path == devicePath).
            Select(d => new HidFastReadDevice(d.Path, d.Description) as IHidDevice));
 }
예제 #6
0
 public IEnumerable <IHidDevice> Enumerate(int vendorId)
 {
     return(HidDevices.Enumerate(vendorId).
            Select(d => d as IHidDevice));
 }
예제 #7
0
 public IEnumerable <IHidDevice> Enumerate(int vendorId, params int[] productIds)
 {
     return(HidDevices.Enumerate(vendorId, productIds).
            Select(d => d as IHidDevice));
 }
예제 #8
0
 public IEnumerable <IHidDevice> Enumerate(string devicePath)
 {
     return(HidDevices.Enumerate(devicePath).
            Select(d => d as IHidDevice));
 }
예제 #9
0
 public IEnumerable <IHidDevice> Enumerate()
 {
     return(HidDevices.Enumerate().
            Select(d => d as IHidDevice));
 }
예제 #10
0
 public IHidDevice GetDevice(string devicePath)
 {
     return(HidDevices.GetDevice(devicePath) as IHidDevice);
 }