|
co_usb
|
RAII wrapper for an interface. More...
#include "co_usb/usb_error.hpp"#include "co_usb/wrapper/detail/device_handle_source.hpp"#include "co_usb/wrapper/detail/error_protocol.hpp"#include "co_usb/wrapper/error_protocol.hpp"#include <libusb.h>#include <system_error>

Go to the source code of this file.
Classes | |
| struct | co_usb::interface |
| RAII wrapper for an interface. More... | |
Namespaces | |
| namespace | co_usb |
Functions | |
| 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. | |
RAII wrapper for an interface.