dxd - dynax driver framework 2.1.0d48
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::usb::platform::device Class Reference

#include <dx_usb_device_platform.h>

+ Inheritance diagram for dx::usb::platform::device:
+ Collaboration diagram for dx::usb::platform::device:

Classes

struct  void_struct
 

Public Types

typedef ::io_service_t creator
 
enum class  speed : unsigned char {
  low = ::UsbLowSpeed , full = ::UsbFullSpeed , high = ::UsbHighSpeed , super = ::UsbSuperSpeed ,
  superplus = 4 , superplus2 = 5 , usb1 = full , usb2 = high ,
  usb3 = super , usb31 = super , usb32 = superplus , usb32x2 = superplus2
}
 

Public Member Functions

deviceclose () noexcept
 
virtual void conclude ()
 conclude notifacation: device will be removed from tree
 
virtual void conclude () noexcept
 conclude notification: device will be removed from tree
 
unsigned char configuration () const
 
virtual unsigned char configuration (unsigned char configuration)
 
unsigned char configurations () const
 
void ctl (uint32_t ioctl) const
 
void ctl (unsigned int ioctl) const
 
 device (generic::driver &driver, ::io_service_t io_service)
 the device class constructor
 
 device (generic::driver &driver, const creator &creator)
 the device class constructor
 
 dx_catchall_rethrow () bool operator
 
 dx_catchall_rethrow (, "name: %s, access rights: %x, sharing options:%x", name, access, share)
 
 dx_catchall_rethrow (if(autoclear) try {const_cast< device * >(this) ->clear();} dx_catchall(), "handle: %p size: %lld request: %x idx: %x value: %x length: %x", winusb.handle, sizeof(request), request.control::request, request.index, request.value, request.length) template< typename data_t
 
 dx_catchall_rethrow (try {if(exception.error==stalled) const_cast< device * >(this) ->reset();} dx_catchall_handler(this,), "request type:%x [recipient:%d type:%x direction:%x] request:%x value:%x index:%x length:%d", reinterpret_cast< const uint8_t & >(request), request.recipient, request.type, request.direction, request.control::request, request.value, request.index, request.length) template< typename data_t >data_t submit(const control &control) const
 device control request
 
registryerase (const char *key=nullptr)
 
virtual void exception (const dx::exception &exception, bool filtered=false) const noexcept
 
uint64_t frame () const
 
uint64_t frame () const
 
void free () noexcept
 
::CFTypeRef get (::CFStringRef key) const
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t get (::CFStringRef key) const
 
::CFTypeRef get (::CFStringRef key, ::CFTypeRef dflt) const noexcept
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t get (::CFStringRef key, ::CFTypeRef dflt) const noexcept
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t get (::CFStringRef key, value_t dflt) const noexcept
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t get (::CFStringRef key, value_t dflt) const noexcept
 
template<typename key_t , typename = cf::enable_if_convertible<key_t>>
::CFTypeRef get (key_t key) const
 
template<typename key_t , typename value_t , typename = cf::enable_if_convertible<key_t>, typename = cf::enable_if_convertible<value_t>>
value_t get (key_t key) const
 
template<typename rx_t >
rx_t ictl (uint32_t ioctl) const
 member ioctl
 
template<typename rx_t >
size_t ictl (uint32_t ioctl, rx_t &rx) const
 
template<typename rx_t >
rx_t ictl (unsigned int ioctl) const
 Windows: member ioctl.
 
template<typename rx_t >
size_t ictl (unsigned int ioctl, rx_t &rx) const
 
void initialize (const char *name, ::DWORD access=GENERIC_READ|GENERIC_WRITE, ::DWORD share=FILE_SHARE_READ|FILE_SHARE_WRITE) try
 (re-)initialization the underlaying windows API is CreateFile(). for detailed information see http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx
 
void initialize (const char *path, ::HKEY root, ::REGSAM rights=KEY_READ, const char *key=nullptr)
 
