dxd - dynax driver framework
cross platform open source driver development framework
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 class  direction : unsigned char { out , in }
 
enum class  recipient : unsigned char { device , interface , endpoint , other }
 
enum  request : unsigned char {
  get_status , clear_feature , get_state , set_feature ,
  _reserved , set_address , get_descriptor
}
 
enum class  type : unsigned char { standard , cls , vendor }
 

Public Member Functions

 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))
 
 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))
 

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

◆ direction

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

◆ recipient

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

◆ request

enum dx::usb::control::request : unsigned char
inherited
Enumerator
get_status 
clear_feature 
get_state 
set_feature 
_reserved 
set_address 
get_descriptor 

◆ type

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

Constructor & Destructor Documentation

◆ request() [1/4]

template<typename data_t >
dx::usb::request< data_t >::request ( const struct control control,
data_t *  data,
unsigned short  size = sizeof(data_t) 
)
inline

◆ request() [2/4]

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

◆ request() [3/4]

template<typename data_t >
dx::usb::request< data_t >::request ( const struct control control,
data_t *  data,
unsigned short  size = sizeof(data_t) 
)
inline

◆ request() [4/4]

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

◆ data

template<typename data_t >
const data_t * dx::usb::request< data_t >::data

◆ direction

◆ index

unsigned short dx::usb::control::index
inherited

◆ length

unsigned short dx::usb::control::length = 0
inherited

◆ recipient

◆ returned_size

template<typename data_t >
unsigned int dx::usb::request< data_t >::returned_size

◆ type

◆ value

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 Fri Jun 18 2021

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.