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 > Struct Template Reference

#include <dx_usb_device.h>

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

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))
 
 request (const struct control &control, data_t *data, unsigned short size=sizeof(data_t))
 
 request (const struct control &control, const data_t &data, unsigned short size=sizeof(data_t))
 
 request (const struct control &control, const data_t &data, unsigned short size=sizeof(data_t))
 

Public Attributes

const data_t * data
 
dx_enum_prefix direction direction: 1
 
unsigned short index
 
unsigned short length = 0
 
dx_enum_prefix recipient recipient: 2
 
unsigned int returned_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 >
dx::usb::request< data_t >::request ( const struct control control,
data_t *  data,
unsigned short  size = sizeof(data_t) 
)
inline
template<typename data_t >
dx::usb::request< data_t >::request ( const struct control control,
const data_t &  data,
unsigned short  size = sizeof(data_t) 
)
inline
template<typename data_t >
dx::usb::request< data_t >::request ( const struct control control,
data_t *  data,
unsigned short  size = sizeof(data_t) 
)
inline
template<typename data_t >
dx::usb::request< data_t >::request ( const struct control control,
const data_t &  data,
unsigned short  size = sizeof(data_t) 
)
inline

Member Data Documentation

template<typename data_t >
const data_t * dx::usb::request< data_t >::data
unsigned short dx::usb::control::index
inherited
unsigned short dx::usb::control::length = 0
inherited
template<typename data_t >
unsigned int dx::usb::request< data_t >::returned_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.