dxd - dynax driver framework  3211
cross platform open source driver development framework
dx::usb::device Class Reference

#include <dx_usb_device.h>

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

Public Types

typedef ::io_service_t creator
 
enum  speed : unsigned char {
  low = ::kUSBDeviceSpeedLow, full = ::kUSBDeviceSpeedFull, high = ::kUSBDeviceSpeedHigh, super = ::kUSBDeviceSpeedSuper,
  usb1 = full, usb2 = high, usb3 = super, speed::low = ::UsbLowSpeed,
  speed::full = ::UsbFullSpeed, speed::high = ::UsbHighSpeed, speed::super = ::UsbSuperSpeed, speed::usb1 =full,
  speed::usb2 =high, speed::usb3 =super
}
 
enum  speed : unsigned char {
  low = ::kUSBDeviceSpeedLow, full = ::kUSBDeviceSpeedFull, high = ::kUSBDeviceSpeedHigh, super = ::kUSBDeviceSpeedSuper,
  usb1 = full, usb2 = high, usb3 = super, speed::low = ::UsbLowSpeed,
  speed::full = ::UsbFullSpeed, speed::high = ::UsbHighSpeed, speed::super = ::UsbSuperSpeed, speed::usb1 =full,
  speed::usb2 =high, speed::usb3 =super
}
 

Public Member Functions

 catchall () virtual ~device() noexcept=default
 
 catchall () virtual ~device() noexcept=default
 
 catchall_rethrow () virtual ~device() noexcept
 the device class destructor More...
 
deviceclose () noexcept
 
virtual void conclude () noexcept
 conclude notification: device will be removed from tree More...
 
unsigned char configuration (unsigned char configuration)
 
unsigned char configuration () const
 
unsigned char configuration (unsigned char configuration)
 
unsigned char configuration () const
 
unsigned char configurations () const
 
unsigned char configurations () const
 
void ctl (unsigned int ioctl) const
 
void ctl (unsigned int ioctl) const
 
 device (const creator &creator)
 the device class constructor More...
 
 device (::io_service_t io_service)
 the device class constructor More...
 
registryerase (const char *key=nullptr)
 
preferenceerase (::CFStringRef key=nullptr)
 
preferenceerase (::CFStringRef key=nullptr)
 
virtual void exception (const dx::exception &exception) const noexcept try
 
virtual void exception (const dx::exception &exception) const noexcept try
 
uint64_t frame () const
 
uint64_t frame () const
 
::CFTypeRef get (::CFStringRef key) const
 
::CFTypeRef get (::CFStringRef key, ::CFTypeRef dflt) const noexcept
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t get (::CFStringRef key) const
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t get (::CFStringRef key, ::CFTypeRef dflt) const noexcept
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t get (::CFStringRef key, value_t dflt) const noexcept
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t get (::CFStringRef key, value_t dflt) const noexcept
 
template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
::CFTypeRef get (key_t key) const
 
template<typename key_t , typename value_t , typename = typename cf::enable_if_convertible<key_t>::type, typename = typename cf::enable_if_convertible<value_t>::type>
value_t get (key_t key) const
 
template<typename rx_t >
rx_t ictl (unsigned int ioctl) const
 member ioctl More...
 
template<typename rx_t >
size_t ictl (unsigned int ioctl, rx_t &rx) const
 
template<typename rx_t >
rx_t ictl (unsigned int ioctl) const
 Windows: member ioctl. More...
 
template<typename rx_t >
size_t ictl (unsigned int ioctl, rx_t &rx) const
 
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 >
size_t ioctl (unsigned int ioctl, const tx_t &tx, rx_t &rx) const
 
template<typename rx_t , typename tx_t >
rx_t ioctl (unsigned int ioctl, const tx_t &tx) const
 
size_t ioctl (unsigned int ioctl, const void *tx=nullptr, size_t tx_size=0, void *rx=nullptr, size_t rx_size=0) const
 
template<typename tx_t , typename rx_t >
size_t ioctl (unsigned int ioctl, const tx_t &tx, rx_t &rx) const
 
