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

RAII wrapper for an interface. More...

Include dependency graph for interface.hpp:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

RAII wrapper for an interface.