void initialize (const char *path, ::REGSAM rights=KEY_READ, ::HKEY root=HKEY_CURRENT_USER, const char *key=nullptr)
 
template<typename rx_t , typename tx_t >
rx_t ioctl (uint32_t ioctl, const tx_t &tx) const
 
template<typename rx_t , typename tx_t >
size_t ioctl (uint32_t ioctl, const tx_t &tx, rx_t &rx) const
 
size_t ioctl (uint32_t ioctl, const void *tx=nullptr, size_t tx_size=0, void *rx=nullptr, size_t rx_size=0) const
 
template<typename rx_t , typename tx_t >
rx_t ioctl (unsigned int ioctl, const tx_t &tx) const
 
template<typename tx_t , typename rx_t >
size_t ioctl (unsigned int ioctl, const tx_t &tx, rx_t &rx) const
 
virtual void launch ()
 launch notification: device mounted in tree and ready to use
 
virtual void launch ()
 launch notifacation: device mounted in tree and ready to use
 
template<typename tx_t >
void octl (uint32_t ioctl, const tx_t &tx) const
 
template<typename tx_t >
void octl (unsigned int ioctl, const tx_t &tx) const
 
deviceopen ()
 for macOS compatibility only
 
 operator const object_t & () const noexcept
 auto converter into const object
 
 operator const object_t & () const noexcept
 auto converter into const object
 
 operator const os_event () const noexcept
 
 operator object_t & () noexcept
 auto converter into object
 
 operator object_t & () noexcept
 auto converter into object
 
 operator object_t * () noexcept
 auto converter into object pointer
 
 operator object_t * () noexcept
 auto converter into object pointer
 
 operator os_event () noexcept
 
 operator std::string () const
 
 operator uint64_t () const
 
 operator uint64_t () const
 
template<typename value_t >
 operator value_t () const
 
template<typename value_t >
value_t operator() (value_t dflt) const
 
 operator::CFMutableDictionaryRef () const
 
 operator::CFMutableDictionaryRef () const
 
 operator::CFStringRef () const
 
 operator::CFStringRef () const
 
 operator::HANDLE () const noexcept
 
 operator::HKEY () const noexcept
 
bool operator== (object_t object) const noexcept
 
bool operator== (object_t object) const noexcept
 
::CFTypeRef operator[] (::CFStringRef key) const
 
::CFTypeRef operator[] (::CFStringRef key) const
 
registry operator[] (const char *key) const
 
template<typename key_t , typename = cf::enable_if_convertible<key_t>>
::CFTypeRef operator[] (key_t key) const
 
template<typename key_t , typename = cf::enable_if_convertible<key_t>>
::CFTypeRef operator[] (key_t key) const
 
devicereenumerate ()
 
devicereset ()
 
registryset (::CFStringRef key, ::CFTypeRef value)
 
registryset (::CFStringRef key, ::CFTypeRef value) noexcept
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
registryset (::CFStringRef key, value_t value)
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
registryset (::CFStringRef key, value_t value)
 
registryset (::CFTypeRef properties)
 Setting properties in a registry entry is not generally supported, it is more common to support setting of properties of the connection based property setting of dx::device.
 
registryset (::CFTypeRef properties)
 Setting properties in a registry entry is not generally supported, it is more common to support setting of properties of the connection based property setting of dx::device.
 
template<typename key_t , typename = cf::enable_if_convertible<key_t>>
registryset (key_t key, ::CFTypeRef value)
 
template<typename key_t , typename = cf::enable_if_convertible<key_t>>
registryset (key_t key, ::CFTypeRef value)
 
template<typename key_t , typename value_t , typename = cf::enable_if_convertible<key_t>, typename = cf::enable_if_convertible<value_t>>
registryset (key_t key, value_t value)
 
