dxd - dynax driver framework 2.7.0d222
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::usb::platform::device< preference_t > Class Template Reference

#include <dx_usb_device_platform.h>

Inheritance diagram for dx::usb::platform::device< preference_t >:
Collaboration diagram for dx::usb::platform::device< preference_t >:

Public Types

typedef shared::event event_t

Public Member Functions

deviceclose () noexcept
deviceclose (bool force=false) noexcept
void conclude () noexcept override
 conclude notifacation: device will be removed from tree
uint8_t configuration () const
unsigned char configuration () const noexcept
virtual uint8_t configuration (uint8_t configuration)
virtual unsigned char configuration (unsigned char configuration) try
uint8_t configurations () const
auto count () const noexcept
auto count () const noexcept
void ctl (uint32_t ioctl) const try
 device (decltype(super::driver)&driver, ::io_service_t id, const std::string &puuid={}, const std::string &puid={})
 the device class constructor
 device (decltype(super::driver)&driver, decltype(super::id)&id, const std::string &puuid={}, const std::string &puid={})
 the device class constructor
 dx_catchall_rethrow (, "name: %s, access rights: %x, sharing options:%x", name, access, share)
 dx_catchall_rethrow () device &open()
 for macOS compatibility only
 dx_catchall_rethrow () device &reset()
 dx_catchall_rethrow () device &submit(const control &control) try
 dx_catchall_rethrow () struct void_struct
 dx_catchall_rethrow () template< typename data_t >device &submit(const request< data_t > &request) try
 standard device request
 dx_catchall_rethrow () unsigned char configurations() const noexcept
 dx_catchall_rethrow () void conclude() noexcept override
 conclude notification: device will be removed from tree
 dx_catchall_rethrow (if(autoclear) try {const_cast< device * >(this) ->clear();} dx_catchall_handler(this,, "double fault"), "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) clear();} 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) try
 device control request
 dx_pass (::IOConnectCallStructMethod(io_connect, ioctl, nullptr, 0, &rx, &size), "%s rx:%p size:%d", fourchar::to::string(ioctl).c_str(), &rx, size)
void exception (const dx::exception &exception, bool filtered=false) const noexcept override
 notification exception handler
uint64_t frame () const try
uint64_t frame () const try
template<typename value_t, typename = cf::enable_if_convertible<value_t>>
value_t get (::CFStringRef key) const
::CFTypeRef get (::CFStringRef key) const
template<typename value_t, typename = cf::enable_if_convertible<value_t>>
value_t get (::CFStringRef key, ::CFTypeRef dflt) const noexcept
::CFTypeRef 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 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 key_t, typename = cf::enable_if_convertible<key_t>>
::CFTypeRef get (key_t key) const
template<typename rx_t>
size_t ictl (unsigned int ioctl, rx_t &rx) const
rx_t ictl (unsigned int ioctl) const
 Windows: member ioctl.
void info (std::ostream &os) noexcept override
 log object class information
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
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 tx_t &tx, rx_t &rx) const
void launch () override
 launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.
void octl (unsigned int ioctl, const tx_t &tx) const
deviceopen ()
 opens the USB device for exclusice access
 operator const ::io_registry_entry_t & () const noexcept
 auto converter into const io_object
 operator const ::io_registry_entry_t & () const noexcept
 auto converter into const io_object
 operator const os_event () const noexcept
 operator const std::string & () const noexcept
 identifying device string, mirroring macOS' io::registry conversion
 operator os_event () noexcept
 operator uint64_t () const
 operator uint64_t () const
 operator::CFMutableDictionaryRef () const
 operator::CFMutableDictionaryRef () const
 operator::CFStringRef () const
 operator::CFStringRef () const
 operator::HANDLE () const noexcept
 operator::io_registry_entry_t & () noexcept
 auto converter into io_object
 operator::io_registry_entry_t & () noexcept
 auto converter into io_object
 operator::io_registry_entry_t * () noexcept
 auto converter into io_object pointer
 operator::io_registry_entry_t * () noexcept
 auto converter into io_object pointer
