|
| template<DeviceHandlePointer Ty> |
| auto | co_usb::detail::device_handle_of (Ty &&devh) -> libusb_device_handle * |
| | Obtains a libusb_device_handle * from a co_usb::detail::DeviceHandlePointer.
|
| |
| template<detail::ErrorProtocol< device_handle > ErrTy> |
| auto | co_usb::open_device (boost::capy::executor_ref exec, device_triplet triplet, ErrTy &&errp) -> typename ErrTy::template return_type< device_handle > |
| | Opens a device by triplet and returns a device_handle or reports an error per error protocol implementation.
|
| |
| auto | co_usb::open_device (boost::capy::executor_ref exec, device_triplet triplet) |
| | Opens a device from a device_ref and returns a device_handle or throws an error.
|
| |
| template<detail::ErrorProtocol< device_handle > ErrTy> |
| auto | co_usb::open_device (device_ref dev_ref, ErrTy &&errp) -> typename ErrTy::template return_type< device_handle > |
| | Opens a device from a device_ref and returns a device_handle or reports an error per error protocol implementation.
|
| |
| auto | co_usb::open_device (device_ref dev_ref) |
| | Opens a device from a device_ref and returns a device_handle or throws an error.
|
| |
| template<detail::ErrorProtocol< driver_guard > ErrTy> |
| auto | co_usb::detach_driver (detail::DeviceHandleSource auto const &devh_src, int interface_num, ErrTy &&errp=as_exception()) -> typename ErrTy::template return_type< driver_guard > |
| | Detaches the kernel driver and returns a driver_guard or reports an error per error protocol implementation.
|
| |
| auto | co_usb::detach_driver (detail::DeviceHandleSource auto const &devh_src, int interface_num) -> driver_guard |
| | Detaches the kernel driver and returns a driver_guard or throws an error.
|
| |
| template<detail::ErrorProtocol< interface > ErrTy> |
| auto | co_usb::claim_interface (detail::DeviceHandleSource auto const &devh_src, int interface_num, ErrTy &&errp=as_exception()) -> typename ErrTy::template return_type< interface > |
| | Claims the interface and returns a interface or reports an error per error protocol implementation.
|
| |
| auto | co_usb::claim_interface (detail::DeviceHandleSource auto const &devh_src, int interface_num) -> interface |
| | Claims the interface and returns a interface or throws an error.
|
| |
Some type-safe wrappers and utilities.
template<DeviceHandlePointer Ty>
| auto co_usb::detail::device_handle_of |
( |
Ty && |
devh_src | ) |
-> libusb_device_handle *
|
Obtains a libusb_device_handle * from a co_usb::detail::DeviceHandlePointer.
Obtains a libusb_device_handle * from a co_usb::detail::DeviceHandleSource.
- Template Parameters
-
| Ty | type which models DeviceHandlePointer |
- Parameters
-
Depending on the exact nature of the type will either return the object itself or call get.
- Template Parameters
-
| Ty | type which models DeviceHandleSource |
- Parameters
-
Depending on the exact nature of the type will either return the result of device_handle_of call on the object itself or on the result of get.