template<typename rx_t , typename tx_t >
rx_t ioctl (unsigned int ioctl, const tx_t &tx) const
 
virtual void launch ()
 launch notification: device mounted in tree and ready to use More...
 
template<typename tx_t >
void octl (unsigned int ioctl, const tx_t &tx) const
 
template<typename tx_t >
void octl (unsigned int ioctl, const tx_t &tx) const
 
deviceopen ()
 opens the USB device for exclusice access More...
 
 operator const io_registry_entry_t & () const
 auto converter into const object More...
 
 operator const io_registry_entry_t & () const
 auto converter into const object More...
 
 operator io_registry_entry_t & ()
 auto converter into object More...
 
 operator io_registry_entry_t & ()
 auto converter into object More...
 
 operator std::string () const
 
 operator uint64_t () const
 
 operator uint64_t () const
 
template<typename value_t >
 operator value_t () const
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
 operator value_t () const
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
 operator value_t () const
 
template<typename value_t >
value_t operator() (value_t dflt) const
 
::CFPropertyListRef operator() (::CFPropertyListRef dflt) const
 
::CFPropertyListRef operator() (::CFPropertyListRef dflt) const
 
::CFDictionaryRef operator() (::CFDictionaryRef dflt) const noexcept
 
::CFDictionaryRef operator() (::CFDictionaryRef dflt) const noexcept
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t operator() (value_t dflt) const
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t operator() (value_t dflt) const
 
::IOUSBDeviceInterface650 * operator-> () const
 
 operator::CFArrayRef () const noexcept
 
 operator::CFArrayRef () const noexcept
 
 operator::CFDictionaryRef () const noexcept
 
 operator::CFDictionaryRef () const noexcept
 
 operator::CFMutableDictionaryRef () const
 
 operator::CFMutableDictionaryRef () const
 
 operator::CFPropertyListRef () const
 
 operator::CFPropertyListRef () const
 
 operator::HANDLE () const noexcept
 
 operator::IOUSBDeviceInterface650 ** () const
 
deviceoperator= (const union log &log)
 
deviceoperator= (const union log &log)
 
bool operator== (io_registry_entry_t object) const noexcept
 
bool operator== (io_registry_entry_t object) const noexcept
 
bool operator== (::io_service_t io_service) const noexcept
 
registry operator[] (const char *key) const
 
::CFTypeRef operator[] (::CFStringRef key) const
 
::CFTypeRef operator[] (::CFStringRef key) const
 
template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
::CFTypeRef operator[] (key_t key) const
 
template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
::CFTypeRef operator[] (key_t key) const
 
preference operator[] (::CFStringRef key) const
 
preference operator[] (::CFStringRef key) const
 
template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
preference operator[] (key_t key) const
 
template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
preference operator[] (key_t key) const
 
devicereenumerate ()
 
devicereenumerate ()
 
devicereset ()
 
devicereset ()
 
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. More...
 
registryset (::CFStringRef key, ::CFTypeRef value) noexcept
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
registryset (::CFStringRef key, value_t value)
 
template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
registryset (key_t key, ::CFTypeRef value)
 
template<typename key_t , typename value_t , typename = typename cf::enable_if_convertible<key_t>::type, typename = typename cf::enable_if_convertible<value_t>::type>
registryset (key_t key, value_t value)
 
registrysignal ()
 
template<size_t size = 0x100>
std::string string (unsigned char idx, enum language language=language::standard) const
 
template<size_t size = 0x100>
std::string string (unsigned char idx) const
 
template<typename data_t >
devicesubmit (const request< data_t > &request) const
 
template<typename data_t >
data_t submit (const control &control) const
 
template<typename data_t >
devicesubmit (const request< data_t > &request) const
 
template<typename data_t >
data_t submit (const control &control) const
 
registrywait (int64_t timeout=0, ::DWORD filter=REG_NOTIFY_CHANGE_NAME|REG_NOTIFY_CHANGE_ATTRIBUTES|REG_NOTIFY_CHANGE_LAST_SET|REG_NOTIFY_CHANGE_SECURITY, bool subtree=true)
 

