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

USB endpoint aggregate templated on its direction. More...

#include "co_usb/wrapper/detail/device_handle_source.hpp"
#include <cstdint>
#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::transfer::endpoint< Direction >
 USB endpoint aggregate templated on its direction. More...
 

Namespaces

namespace  co_usb
 
namespace  co_usb::transfer
 

Enumerations

enum class  co_usb::transfer::endpoint_direction { co_usb::transfer::endpoint_direction::out = 0x00 , co_usb::transfer::endpoint_direction::in = 0x80 , co_usb::transfer::endpoint_direction::any = 0xFF }
 Direction of an endpoint. More...
 

Functions

auto co_usb::transfer::ep_out (uint8_t ep_addr, co_usb::detail::DeviceHandleSource auto const &devh_src) -> endpoint< endpoint_direction::out >
 
auto co_usb::transfer::ep_in (uint8_t ep_addr, co_usb::detail::DeviceHandleSource auto const &devh_src) -> endpoint< endpoint_direction::in >
 
auto co_usb::transfer::ep_any (uint8_t ep_addr, co_usb::detail::DeviceHandleSource auto const &devh_src) -> endpoint< endpoint_direction::any >
 

Detailed Description

USB endpoint aggregate templated on its direction.