co_usb
Loading...
Searching...
No Matches
device_handle.hpp File Reference

RAII wrapper around libusb_device_handle*. More...

#include "co_usb/ev/detail/handler_service.hpp"
#include "co_usb/usb_error.hpp"
#include "co_usb/wrapper/detail/error_protocol.hpp"
#include "co_usb/wrapper/device_ref.hpp"
#include "co_usb/wrapper/device_triplet.hpp"
#include "co_usb/wrapper/error_protocol.hpp"
#include <boost/capy/ex/executor_ref.hpp>
#include <libusb.h>
#include <memory>
#include <version>
Include dependency graph for device_handle.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  co_usb::device_handle
 RAII wrapper around libusb_device_handle*. More...
 

Namespaces

namespace  co_usb
 

Functions

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.
 

Detailed Description

RAII wrapper around libusb_device_handle*.