template<typename key_t , typename value_t , typename = cf::enable_if_convertible<key_t>, typename = cf::enable_if_convertible<value_t>>
registryset (key_t key, value_t value)
 
devicesubmit (const control &control) const
 
template<typename data_t >
devicesubmit (const request< data_t > &request) const try
 standard device request
 
template<typename data_t >
devicesubmit (const request< data_t > &request, bool autoclear=true) const try
 
virtual ~device () noexcept
 

Public Attributes

bool composite = false
 indicate WinUSB matched against single interface of composit device;
 
generic::driverdriver
 
bool launched = false
 
cf::preference preference
 
enum dx::usb::platform::device::speed speed
 

Protected Member Functions

void initialize (::IOCFPlugInInterface **cf_interface, ::CFUUIDRef uuid)
 
void initialize (io_object_t io_object, ::CFUUIDRef type, ::CFUUIDRef uuid)
 
 operator interface_t ** () const
 
interface_t * operator-> () const
 

Protected Attributes

struct { 
 
   cf::type< const char * >   bundle_id 
 
   cf::type< const char * >   class_name 
 
kernel 
 
std::atomic< int > opened {}
 
io::port port
 
::HANDLE process = ::GetCurrentProcess()
 
struct { 
 
   ::WINUSB_INTERFACE_HANDLE   handle 
 
winusb 
 

Member Typedef Documentation

◆ creator

typedef ::io_service_t dx::usb::platform::device::creator

Member Enumeration Documentation

◆ speed

enum class dx::usb::platform::device::speed : unsigned char
strong
Enumerator
low 
full 
high 
super 
superplus 
superplus2 
usb1 
usb2 
usb3 
usb31 
usb32 
usb32x2 

Constructor & Destructor Documentation

◆ device() [1/2]

dx::usb::platform::device::device ( generic::driver & driver,
::io_service_t io_service )
inline

the device class constructor

Exceptions
kIOReturnNoMemory means that the system couldn't allocate the class defined in the drivers plist, or nub which ever its trying connecting to

obtain version info

statically gets the device speed

Parameters
io_servicethe IOService object to open the device connection for. This will be held (but not retained) during device class lifetime

◆ ~device()

virtual dx::usb::platform::device::~device ( )
inlinevirtualnoexcept

Reimplemented from dx::device.

◆ device() [2/2]

dx::usb::platform::device::device ( generic::driver & driver,
const creator & creator )
inline

the device class constructor

Exceptions

statically gets the device speed

Member Function Documentation

◆ close()

device & dx::usb::platform::device::close ( )
inlinenoexcept

◆ conclude() [1/2]

virtual void dx::device::conclude ( )
inlinevirtualinherited

conclude notifacation: device will be removed from tree

◆ conclude() [2/2]

virtual void dx::device::conclude ( )
inlinevirtualnoexceptinherited

conclude notification: device will be removed from tree

+ Here is the caller graph for this function:

◆ configuration() [1/2]

unsigned char dx::usb::platform::device::configuration ( ) const
inline

◆ configuration() [2/2]

virtual unsigned char dx::usb::platform::device::configuration ( unsigned char configuration)
inlinevirtual

◆ configurations()

unsigned char dx::usb::platform::device::configurations ( ) const
inline

◆ ctl() [1/2]

void dx::device::ctl ( uint32_t ioctl) const
inlineinherited

◆ ctl() [2/2]

void dx::device::ctl ( unsigned int ioctl) const
inlineinherited

◆ dx_catchall_rethrow() [1/4]

dx::usb::platform::device::dx_catchall_rethrow ( )

◆ dx_catchall_rethrow() [2/4]

dx::file::dx_catchall_rethrow ( "name: % s,
access rights:% x,
sharing options:%x" ,
name ,
access ,
share  )
inherited

◆ dx_catchall_rethrow() [3/4]

dx::usb::platform::device::dx_catchall_rethrow ( if(autoclear) try {const_cast< device * >(this) ->clear();} dx_catchall() ,
"handle: %p size: %lld request: %x idx: %x value: %x length: %x" ,
winusb. handle,
sizeof(request) ,
request.control::request ,
request. index,
request. value,
request. length )

◆ dx_catchall_rethrow() [4/4]

dx::usb::platform::device::dx_catchall_rethrow ( try { ifexception.error==stalled) const_cast< device * >(this) ->reset();} dx_catchall_handler(this,,
"request type:%x request:%x value:%x index:%x length:%d" [recipient:%d type:%x direction:%x],
reinterpret_cast< const uint8_t & > request,
request. recipient,
request. type,
request. direction,
request.control::request ,
request. value,
request. index,
request. length ) const &
inline

device control request

◆ erase()

registry & dx::registry::erase ( const char * key = nullptr)
inlineinherited

◆ exception()

virtual void dx::usb::platform::device::exception ( const dx::exception & exception,
bool filtered = false ) const
inlinevirtualnoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ frame() [1/2]

uint64_t dx::usb::platform::device::frame ( ) const
inline
+ Here is the caller graph for this function:

◆ frame() [2/2]

uint64_t dx::usb::platform::device::frame ( ) const
inline
+ Here is the call graph for this function:

◆ free()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
void dx::object< invalid_t >::free ( )
inlinenoexceptinherited
+ Here is the caller graph for this function:

◆ get() [1/8]

::CFTypeRef dx::io::registry::get ( ::CFStringRef key) const
inlineinherited
+ Here is the caller graph for this function:

◆ get() [2/8]

template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t dx::io::registry::get ( ::CFStringRef key) const
inlineinherited
+ Here is the call graph for this function:

◆ get() [3/8]

::CFTypeRef dx::io::registry::get ( ::CFStringRef key,
::CFTypeRef dflt ) const
inlinenoexceptinherited

◆ get() [4/8]

template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t dx::io::registry::get ( ::CFStringRef key,
::CFTypeRef dflt ) const
inlinenoexceptinherited
+ Here is the call graph for this function:

◆ get() [5/8]

template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t dx::io::registry::get ( ::CFStringRef key,
value_t dflt ) const
inlinenoexceptinherited
+ Here is the call graph for this function:

◆ get() [6/8]

template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t dx::io::registry::get ( ::CFStringRef key,
value_t dflt ) const
inlinenoexceptinherited
+ Here is the call graph for this function:

◆ get() [7/8]

template<typename key_t , typename = cf::enable_if_convertible<key_t>>
::CFTypeRef dx::io::registry::get ( key_t key) const
inlineinherited
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get() [8/8]

template<typename key_t , typename value_t , typename = cf::enable_if_convertible<key_t>, typename = cf::enable_if_convertible<value_t>>
value_t dx::io::registry::get ( key_t key) const
inlineinherited
+ Here is the call graph for this function:

◆ ictl() [1/4]

template<typename rx_t >
rx_t dx::device::ictl ( uint32_t ioctl) const
inlineinherited

member ioctl

this member retreives data from the device by providing an IOCTL code. the template argument defines the type of data to be retreived. this member is intended as a convinient way to retreive only small amounts of data since there is an intermediate stack copy involved in returning the data.

+ Here is the caller graph for this function:

◆ ictl() [2/4]

template<typename rx_t >
size_t dx::device::ictl ( uint32_t ioctl,
rx_t & rx ) const
inlineinherited

◆ ictl() [3/4]

template<typename rx_t >
rx_t dx::device::ictl ( unsigned int ioctl) const
inlineinherited

Windows: member ioctl.

this member retreives data from the device by providing an IOCTL code. the template argument defines the type of data to be retreived. this member is intended as a convinient way to retreive only small amounts of data since there is an intermediate stack copy involved in returning the data.

the underlaying windows API is DeviceIoControl(). for detailed information see http://msdn.microsoft.com/en-us/library/aa363216(VS.85).aspx

Exceptions
n/amicrosoft does not give information about what possible errors values are provided by its OS other than
ERROR_INSUFFICIENT_BUFFERif the output buffer is too small to receive any data

◆ ictl() [4/4]

template<typename rx_t >
size_t dx::device::ictl ( unsigned int ioctl,
rx_t & rx ) const
inlineinherited

◆ initialize() [1/5]

template<typename interface_t >
void dx::cf::interface< interface_t >::initialize ( ::IOCFPlugInInterface ** cf_interface,
::CFUUIDRef uuid )
inlineprotectedinherited

◆ initialize() [2/5]

void dx::file::initialize ( const char * name,
::DWORD access = GENERIC_READ| GENERIC_WRITE,
::DWORD share = FILE_SHARE_READ| FILE_SHARE_WRITE )
inlineinherited

(re-)initialization the underlaying windows API is CreateFile(). for detailed information see http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx

Exceptions
n/amicrosoft does not give information about what possible errors values are provided by its OS
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize() [3/5]

void dx::registry::initialize ( const char * path,
::HKEY root,
::REGSAM rights = KEY_READ,
const char * key = nullptr )
inlineinherited
+ Here is the caller graph for this function:

◆ initialize() [4/5]

void dx::registry::initialize ( const char * path,
::REGSAM rights = KEY_READ,
::HKEY root = HKEY_CURRENT_USER,
const char * key = nullptr )
inlineinherited

◆ initialize() [5/5]

template<typename interface_t >
void dx::cf::interface< interface_t >::initialize ( io_object_t io_object,
::CFUUIDRef type,
::CFUUIDRef uuid )
protectedinherited

◆ ioctl() [1/5]

template<typename rx_t , typename tx_t >
rx_t dx::device::ioctl ( uint32_t ioctl,
const tx_t & tx ) const
inlineinherited

◆ ioctl() [2/5]

template<typename rx_t , typename tx_t >
size_t dx::device::ioctl ( uint32_t ioctl,
const tx_t & tx,
rx_t & rx ) const
inlineinherited
+ Here is the caller graph for this function:

◆ ioctl() [3/5]

size_t dx::device::ioctl ( uint32_t ioctl,
const void * tx = nullptr,
size_t tx_size = 0,
void * rx = nullptr,
size_t rx_size = 0 ) const
inlineinherited

◆ ioctl() [4/5]

template<typename rx_t , typename tx_t >
rx_t dx::device::ioctl ( unsigned int ioctl,
const tx_t & tx ) const
inlineinherited

◆ ioctl() [5/5]

template<typename tx_t , typename rx_t >
size_t dx::device::ioctl ( unsigned int ioctl,
const tx_t & tx,
rx_t & rx ) const
inlineinherited

◆ launch() [1/2]

virtual void dx::device::launch ( )
inlinevirtualinherited

launch notification: device mounted in tree and ready to use

◆ launch() [2/2]

virtual void dx::device::launch ( )
inlinevirtualinherited

launch notifacation: device mounted in tree and ready to use

◆ octl() [1/2]

template<typename tx_t >
void dx::device::octl ( uint32_t ioctl,
const tx_t & tx ) const
inlineinherited
+ Here is the caller graph for this function:

◆ octl() [2/2]

template<typename tx_t >
void dx::device::octl ( unsigned int ioctl,
const tx_t & tx ) const
inlineinherited

◆ open()

device & dx::usb::platform::device::open ( )
inline

for macOS compatibility only

◆ operator const object_t &() [1/2]

template<typename object_t >
dx::io::reference< object_t >::operator const object_t & ( ) const
inlinenoexceptinherited

auto converter into const object

◆ operator const object_t &() [2/2]

template<typename object_t >
dx::io::reference< object_t >::operator const object_t & ( ) const
inlinenoexceptinherited

auto converter into const object

◆ operator const os_event()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::object< invalid_t >::operator const os_event ( ) const
inlinenoexceptinherited

◆ operator interface_t **()

template<typename interface_t >
dx::cf::interface< interface_t >::operator interface_t ** ( ) const
inlineinherited

◆ operator object_t &() [1/2]

template<typename object_t >
dx::io::reference< object_t >::operator object_t & ( )
inlinenoexceptinherited

auto converter into object

◆ operator object_t &() [2/2]

template<typename object_t >
dx::io::reference< object_t >::operator object_t & ( )
inlinenoexceptinherited

auto converter into object

◆ operator object_t *() [1/2]

template<typename object_t >
dx::io::reference< object_t >::operator object_t * ( )
inlinenoexceptinherited

auto converter into object pointer

◆ operator object_t *() [2/2]

template<typename object_t >
dx::io::reference< object_t >::operator object_t * ( )
inlinenoexceptinherited

auto converter into object pointer

◆ operator os_event()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::object< invalid_t >::operator os_event ( )
inlinenoexceptinherited

◆ operator std::string()

dx::registry::operator std::string ( ) const
inlineinherited

◆ operator uint64_t() [1/2]

dx::io::registry::operator uint64_t ( ) const
inlineexplicitinherited

◆ operator uint64_t() [2/2]

dx::io::registry::operator uint64_t ( ) const
inlineexplicitinherited

◆ operator value_t()

template<typename value_t >
dx::registry::operator value_t ( ) const
inlineinherited

◆ operator()()

template<typename value_t >
value_t dx::registry::operator() ( value_t dflt) const
inlineinherited

◆ operator->()

template<typename interface_t >
interface_t * dx::cf::interface< interface_t >::operator-> ( ) const
inlineinherited

◆ operator::CFMutableDictionaryRef() [1/2]

dx::io::registry::operator::CFMutableDictionaryRef ( ) const
inlineexplicitinherited

◆ operator::CFMutableDictionaryRef() [2/2]

dx::io::registry::operator::CFMutableDictionaryRef ( ) const
inlineexplicitinherited

◆ operator::CFStringRef() [1/2]

dx::io::registry::operator::CFStringRef ( ) const
inlineexplicitinherited

◆ operator::CFStringRef() [2/2]

dx::io::registry::operator::CFStringRef ( ) const
inlineexplicitinherited

◆ operator::HANDLE()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::object< invalid_t >::operator::HANDLE ( ) const
inlinenoexceptinherited

◆ operator::HKEY()

dx::registry::operator::HKEY ( ) const
inlinenoexceptinherited

◆ operator==() [1/2]

template<typename object_t >
bool dx::io::reference< object_t >::operator== ( object_t object) const
inlinenoexceptinherited

◆ operator==() [2/2]

template<typename object_t >
bool dx::io::reference< object_t >::operator== ( object_t object) const
inlinenoexceptinherited

◆ operator[]() [1/5]

::CFTypeRef dx::io::registry::operator[] ( ::CFStringRef key) const
inlineinherited
+ Here is the call graph for this function:

◆ operator[]() [2/5]

::CFTypeRef dx::io::registry::operator[] ( ::CFStringRef key) const
inlineinherited
+ Here is the call graph for this function:

◆ operator[]() [3/5]

registry dx::registry::operator[] ( const char * key) const
inlineinherited

◆ operator[]() [4/5]

template<typename key_t , typename = cf::enable_if_convertible<key_t>>
::CFTypeRef dx::io::registry::operator[] ( key_t key) const
inlineinherited
+ Here is the call graph for this function:

◆ operator[]() [5/5]

template<typename key_t , typename = cf::enable_if_convertible<key_t>>
::CFTypeRef dx::io::registry::operator[] ( key_t key) const
inlineinherited
+ Here is the call graph for this function:

◆ reenumerate()

device & dx::usb::platform::device::reenumerate ( )
inline

◆ reset()

device & dx::usb::platform::device::reset ( )
inline

◆ set() [1/10]

registry & dx::io::registry::set ( ::CFStringRef key,
::CFTypeRef value )
inlineinherited

◆ set() [2/10]

registry & dx::device::set ( ::CFStringRef key,
::CFTypeRef value )
inlinenoexceptinherited

◆ set() [3/10]

template<typename value_t , typename = cf::enable_if_convertible<value_t>>
registry & dx::device::set ( ::CFStringRef key,
value_t value )
inlineinherited

◆ set() [4/10]

template<typename value_t , typename = cf::enable_if_convertible<value_t>>
registry & dx::io::registry::set ( ::CFStringRef key,
value_t value )
inlineinherited
+ Here is the call graph for this function:

◆ set() [5/10]

registry & dx::device::set ( ::CFTypeRef properties)
inlineinherited

Setting properties in a registry entry is not generally supported, it is more common to support setting of properties of the connection based property setting of dx::device.

◆ set() [6/10]

registry & dx::io::registry::set ( ::CFTypeRef properties)
inlineinherited

Setting properties in a registry entry is not generally supported, it is more common to support setting of properties of the connection based property setting of dx::device.

+ Here is the caller graph for this function:

◆ set() [7/10]

template<typename key_t , typename = cf::enable_if_convertible<key_t>>
registry & dx::device::set ( key_t key,
::CFTypeRef value )
inlineinherited

◆ set() [8/10]

template<typename key_t , typename = cf::enable_if_convertible<key_t>>
registry & dx::io::registry::set ( key_t key,
::CFTypeRef value )
inlineinherited
+ Here is the call graph for this function:

◆ set() [9/10]

template<typename key_t , typename value_t , typename = cf::enable_if_convertible<key_t>, typename = cf::enable_if_convertible<value_t>>
registry & dx::device::set ( key_t key,
value_t value )
inlineinherited

◆ set() [10/10]

template<typename key_t , typename value_t , typename = cf::enable_if_convertible<key_t>, typename = cf::enable_if_convertible<value_t>>
registry & dx::io::registry::set ( key_t key,
value_t value )
inlineinherited
+ Here is the call graph for this function:

◆ submit() [1/3]

device & dx::usb::platform::device::submit ( const control & control) const
inline

◆ submit() [2/3]

template<typename data_t >
device & dx::usb::platform::device::submit ( const request< data_t > & request) const
inline

standard device request

◆ submit() [3/3]

template<typename data_t >
device & dx::usb::platform::device::submit ( const request< data_t > & request,
bool autoclear = true ) const
inline

Member Data Documentation

◆ bundle_id

cf::type<const char*> dx::usb::platform::device::bundle_id

◆ class_name

cf::type<const char*> dx::usb::platform::device::class_name

◆ composite

bool dx::usb::platform::device::composite = false

indicate WinUSB matched against single interface of composit device;

◆ driver

generic::driver& dx::usb::platform::device::driver

◆ handle

::WINUSB_INTERFACE_HANDLE dx::usb::platform::device::handle

◆ [struct]

struct { ... } dx::usb::platform::device::kernel

◆ launched

bool dx::device::launched = false
inherited

◆ opened

std::atomic< int > dx::usb::platform::device::opened {}
protected
Todo
add runloop ////////////////////////////////////////////////////////////////////////////

◆ port

io::port dx::device::port
protectedinherited

◆ preference

cf::preference dx::usb::platform::device::preference

◆ process

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
::HANDLE dx::object< invalid_t >::process = ::GetCurrentProcess()
protectedinherited

◆ speed

enum dx::usb::platform::device::speed dx::usb::platform::device::speed

◆ [struct]

struct { ... } dx::usb::platform::device::winusb

The documentation for this class was generated from the following files:

(c) copyright 2009 dynamic acoustics e.U. generated on Fri Feb 23 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.