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

Public Member Functions

 request (const struct control &control, const data_t &data={}, uint16_t size=sizeof(data_t))
 

Public Attributes

uint8_t __reserved: 3
 
data_t data
 
dx_enum_prefix direction direction: 1
 
uint16_t index
 
uint16_t length = 0
 
dx_enum_prefix recipient recipient: 2
 
uint16_t size
 
dx_enum_prefix type type: 2
 
uint16_t value
 

Member Enumeration Documentation

◆ direction

Enumerator
out 
in 

◆ recipient

Enumerator
device 
interface 
endpoint 
other 

◆ request

Enumerator
get_status 
clear_feature 
get_state 
set_feature 
_reserved 
set_address 
get_descriptor 

◆ type

Enumerator
standard 
cls 
vendor 

Constructor & Destructor Documentation

◆ request()

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,
const data_t & data = {},
uint16_t size = sizeof(data_t) )
inline
+ Here is the caller graph for this function:

Member Data Documentation

◆ __reserved

uint8_t dx::usb::__request_type::__reserved
inherited

◆ data

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

◆ direction

◆ index

uint16_t dx::usb::control::index
inherited

◆ length

uint16_t dx::usb::control::length = 0
inherited

◆ recipient

◆ size

template<typename data_t = char, typename = typename std::enable_if<!std::is_pointer<data_t>::value>>
uint16_t dx::usb::request< data_t, typename >::size

◆ type

◆ value

uint16_t 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 Oct 2 2024

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.