dxd - dynax driver framework  3208
cross platform open source driver development framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dx::usb::request< data_t, typename > Struct Template Reference

#include <dx_usb.h>

+ Inheritance diagram for dx::usb::request< data_t, typename >:
+ Collaboration diagram for dx::usb::request< data_t, typename >:

Public Types

enum  direction : unsigned char { direction::out, direction::in }
 
enum  recipient : unsigned char { recipient::device, recipient::interface, recipient::endpoint, recipient::other }
 
enum  request : unsigned char {
  get_status, clear_feature, get_state, set_feature,
  _reserved, set_address, get_descriptor
}
 
enum  type : unsigned char { type::standard, type::cls, type::vendor }
 

Public Member Functions

 request (const struct control &control, data_t &data, unsigned short size=sizeof(data_t))
 

Public Attributes

data_t data
 
dx_enum_prefix direction direction: 1
 
unsigned short index
 
unsigned short length = 0
 
dx_enum_prefix recipient recipient: 2
 
unsigned short size
 
dx_enum_prefix type type: 2
 
unsigned short value
 

Member Enumeration Documentation

enum dx::usb::__request_type::direction : unsigned char
stronginherited
Enumerator
out 
in 
enum dx::usb::__request_type::recipient : unsigned char
stronginherited
Enumerator
device 
interface 
endpoint 
other 
enum dx::usb::control::request : unsigned char
inherited
Enumerator
get_status 
clear_feature 
get_state 
set_feature 
_reserved 
set_address 
get_descriptor 
enum dx::usb::__request_type::type : unsigned char
stronginherited
Enumerator
standard 
cls 
vendor 

Constructor & Destructor Documentation

template<typename data_t = char, typename = typename std::enable_if<!std::is_pointer<data_t>::value>>
dx::usb::request< data_t, typename >::request ( const struct control control,
data_t &  data,
unsigned short  size = sizeof(data_t) 
)
inline

Member Data Documentation

template<typename data_t = char, typename = typename std::enable_if<!std::is_pointer<data_t>::value>>
data_t dx::usb::request< data_t, typename >::data
unsigned short dx::usb::control::index
inherited
unsigned short dx::usb::control::length = 0
inherited
template<typename data_t = char, typename = typename std::enable_if<!std::is_pointer<data_t>::value>>
unsigned short dx::usb::request< data_t, typename >::size
unsigned short dx::usb::control::value
inherited

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

(c) copyright 2009 dynamic acoustics e.U. generated on Wed Jun 17 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.