dxd - dynax driver framework  3211
cross platform open source driver development framework
dx::usb::__request_type Struct Reference

standard USB control request definitions More...

#include <dx_usb.h>

+ Inheritance diagram for dx::usb::__request_type:

Public Types

enum  direction : unsigned char { direction::out, direction::in }
 
enum  recipient : unsigned char { recipient::device, recipient::interface, recipient::endpoint, recipient::other }
 
enum  type : unsigned char { type::standard, type::cls, type::vendor }
 

Public Member Functions

 __request_type (dx_enum_prefix recipient recipient, dx_enum_prefix type type, dx_enum_prefix direction direction)
 

Public Attributes

unsigned char _reserved: 3
 
dx_enum_prefix direction direction: 1
 
dx_enum_prefix recipient recipient: 2
 
dx_enum_prefix type type: 2
 

Detailed Description

standard USB control request definitions

Member Enumeration Documentation

◆ direction

enum dx::usb::__request_type::direction : unsigned char
strong
Enumerator
out 
in 

◆ recipient

enum dx::usb::__request_type::recipient : unsigned char
strong
Enumerator
device 
interface 
endpoint 
other 

◆ type

enum dx::usb::__request_type::type : unsigned char
strong
Enumerator
standard 
cls 
vendor 

Constructor & Destructor Documentation

◆ __request_type()

dx::usb::__request_type::__request_type ( dx_enum_prefix recipient  recipient,
dx_enum_prefix type  type,
dx_enum_prefix direction  direction 
)
inline
Todo:
remove constructor when C++20 becomes available constructor only needed to initialze _reserved bitfiled (which should be anonymous)

Member Data Documentation

◆ _reserved

unsigned char dx::usb::__request_type::_reserved

◆ direction

◆ recipient

◆ type


The documentation for this struct was generated from the following file:

(c) copyright 2009 dynamic acoustics e.U. generated on Sat Aug 22 2020

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.