Creates an instance of the HidApi Can be used if you don't want to link hidapi crate into your project
()
| 42 | /// |
| 43 | /// Can be used if you don't want to link hidapi crate into your project |
| 44 | pub fn new_hidapi() -> HidResult<HidApi> { |
| 45 | HidApi::new() |
| 46 | } |
| 47 | |
| 48 | /// Actually refreshes the device list |
| 49 | pub fn refresh_device_list(hidapi: &mut HidApi) -> HidResult<()> { |