co_usb
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
error.hpp File Reference
#include <libusb-1.0/libusb.h>
#include <system_error>
Include dependency graph for error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  co_usb::error_category_t
 
struct  std::is_error_code_enum< co_usb::usb_error >
 

Namespaces

namespace  co_usb
 
namespace  std
 

Enumerations

enum class  co_usb::usb_error : int {
  co_usb::success = LIBUSB_SUCCESS , co_usb::io_error = LIBUSB_ERROR_IO , co_usb::invalid_param = LIBUSB_ERROR_INVALID_PARAM , co_usb::access_error = LIBUSB_ERROR_ACCESS ,
  co_usb::no_device = LIBUSB_ERROR_NO_DEVICE , co_usb::not_found = LIBUSB_ERROR_NOT_FOUND , co_usb::resource_busy = LIBUSB_ERROR_BUSY , co_usb::timed_out = LIBUSB_ERROR_TIMEOUT ,
  co_usb::overflow = LIBUSB_ERROR_OVERFLOW , co_usb::broken_pipe = LIBUSB_ERROR_PIPE , co_usb::interrupted = LIBUSB_ERROR_INTERRUPTED , co_usb::out_of_memory = LIBUSB_ERROR_NO_MEM ,
  co_usb::not_supported = LIBUSB_ERROR_NOT_SUPPORTED , co_usb::unknown = LIBUSB_ERROR_OTHER
}
 

Functions

const std::error_category & co_usb::usb_error_category ()
 
std::error_code co_usb::make_usb_error_code (usb_error e) noexcept
 
std::error_code co_usb::make_usb_error_code (libusb_error e) noexcept