Closed KarlK90 closed 1 year ago
I've added docs.rs specific metadata and documentation hints in the latest commit and also hid the cfg_libusb_only
macro which should be internal(?). The result will look like this:
I find that much nicer, although there are now 2 distinct Impl HidApi
blocks in the documentation...
@ruabmbua thanks for the swift review, applied changes and added IMHO better platform specific documentation.
Thanks for the contribution!
This PR implements FFI bindings and safe implementations for the following APIs that where added in
hidapi
release 0.12MacOS:
hid_darwin_get_location_id()
hid_darwin_set_open_exclusive()
hid_darwin_get_open_exclusive()
hid_darwin_is_device_open_exclusive()
Windows:
hid_winapi_get_container_id()
The
hid_darwin_set_open_exclusive()
API is also put to use by introducing themacos-shared-device
feature flag for MacOS so it is possible to have multipleHidDevice
handles that access the same physical device.A convenience addition is the implementation of
Debug
forHidDevice
, this will only printHidDevice
but allows wrapping types likeHidResult<HidDevice>
into adbg!
macro.