Public Attributes

std::deque< usb::interfaceinterface
 
dx::log log {}
 
cf::preference preference
 
enum dx::usb::device::speed speed
 
cf::type< const char * > bundle_id
 
cf::type< const char * > class_name
 

Protected Member Functions

void initialize (::IOCFPlugInInterface **cf_interface, ::CFUUIDRef uuid)
 
void initialize (io_object_t io_object, ::CFUUIDRef type, ::CFUUIDRef uuid)
 

Protected Attributes

struct {
   cf::type< const char * >   bundle_id
 
   cf::type< const char * >   class_name
 
kernel
 
std::atomic< int > opened {}
 
io::port port
 

Friends

class driver< device >
 

Member Typedef Documentation

◆ creator

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

Member Enumeration Documentation

◆ speed [1/2]

enum dx::usb::device::speed : unsigned char
strong
Enumerator
low 
full 
high 
super 
usb1 
usb2 
usb3 
low 
full 
high 
super 
usb1 
usb2 
usb3 

◆ speed [2/2]

Todo:
enum class
Enumerator
low 
full 
high 
super 
usb1 
usb2 
usb3 
low 
full 
high 
super 
usb1 
usb2 
usb3 

Constructor & Destructor Documentation

◆ device() [1/2]

dx::usb::device::device ( ::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

sets up request for device descriptor

enforce configuration selection. configuration might not be set yet.

interfaces might get enumerated twice here - if configuration was not set, but to avoid race condition for the case where the configuration was already set during this test it has to be called explicitely.

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

◆ device() [2/2]

dx::usb::device::device ( const creator creator)
inline

the device class constructor

Exceptions

statically gets the device speed

sets up request for device descriptor

Member Function Documentation

◆ catchall() [1/2]

dx::usb::device::catchall ( )
defaultnoexcept

◆ catchall() [2/2]

dx::usb::device::catchall ( )
defaultnoexcept
+ Here is the caller graph for this function:

◆ catchall_rethrow()

dx::device::catchall_rethrow ( )
inlinenoexceptinherited

the device class destructor

the underlaying IOKit API is IOServiceClose().

remark: The io_service reference itself is managed by inherited io::reference

for detailed information see

Disconnect notification port,

closes the connection to the IOService object

◆ close()

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

◆ conclude()

virtual void dx::usb::device::conclude ( )
inlinevirtualnoexcept

conclude notification: device will be removed from tree

Reimplemented from dx::device.

◆ configuration() [1/4]

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

◆ configuration() [2/4]

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

◆ configuration() [3/4]

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

◆ configuration() [4/4]

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

◆ configurations() [1/2]

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

◆ configurations() [2/2]

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

◆ ctl() [1/2]

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

◆ ctl() [2/2]

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

◆ erase() [1/3]

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

◆ erase() [2/3]

preference& dx::cf::preference::erase ( ::CFStringRef  key = nullptr)
inlineinherited
+ Here is the caller graph for this function:

◆ erase() [3/3]

preference& dx::cf::preference::erase ( ::CFStringRef  key = nullptr)
inlineinherited
+ Here is the caller graph for this function:

◆ exception() [1/2]

virtual void dx::usb::device::exception ( const dx::exception exception) const
inlinevirtualnoexcept

◆ exception() [2/2]

virtual void dx::usb::device::exception ( const dx::exception exception) const
inlinevirtualnoexcept
+ Here is the caller graph for this function:

◆ frame() [1/2]

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

◆ frame() [2/2]

uint64_t dx::usb::device::frame ( ) const
inline

◆ get() [1/8]

::CFTypeRef dx::io::registry::get ( ::CFStringRef  key) const
inlineinherited

◆ get() [2/8]

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

◆ get() [3/8]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::io::registry::get ( ::CFStringRef  key) const
inlineinherited

◆ get() [4/8]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::io::registry::get ( ::CFStringRef  key,
::CFTypeRef  dflt 
) const
inlinenoexceptinherited

◆ get() [5/8]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::io::registry::get ( ::CFStringRef  key,
value_t  dflt 
) const
inlinenoexceptinherited

◆ get() [6/8]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::io::registry::get ( ::CFStringRef  key,
value_t  dflt 
) const
inlinenoexceptinherited

◆ get() [7/8]

template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
::CFTypeRef dx::io::registry::get ( key_t  key) const
inlineinherited

◆ get() [8/8]

template<typename key_t , typename value_t , typename = typename cf::enable_if_convertible<key_t>::type, typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::io::registry::get ( key_t  key) const
inlineinherited

◆ ictl() [1/4]

template<typename rx_t >
rx_t dx::device::ictl ( unsigned int  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 ( unsigned int  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/4]

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() [2/4]

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

◆ initialize() [3/4]

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

◆ initialize() [4/4]

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

◆ ioctl() [1/5]

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

◆ ioctl() [2/5]

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

◆ ioctl() [3/5]

size_t dx::device::ioctl ( unsigned int  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 tx_t , typename rx_t >
size_t dx::device::ioctl ( unsigned int  ioctl,
const tx_t &  tx,
rx_t &  rx 
) const
inlineinherited

◆ ioctl() [5/5]

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

◆ launch()

virtual void dx::usb::device::launch ( )
inlinevirtual

launch notification: device mounted in tree and ready to use

Reimplemented from dx::device.

◆ octl() [1/2]

template<typename tx_t >
void dx::device::octl ( unsigned int  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::device::open ( )
inline

opens the USB device for exclusice access

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

dx::io::reference< io_registry_entry_t >::operator const io_registry_entry_t & ( ) const
inlineinherited

auto converter into const object

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

dx::io::reference< io_registry_entry_t >::operator const io_registry_entry_t & ( ) const
inlineinherited

auto converter into const object

◆ operator io_registry_entry_t &() [1/2]

dx::io::reference< io_registry_entry_t >::operator io_registry_entry_t & ( )
inlineinherited

auto converter into object

◆ operator io_registry_entry_t &() [2/2]

dx::io::reference< io_registry_entry_t >::operator io_registry_entry_t & ( )
inlineinherited

auto converter into object

◆ 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() [1/3]

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

◆ operator value_t() [2/3]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
dx::cf::preference::operator value_t ( ) const
inlineinherited

◆ operator value_t() [3/3]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
dx::cf::preference::operator value_t ( ) const
inlineinherited

◆ operator()() [1/7]

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

◆ operator()() [2/7]

::CFPropertyListRef dx::cf::preference::operator() ( ::CFPropertyListRef  dflt) const
inlineinherited

◆ operator()() [3/7]

::CFPropertyListRef dx::cf::preference::operator() ( ::CFPropertyListRef  dflt) const
inlineinherited

◆ operator()() [4/7]

::CFDictionaryRef dx::cf::preference::operator() ( ::CFDictionaryRef  dflt) const
inlinenoexceptinherited

◆ operator()() [5/7]

::CFDictionaryRef dx::cf::preference::operator() ( ::CFDictionaryRef  dflt) const
inlinenoexceptinherited

◆ operator()() [6/7]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::cf::preference::operator() ( value_t  dflt) const
inlineinherited

◆ operator()() [7/7]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::cf::preference::operator() ( value_t  dflt) const
inlineinherited

◆ operator->()

::IOUSBDeviceInterface650 * dx::cf::interface< ::IOUSBDeviceInterface650 >::operator-> ( ) const
inlineinherited

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

dx::cf::preference::operator::CFArrayRef ( ) const
inlinenoexceptinherited

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

dx::cf::preference::operator::CFArrayRef ( ) const
inlinenoexceptinherited

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

dx::cf::preference::operator::CFDictionaryRef ( ) const
inlinenoexceptinherited

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

dx::cf::preference::operator::CFDictionaryRef ( ) const
inlinenoexceptinherited

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

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

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

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

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

dx::cf::preference::operator::CFPropertyListRef ( ) const
inlineinherited

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

dx::cf::preference::operator::CFPropertyListRef ( ) const
inlineinherited

◆ operator::HANDLE()

dx::device::operator::HANDLE ( ) const
inlinenoexceptinherited

◆ operator::IOUSBDeviceInterface650 **()

dx::cf::interface< ::IOUSBDeviceInterface650 >::operator ::IOUSBDeviceInterface650 ** ( ) const
inlineinherited

◆ operator=() [1/2]

device& dx::usb::device::operator= ( const union log log)
inline

◆ operator=() [2/2]

device& dx::usb::device::operator= ( const union log log)
inline

◆ operator==() [1/3]

bool dx::io::reference< io_registry_entry_t >::operator== ( io_registry_entry_t  object) const
inlinenoexceptinherited

◆ operator==() [2/3]

bool dx::io::reference< io_registry_entry_t >::operator== ( io_registry_entry_t  object) const
inlinenoexceptinherited

◆ operator==() [3/3]

bool dx::usb::device::operator== ( ::io_service_t  io_service) const
inlinenoexcept

◆ operator[]() [1/9]

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

◆ operator[]() [2/9]

::CFTypeRef dx::io::registry::operator[] ( ::CFStringRef  key) const
inlineinherited

◆ operator[]() [3/9]

::CFTypeRef dx::io::registry::operator[] ( ::CFStringRef  key) const
inlineinherited

◆ operator[]() [4/9]

template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
::CFTypeRef dx::io::registry::operator[] ( key_t  key) const
inlineinherited

◆ operator[]() [5/9]

template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
::CFTypeRef dx::io::registry::operator[] ( key_t  key) const
inlineinherited

◆ operator[]() [6/9]

preference dx::cf::preference::operator[] ( ::CFStringRef  key) const
inlineinherited

◆ operator[]() [7/9]

preference dx::cf::preference::operator[] ( ::CFStringRef  key) const
inlineinherited

◆ operator[]() [8/9]

template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
preference dx::cf::preference::operator[] ( key_t  key) const
inlineinherited

◆ operator[]() [9/9]

template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
preference dx::cf::preference::operator[] ( key_t  key) const
inlineinherited

◆ reenumerate() [1/2]

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

◆ reenumerate() [2/2]

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

◆ reset() [1/2]

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

◆ reset() [2/2]

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

◆ set() [1/5]

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() [2/5]

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

◆ set() [3/5]

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

◆ set() [4/5]

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

◆ set() [5/5]

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

◆ signal()

registry& dx::registry::signal ( )
inlineinherited
+ Here is the caller graph for this function:

◆ string() [1/2]

template<size_t size = 0x100>
std::string dx::usb::device::string ( unsigned char  idx,
enum language  language = language::standard 
) const
inline

◆ string() [2/2]

template<size_t size = 0x100>
std::string dx::usb::device::string ( unsigned char  idx) const
inline

◆ submit() [1/4]

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

◆ submit() [2/4]

template<typename data_t >
data_t dx::usb::device::submit ( const control control) const
inline

◆ submit() [3/4]

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

◆ submit() [4/4]

template<typename data_t >
data_t dx::usb::device::submit ( const control control) const
inline

◆ wait()

registry& dx::registry::wait ( int64_t  timeout = 0,
::DWORD  filter = REG_NOTIFY_CHANGE_NAME|REG_NOTIFY_CHANGE_ATTRIBUTES|REG_NOTIFY_CHANGE_LAST_SET|REG_NOTIFY_CHANGE_SECURITY,
bool  subtree = true 
)
inlineinherited

Friends And Related Function Documentation

◆ driver< device >

friend class driver< device >
friend

Member Data Documentation

◆ bundle_id

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

◆ class_name

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

◆ interface

std::deque< usb::interface > dx::usb::device::interface

◆ kernel

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

◆ log

dx::log dx::usb::device::log {}

◆ opened

std::atomic< int > dx::usb::device::opened {}
protected

◆ port

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

◆ preference

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

◆ speed


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

(c) copyright 2009 dynamic acoustics e.U. generated on Sat Aug 22 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.