bool operator== (::io_registry_entry_t io_object) const noexcept
bool operator== (::io_registry_entry_t io_object) const noexcept
virtual deviceoperator>> (std::ostream &) const
virtual deviceoperator>> (std::ostream &) const
::CFTypeRef operator[] (::CFStringRef key) const
::CFTypeRef operator[] (::CFStringRef 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
registry parent () const
registry parent () const
devicereenumerate ()
referenceretain ()
referenceretain ()
deviceset (::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 (::CFStringRef key, ::CFTypeRef value)
registryset (::CFStringRef key, ::CFTypeRef value)
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.
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)
virtual void sleep ()
 notify system will sleep stub
virtual void sleep ()
 notify system will sleep stub
template<typename data_t>
devicesubmit (const request< data_t > &request, bool autoclear=true) const try
bool try_conclude () noexcept
 atomically conclude()s if currently launched; returns whether this call did it
bool try_conclude () noexcept
 atomically conclude()s if currently launched; returns whether this call did it
bool try_conclude () noexcept
 atomically conclude()s if currently launched; returns whether this call did it
bool try_launch ()
 atomically launch()es if not already launched; returns whether this call did it
bool try_launch ()
 atomically launch()es if not already launched; returns whether this call did it
bool try_launch ()
 atomically launch()es if not already launched; returns whether this call did it
virtual void wake ()
 notify system wake completed stub
virtual void wake ()
 notify system wake completed stub
 ~device () override

Static Public Member Functions

static void create (const char *product_id, const ::GUID &guid, const std::string &id, const desc_t &desc)
 persisted software device: PnP keeps it enumerated after the creating handle closes
static void destroy (const char *product_id, const ::GUID &guid, const std::string &id)
 re-acquires the persisted device and binds it to the closing handle

Public Attributes

cf::string bundle_id
bool composite = false
 indicate WinUSB matched against single interface of composite device;
dx::driver< decltype(id), dx::preference > & driver
dx::driver< decltype(id), dx::preference > & driver
dx::driver< decltype(id), dx::preference > & driver
const std::string id
const ::io_service_t id
const ::io_service_t id
std::atomic< bool > launched
std::atomic< bool > launched
std::atomic< bool > launched
dx::preference preference
dx::preference preference
dx::preference preference
std::string puid
 persistent UID - system unique - could change with location
std::string puid
 persistent UID - system unique - could change with location
std::string puid
 persistent UID - system unique - could change with location
std::string puuid
 persistent universal UID - universally unique ID (i.e. serial number)
std::string puuid
 persistent universal UID - universally unique ID (i.e. serial number)
std::string puuid
 persistent universal UID - universally unique ID (i.e. serial number)
return size
enum speed speed
rx_t &rx const try

Protected Types

typedef service::request< service::stream::data< typename super_device_t::desc_t > > request
typedef pipe< request >::template server< user_client, std::weak_ptr< device > > server
 pipe::server connecting user_clients The pipe holds a std::weak_ptr<device> as a temporary by the pipe::server::args variadic tuple to create shared device references for the user_client. At time of device construction there is not yet a std::shared_ptr<device>, therefore the pipe::server::args weak_ptr assignment happens at service::device::launch().
enum class  type : ::DWORD {
  undefined = REG_NONE , uint32 = REG_DWORD , uint64 = REG_QWORD , string = REG_SZ ,
  vendor = REG_BINARY
}

Protected Member Functions

std::string canonical (const std::string &name) const try
 catch (...)
 catch (...)
virtual void conclude () noexcept
 conclude notification: object will be removed. If you overwrite conclude() you also need to overwrite destructor and check if its needed to be called from there. Called only through try_conclude() - never call this directly from outside the class hierarchy.
registryerase (const char *subkey=nullptr) noexcept
void initialize (::IOCFPlugInInterface **cf_interface, ::CFUUIDRef uuid)
registryinitialize (const std::string &key, ::HKEY root=HKEY_CURRENT_USER, ::REGSAM rights=KEY_ALL_ACCESS) try
registryinitialize (const std::string &key, ::REGSAM rights, ::HKEY root, const char *path=nullptr) try
virtual void launch ()
 launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.
virtual void launch ()
 launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.
::IOUSBDeviceInterface650 * operator-> () const
 operator::IOUSBDeviceInterface650 ** () const
registryrun ()
dx_catchall_rethrow() registry &initialize(size_t size () const noexcept

Static Protected Member Functions

static self_t void assign (const self_t &self, const value_t &value) try
template<typename self_t>
static registry at (const self_t &self)
template<typename container_t, typename self_t>
static container_t children (const self_t &self) noexcept try
template<typename value_t, typename self_t>
static bool fetch (const self_t &self, value_t &value) try
template<typename self_t>
static bool nested (const self_t &self) noexcept
template<typename self_t>
static size_t size (const self_t &self) noexcept

Protected Attributes

class dx::service::device::promoted clocksource
bool connected
class dx::service::device::promoted iosize
struct { 
   cf::string   bundle_id 
   cf::string   class_name 
kernel
std::string key
const std::string & key: rights{registry.rights}
std::deque< std::function< void()> > listen
std::atomic< int > opened {}
const std::string owns_root
server pipe
io::port port
::HANDLE process = ::GetCurrentProcess()
const std::string root {registry.root}
class dx::service::device::promoted safety_offset [dx::stream::direction::out]
class dx::service::device::promoted safety_offset_in [dx::stream::direction::in]
class dx::service::device::promoted safety_offset_out [dx::stream::direction::out]
class dx::service::device::promoted samplerate
bool schedule_erase {}
struct { 
   ::WINUSB_INTERFACE_HANDLE   handle 
winusb

Member Typedef Documentation

◆ event_t

◆ request

typedef service::request<service::stream::data<typename super_device_t::desc_t> > dx::service::device< dx::preference >::request
protectedinherited

◆ server

typedef pipe<request>::template server<user_client, std::weak_ptr<device> > dx::service::device< dx::preference >::server
protectedinherited

pipe::server connecting user_clients The pipe holds a std::weak_ptr<device> as a temporary by the pipe::server::args variadic tuple to create shared device references for the user_client. At time of device construction there is not yet a std::shared_ptr<device>, therefore the pipe::server::args weak_ptr assignment happens at service::device::launch().

Member Enumeration Documentation

◆ type

enum class dx::registry::type : ::DWORD
strongprotectedinherited
Enumerator
undefined 
uint32 
uint64 
string 
vendor 

Constructor & Destructor Documentation

◆ device() [1/2]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::device ( decltype(super::driver)& driver,
::io_service_t id,
const std::string & puuid = {},
const std::string & puid = {} )
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
idthe IOService object to open the device connection for. This will be held (but not retained) during device class lifetime

◆ ~device()

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::~device ( )
inlineoverride

◆ device() [2/2]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::device ( decltype(super::driver)& driver,
decltype(super::id)& id,
const std::string & puuid = {},
const std::string & puid = {} )
inline

the device class constructor

statically gets the device speed

Member Function Documentation

◆ assign()

self_t void dx::registry::assign ( const self_t & self,
const value_t & value )
inlinestaticprotectedinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ at()

template<typename self_t>
registry dx::registry::at ( const self_t & self)
inlinestaticprotectedinherited

dx::key_value_tree<registry> contract: resolves self's parent chain into one real key/value position, then delegates below - the only place a registry[k1][k2]..[kN] chain becomes real subkeys/values.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ canonical()

std::string dx::registry::canonical ( const std::string & name) const
inlineprotectedinherited
Here is the caller graph for this function:

◆ catch() [1/2]

dx::registry::catch ( ...)
inlineprotectedinherited

◆ catch() [2/2]

dx::registry::catch ( ...)
inlineprotectedinherited

◆ children()

template<typename container_t, typename self_t>
container_t dx::registry::children ( const self_t & self)
inlinestaticprotectednoexceptinherited

self's own child names as any string container, yielding an empty one when the key is absent or inaccessible. Stays a static, not a dx::key_value_tree-style operator container_t(): registry is a dependent base of key_value_tree<registry> (inherited via the tree_t template parameter), and key_value_tree's own operator value_t() becomes entirely unreachable once a dependent base declares a same-shaped operator container_t() template of its own.

Here is the call graph for this function:

◆ close() [1/2]

template<typename preference_t = dx::preference>
device & dx::usb::platform::device< preference_t >::close ( )
inlinenoexcept

◆ close() [2/2]

template<typename preference_t = dx::preference>
device & dx::usb::platform::device< preference_t >::close ( bool force = false)
inlinenoexcept

◆ conclude() [1/2]

virtual void dx::object::conclude ( )
inlineprotectedvirtualnoexceptinherited

conclude notification: object will be removed. If you overwrite conclude() you also need to overwrite destructor and check if its needed to be called from there. Called only through try_conclude() - never call this directly from outside the class hierarchy.

◆ conclude() [2/2]

void dx::proxy::device< dx::preference >::conclude ( )
inlineoverridevirtualnoexceptinherited

conclude notifacation: device will be removed from tree

Reimplemented from dx::object.

Reimplemented in dx::proxy::stream::_device< dx::stream::desc<>, dx::preference, stream< device< dx::stream::desc<>, dx::preference, stream > > >.

Here is the caller graph for this function:

◆ configuration() [1/4]

template<typename preference_t = dx::preference>
uint8_t dx::usb::platform::device< preference_t >::configuration ( ) const
inline
Here is the caller graph for this function:

◆ configuration() [2/4]

template<typename preference_t = dx::preference>
unsigned char dx::usb::platform::device< preference_t >::configuration ( ) const
inlinenoexcept

◆ configuration() [3/4]

template<typename preference_t = dx::preference>
virtual uint8_t dx::usb::platform::device< preference_t >::configuration ( uint8_t configuration)
inlinevirtual

◆ configuration() [4/4]

template<typename preference_t = dx::preference>
virtual unsigned char dx::usb::platform::device< preference_t >::configuration ( unsigned char configuration)
inlinevirtual

◆ configurations()

template<typename preference_t = dx::preference>
uint8_t dx::usb::platform::device< preference_t >::configurations ( ) const
inline

◆ count() [1/2]

auto io::reference< ::io_registry_entry_t >::count ( ) const
inlinenoexceptinherited

◆ count() [2/2]

auto io::reference< ::io_registry_entry_t >::count ( ) const
inlinenoexceptinherited

◆ create()

void dx::proxy::device< dx::preference >::create ( const char * product_id,
const ::GUID & guid,
const std::string & id,
const desc_t & desc )
inlinestaticinherited

persisted software device: PnP keeps it enumerated after the creating handle closes

◆ ctl()

void dx::proxy::device< dx::preference >::ctl ( uint32_t ioctl) const
inlineinherited

◆ destroy()

void dx::proxy::device< dx::preference >::destroy ( const char * product_id,
const ::GUID & guid,
const std::string & id )
inlinestaticinherited

re-acquires the persisted device and binds it to the closing handle

◆ dx_catchall_rethrow() [1/10]

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

◆ dx_catchall_rethrow() [2/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( ) &
inline

for macOS compatibility only

◆ dx_catchall_rethrow() [3/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( ) &
inline

◆ dx_catchall_rethrow() [4/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( ) const &
inline

◆ dx_catchall_rethrow() [5/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( )
inline

◆ dx_catchall_rethrow() [6/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( ) const &
inline

standard device request

◆ dx_catchall_rethrow() [7/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( ) const
inlinenoexcept

◆ dx_catchall_rethrow() [8/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( )
inlineoverridenoexcept

conclude notification: device will be removed from tree

◆ dx_catchall_rethrow() [9/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( if(autoclear) try {const_cast< device< preference_t > * >(this) ->clear();} dx_catchall_handler(this,, "double fault") ,
"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() [10/10]

template<typename preference_t = dx::preference>
dx::usb::platform::device< preference_t >::dx_catchall_rethrow ( try { ifexception.error==stalled) clear();} 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

◆ dx_pass()

dx::proxy::device< dx::preference >::dx_pass ( ::IOConnectCallStructMethod( io_connect, ioctl, nullptr, 0, &rx, &size) ,
"%s rx:%p size:%d" ,
fourchar::to::string(ioctl).c_str() ,
& rx,
size  )
inherited

◆ erase()

registry & dx::registry::erase ( const char * subkey = nullptr)
inlineprotectednoexceptinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exception()

template<typename preference_t = dx::preference>
void dx::usb::platform::device< preference_t >::exception ( const dx::exception & exception,
bool filtered = false ) const
inlineoverridevirtualnoexcept

notification exception handler

Reimplemented from dx::device<::io_service_t, dx::preference >.

◆ fetch()

template<typename value_t, typename self_t>
bool dx::registry::fetch ( const self_t & self,
value_t & value )
inlinestaticprotectedinherited
Here is the call graph for this function:

◆ frame() [1/2]

template<typename preference_t = dx::preference>
uint64_t dx::usb::platform::device< preference_t >::frame ( ) const
inline

◆ frame() [2/2]

template<typename preference_t = dx::preference>
uint64_t dx::usb::platform::device< preference_t >::frame ( ) const
inline

◆ get() [1/8]

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

◆ get() [2/8]

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

◆ get() [3/8]

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

◆ get() [4/8]

::CFTypeRef 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 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 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 value_t, typename = cf::enable_if_convertible<key_t>, typename = cf::enable_if_convertible<value_t>>
value_t io::registry::get ( key_t key) const
inlineinherited
Here is the call graph for this function:

◆ get() [8/8]

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

◆ ictl() [1/2]

template<typename rx_t>
size_t dx::file::ictl ( unsigned int ioctl,
rx_t & rx ) const
inlineinherited
Here is the call graph for this function:

◆ ictl() [2/2]

rx_t dx::proxy::device< dx::preference >::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
Template Parameters
rx_ttype of rx_t needs to be explicitly specified as it can't be deduced

◆ info()

template<typename preference_t = dx::preference>
void dx::usb::platform::device< preference_t >::info ( std::ostream & os)
inlineoverridevirtualnoexcept

◆ initialize() [1/4]

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

◆ initialize() [2/4]

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 caller graph for this function:

◆ initialize() [3/4]

registry & dx::registry::initialize ( const std::string & key,
::HKEY root = HKEY_CURRENT_USER,
::REGSAM rights = KEY_ALL_ACCESS )
inlineprotectedinherited
Here is the call graph for this function:

◆ initialize() [4/4]

registry & dx::registry::initialize ( const std::string & key,
::REGSAM rights,
::HKEY root,
const char * path = nullptr )
inlineprotectedinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ioctl() [1/2]

template<typename rx_t, typename tx_t>
rx_t dx::file::ioctl ( unsigned int ioctl,
const tx_t & tx ) const
inlineinherited
Here is the call graph for this function:

◆ ioctl() [2/2]

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

◆ launch() [1/3]

virtual void dx::object::launch ( )
inlineprotectedvirtualinherited

launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.

◆ launch() [2/3]

virtual void dx::object::launch ( )
inlineprotectedvirtualinherited

launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.

◆ launch() [3/3]

void dx::service::device< dx::preference >::launch ( )
inlineoverridevirtualinherited

launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.

Reimplemented from dx::object.

Reimplemented in dx::usb::stream::_device< desc_t, dx::preference, pipe< device< desc_t, dx::preference, pipe > > >.

◆ nested()

template<typename self_t>
bool dx::registry::nested ( const self_t & self)
inlinestaticprotectednoexceptinherited
Here is the call graph for this function:

◆ octl()

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

◆ open()

template<typename preference_t = dx::preference>
device & dx::usb::platform::device< preference_t >::open ( )
inline

opens the USB device for exclusice access

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

io::reference< ::io_registry_entry_t >::operator const ::io_registry_entry_t & ( ) const
inlinenoexceptinherited

auto converter into const io_object

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

io::reference< ::io_registry_entry_t >::operator const ::io_registry_entry_t & ( ) const
inlinenoexceptinherited

auto converter into const io_object

◆ operator const os_event()

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

◆ operator const std::string &()

dx::proxy::device< dx::preference >::operator const std::string & ( ) const
inlinenoexceptinherited

identifying device string, mirroring macOS' io::registry conversion

◆ operator os_event()

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

◆ operator uint64_t() [1/2]

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

◆ operator uint64_t() [2/2]

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

◆ operator->()

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

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

io::registry::operator::CFMutableDictionaryRef ( ) const
inlineexplicitinherited
Here is the call graph for this function:
Here is the caller graph for this function:

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

io::registry::operator::CFMutableDictionaryRef ( ) const
inlineexplicitinherited
Here is the call graph for this function:
Here is the caller graph for this function:

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

io::registry::operator::CFStringRef ( ) const
inlineexplicitinherited
Here is the caller graph for this function:

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

io::registry::operator::CFStringRef ( ) const
inlineexplicitinherited
Here is the caller graph for this function:

◆ operator::HANDLE()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::resource< invalid_t >::operator::HANDLE ( ) const
inlinenoexceptinherited
Here is the caller graph for this function:

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

io::reference< ::io_registry_entry_t >::operator ::io_registry_entry_t & ( )
inlinenoexceptinherited

auto converter into io_object

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

io::reference< ::io_registry_entry_t >::operator ::io_registry_entry_t & ( )
inlinenoexceptinherited

auto converter into io_object

◆ operator::io_registry_entry_t *() [1/2]

io::reference< ::io_registry_entry_t >::operator ::io_registry_entry_t * ( )
inlinenoexceptinherited

auto converter into io_object pointer

◆ operator::io_registry_entry_t *() [2/2]

io::reference< ::io_registry_entry_t >::operator ::io_registry_entry_t * ( )
inlinenoexceptinherited

auto converter into io_object pointer

◆ operator::IOUSBDeviceInterface650 **()

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ operator>>() [1/2]

virtual device & dx::device< std::string, dx::preference >::operator>> ( std::ostream & ) const
inlinevirtualinherited

◆ operator>>() [2/2]

virtual device & dx::device< ::io_service_t, dx::preference >::operator>> ( std::ostream & ) const
inlinevirtualinherited

◆ operator[]() [1/4]

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

◆ operator[]() [2/4]

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

◆ operator[]() [3/4]

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

◆ operator[]() [4/4]

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

◆ parent() [1/2]

registry io::registry::parent ( ) const
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parent() [2/2]

registry io::registry::parent ( ) const
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reenumerate()

template<typename preference_t = dx::preference>
device & dx::usb::platform::device< preference_t >::reenumerate ( )
inline

◆ retain() [1/2]

reference & io::reference< ::io_registry_entry_t >::retain ( )
inlineinherited
Here is the caller graph for this function:

◆ retain() [2/2]

reference & io::reference< ::io_registry_entry_t >::retain ( )
inlineinherited
Here is the caller graph for this function:

◆ run()

registry & dx::registry::run ( )
inlineprotectedinherited
Here is the call graph for this function:

◆ set() [1/10]

device & dx::proxy::device< dx::preference >::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/10]

registry & io::registry::set ( ::CFStringRef key,
::CFTypeRef value )
inlineinherited
Here is the call graph for this function:

◆ set() [3/10]

registry & io::registry::set ( ::CFStringRef key,
::CFTypeRef value )
inlineinherited
Here is the call graph for this function:

◆ set() [4/10]

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

◆ set() [5/10]

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

◆ set() [6/10]

registry & 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 call graph for this function:
Here is the caller graph for this function:

◆ set() [7/10]

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

◆ set() [8/10]

template<typename key_t, typename = cf::enable_if_convertible<key_t>>
registry & 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 & io::registry::set ( key_t key,
value_t value )
inlineinherited
Here is the call graph for this function:

◆ 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 & io::registry::set ( key_t key,
value_t value )
inlineinherited
Here is the call graph for this function:

◆ size() [1/2]

dx_catchall_rethrow() registry &initialize(size_t dx::registry::size ( ) const
inlineprotectednoexceptinherited

stays a named method: base and derived conversion function templates are simultaneous overload candidates, so an operator value_t() here would compete with dx::key_value_tree's own. like get<value_t>() but returns false for ERROR_FILE_NOT_FOUND, from either RegQueryValueExA or value_of() itself; any other failure throws. a sibling thread/process may delete the containing key between value_of()'s create and the set - retry recreates the whole chain in that case subkey+value count, 0 if the key doesn't exist (key_of()'s non-throwing overload - an ordinary, expected outcome here, not a genuine error).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ size() [2/2]

template<typename self_t>
size_t dx::registry::size ( const self_t & self)
inlinestaticprotectednoexceptinherited
Here is the call graph for this function:

◆ sleep() [1/2]

virtual void dx::device< std::string, dx::preference >::sleep ( )
inlinevirtualinherited

notify system will sleep stub

◆ sleep() [2/2]

virtual void dx::device< ::io_service_t, dx::preference >::sleep ( )
inlinevirtualinherited

notify system will sleep stub

◆ submit()

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

◆ try_conclude() [1/3]

bool dx::object::try_conclude ( )
inlinenoexceptinherited

atomically conclude()s if currently launched; returns whether this call did it

◆ try_conclude() [2/3]

bool dx::object::try_conclude ( )
inlinenoexceptinherited

atomically conclude()s if currently launched; returns whether this call did it

◆ try_conclude() [3/3]

bool dx::object::try_conclude ( )
inlinenoexceptinherited

atomically conclude()s if currently launched; returns whether this call did it

◆ try_launch() [1/3]

bool dx::object::try_launch ( )
inlineinherited

atomically launch()es if not already launched; returns whether this call did it

◆ try_launch() [2/3]

bool dx::object::try_launch ( )
inlineinherited

atomically launch()es if not already launched; returns whether this call did it

◆ try_launch() [3/3]

bool dx::object::try_launch ( )
inlineinherited

atomically launch()es if not already launched; returns whether this call did it

◆ wake() [1/2]

◆ wake() [2/2]

Member Data Documentation

◆ bundle_id

◆ clocksource

◆ composite

template<typename preference_t = dx::preference>
bool dx::usb::platform::device< preference_t >::composite = false

indicate WinUSB matched against single interface of composite device;

◆ connected

bool dx::proxy::device< dx::preference >::connected
protectedinherited

◆ driver [1/3]

dx::driver<decltype(id), dx::preference>& dx::device< std::string, dx::preference >::driver
inherited

◆ driver [2/3]

dx::driver<decltype(id), dx::preference>& dx::device< ::io_service_t, dx::preference >::driver
inherited

◆ driver [3/3]

dx::driver<decltype(id), dx::preference>& dx::device< ::io_service_t, dx::preference >::driver
inherited

◆ handle

template<typename preference_t = dx::preference>
::WINUSB_INTERFACE_HANDLE dx::usb::platform::device< preference_t >::handle

◆ id [1/3]

const std::string dx::device< std::string, dx::preference >::id
inherited

◆ id [2/3]

const ::io_service_t dx::device< ::io_service_t, dx::preference >::id
inherited

◆ id [3/3]

const ::io_service_t dx::device< ::io_service_t, dx::preference >::id
inherited

◆ iosize

◆ [struct]

◆ key [1/2]

std::string dx::registry::key
protectedinherited

◆ key [2/2]

const std::string& dx::registry::key
protectedinherited

◆ launched [1/3]

std::atomic<bool> dx::object::launched
inherited

◆ launched [2/3]

std::atomic<bool> dx::object::launched
inherited

◆ launched [3/3]

std::atomic<bool> dx::object::launched
inherited

◆ listen

std::deque<std::function<void()> > dx::registry::listen
protectedinherited

◆ opened

template<typename preference_t = dx::preference>
std::atomic< int > dx::usb::platform::device< preference_t >::opened {}
protected
Todo
add runloop ////////////////////////////////////////////////////////////////////////////

◆ owns_root

const std::string dx::registry::owns_root
protectedinherited
Initial value:
{false}{
this->key= key;
}
public:
struct property{
static constexpr auto software= "SOFTWARE";
static constexpr auto root= software;
}
const std::string & key
Definition dx_registry.h:227

◆ pipe

◆ port

io::port dx::proxy::device< dx::preference >::port
protectedinherited

◆ preference [1/3]

◆ preference [2/3]

dx::preference dx::device< ::io_service_t, dx::preference >::preference
inherited

◆ preference [3/3]

dx::preference dx::device< ::io_service_t, dx::preference >::preference
inherited

◆ process

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

◆ puid [1/3]

std::string dx::device< std::string, dx::preference >::puid
inherited

persistent UID - system unique - could change with location

◆ puid [2/3]

std::string dx::device< ::io_service_t, dx::preference >::puid
inherited

persistent UID - system unique - could change with location

◆ puid [3/3]

std::string dx::device< ::io_service_t, dx::preference >::puid
inherited

persistent UID - system unique - could change with location

◆ puuid [1/3]

std::string dx::device< std::string, dx::preference >::puuid
inherited

persistent universal UID - universally unique ID (i.e. serial number)

◆ puuid [2/3]

std::string dx::device< ::io_service_t, dx::preference >::puuid
inherited

persistent universal UID - universally unique ID (i.e. serial number)

◆ puuid [3/3]

std::string dx::device< ::io_service_t, dx::preference >::puuid
inherited

persistent universal UID - universally unique ID (i.e. serial number)

◆ root

const std::string dx::registry::root {registry.root}
protectedinherited

◆ safety_offset

◆ safety_offset_in

◆ safety_offset_out

◆ samplerate

◆ schedule_erase

bool dx::registry::schedule_erase {}
protectedinherited

◆ size

return dx::proxy::device< dx::preference >::size
inherited

◆ speed

template<typename preference_t = dx::preference>
enum speed dx::usb::platform::device< preference_t >::speed

◆ try

rx_t& rx const dx::proxy::device< dx::preference >::try
inherited

◆ [struct]

struct { ... } dx::usb::platform::device< preference_t >::winusb

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

(c) copyright 2009 dynamic acoustics e.U. generated on

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.