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

Go to the source code of this file.

Classes

struct  co_usb::endpoint< Direction >
 USB endpoint templated on its direction. More...
 

Namespaces

namespace  co_usb
 

Enumerations

enum class  co_usb::endpoint_type : uint8_t {
  co_usb::control = 0 , co_usb::bulk , co_usb::interrupt , co_usb::isochronous ,
  co_usb::bulk_stream
}
 
enum class  co_usb::ep_direction { co_usb::out = 0x00 , co_usb::in = 0x80 , co_usb::both = 0xFF }
 

Functions

endpoint< ep_direction::inco_usb::ep_in (uint8_t ep, const interface &iface) noexcept
 Wrapper around endpoint<co_usb::ep_direction::in>::make_safe.
 
endpoint< ep_direction::outco_usb::ep_out (uint8_t ep, const interface &iface) noexcept
 Wrapper around endpoint<co_usb::ep_direction::out>::make_safe.
 
endpoint< ep_direction::bothco_usb::ep_any (uint8_t ep, const interface &iface) noexcept
 Creates an endpoint with an unknown direction.