|
dxd - dynax driver framework 2.6.0d204
cross platform open source driver development framework
|
#include <dx_usb_stream_device.h>
Public Types | |
| typedef desc_t | desc_t |
| typedef pipe< device< desc_t, dx::preference, pipe > > | stream_t |
Public Member Functions | |
| DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN | catch (const dx::exception &__dx_exception) |
| device & | close (bool force=false) noexcept |
| 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. | |
| void | conclude () noexcept override |
| conclude notifacation: device will be removed from tree | |
| virtual uint8_t | configuration (uint8_t configuration) |
| uint8_t | configurations () const |
| DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void | configure () |
| auto | count () const noexcept |
| auto | count () const noexcept |
| void | ctl (uint32_t ioctl) const try |
| dx_catchall_handler (this,) void conclude() noexcept override | |
| dx_catchall_rethrow (, "name: %s, access rights: %x, sharing options:%x", name, access, share) | |
| dx_pass (::IOConnectCallStructMethod(io_connect, ioctl, nullptr, 0, &rx, &size), "%s rx:%p size:%d", fourchar::to::string(ioctl).c_str(), &rx, size) | |
| uint64_t | frame () const try |
| value_t | get (::CFStringRef key) const |
| ::CFTypeRef | get (::CFStringRef key) const |
| value_t | get (::CFStringRef key, ::CFTypeRef dflt) const noexcept |
| ::CFTypeRef | get (::CFStringRef key, ::CFTypeRef dflt) const noexcept |
| value_t | get (::CFStringRef key, value_t dflt) const noexcept |
| value_t | get (::CFStringRef key, value_t dflt) const noexcept |
| value_t | get (key_t key) const |
| ::CFTypeRef | get (key_t key) const |
| virtual bool | hw_clock () const noexcept |
| virtual void | hw_clock (abstract::event *hw_clock) |
| rx_t | ictl (unsigned int ioctl) const |
| Windows: member ioctl. | |
| DX_PRAGMA_IGNORE_RETURN_VALUE_END void | info (std::ostream &os) noexcept override |
| 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 | |
| size_t | ioctl (unsigned int ioctl, const tx_t &tx, rx_t &rx) const |
| void | launch () override try |
| void | octl (unsigned int ioctl, const tx_t &tx) const |
| device & | open () |
| 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 uint64_t () const | |
| operator uint64_t () const | |
| ::IOUSBDeviceInterface650 * | operator-> () const |
| operator::CFMutableDictionaryRef () const | |
| operator::CFMutableDictionaryRef () const | |
| operator::CFStringRef () const | |
| operator::CFStringRef () const | |
| 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 | |
| operator::IOUSBDeviceInterface650 ** () const | |
| bool | operator== (::io_registry_entry_t io_object) const noexcept |
| bool | operator== (::io_registry_entry_t io_object) const noexcept |
| virtual device & | operator>> (std::ostream &) const |
| virtual device & | operator>> (std::ostream &) const |
| ::CFTypeRef | operator[] (::CFStringRef key) const |
| ::CFTypeRef | operator[] (::CFStringRef key) const |
| ::CFTypeRef | operator[] (key_t key) const |
| ::CFTypeRef | operator[] (key_t key) const |
| registry | parent () const |
| registry | parent () const |
| device & | reenumerate () |
| reference & | retain () |
| reference & | retain () |
| registry & | set (::CFStringRef key, ::CFTypeRef value) |
| registry & | set (::CFStringRef key, ::CFTypeRef value) |
| registry & | set (::CFStringRef key, value_t value) |
| registry & | set (::CFStringRef key, value_t value) |
| device & | set (::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. | |
| registry & | set (::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. | |
| registry & | set (key_t key, ::CFTypeRef value) |
| registry & | set (key_t key, ::CFTypeRef value) |
| registry & | set (key_t key, value_t value) |
| registry & | set (key_t key, value_t value) |
| virtual void | sleep () |
| notify system will sleep stub | |
| virtual void | sleep () |
| notify system will sleep stub | |
| virtual bool | start (uint64_t=0, unsigned int starting=1) |
| virtual unsigned int | stop (bool force=false) noexcept |
| device & | submit (const request< data_t > &request, bool autoclear=true) const try |
| void | wake () override |
Public Attributes | |
| union { | |
| struct { | |
| struct { | |
| struct { | |
| uint8_t id | |
| } selector | |
| struct { | |
| uint8_t id | |
| } source | |
| } clock | |
| } v2 | |
| } | adc |
| uint16_t | bcdADC |
| cf::string | bundle_id |
| struct { | |
| struct { | |
| uint8_t id | |
| } selector | |
| struct { | |
| uint8_t id | |
| } source | |
| } | clock |
| promoted< uint32_t >::preference< decltype(dx::stream::control< usb::device< dx::preference > >::preference)> | clocksource |
| bool | composite |
| indicate WinUSB matched against single interface of composit device; | |
| std::atomic< size_t > | counter |
| dx::driver< decltype(id), dx::preference > & | driver |
| dx::driver< decltype(id), dx::preference > & | driver |
| dx::driver< decltype(id), dx::preference > & | driver |
| ::WINUSB_INTERFACE_HANDLE | handle |
| struct { | |
| abstract::event * clock | |
| std::atomic< size_t > counter | |
| uint32_t iosize | |
| } | hw |
| promoted< std::string >::preference< decltype(dx::stream::control< usb::device< dx::preference > >::preference)> | icon |
| uint8_t | id |
| std::weak_ptr< dx::circular > | implicit_feedback |
| promoted< uint32_t >::preference< decltype(dx::stream::control< usb::device< dx::preference > >::preference)> | iosize |
| uint32_t | iosize |
| bool | launched |
| bool | launched |
| bool | launched |
| dx::stream::device::monitor | monitor |
| std::deque< std::function< void(control &)> > | notify |
| 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 (i.e. serial number) - system unique - if no other option to identify 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 | |
| promoted< uint32_t >::preference< decltype(dx::stream::control< usb::device< dx::preference > >::preference)> | safety_offset [direction::directions] |
| promoted< uint32_t >::preference< decltype(dx::stream::control< usb::device< dx::preference > >::preference)> | samplerate |
| struct { | |
| uint8_t id | |
| } | selector |
| return | size |
| struct { | |
| uint8_t id | |
| } | source |
| enum speed | speed |
| std::atomic< unsigned int > | started |
| std::map< decltype(desc_t::stream::target.idx()), std::weak_ptr< pipe< device< desc_t, dx::preference, pipe > > > > | streams |
| promoted< uint32_t >::preference< decltype(dx::stream::control< usb::device< dx::preference > >::preference)> | sync_cycle_ticks |
| promoted< structdesc_t::stream * >::template preference< decltype(dx::stream::control< usb::device< dx::preference > >::preference), uint32_t > | sync_reference |
| rx_t &rx const | try |
| struct { | |
| struct { | |
| struct { | |
| uint8_t id | |
| } selector | |
| struct { | |
| uint8_t id | |
| } source | |
| } clock | |
| } | v2 |
| dx::stream::device::monitor | version |
Protected Types | |
| typedef service::request< service::stream::data< typename super_device_t::desc_t > > | request |
| enum | type |
Protected Member Functions | |
| iterator | begin () const |
| iterator | end () const |
| registry & | erase (const char *subkey=nullptr) noexcept |
| virtual void | flush () |
| virtual void | halt () |
| void | initialize (::IOCFPlugInInterface **cf_interface, ::CFUUIDRef uuid) |
| registry & | initialize (const std::string &key, ::HKEY root=HKEY_CURRENT_USER, ::REGSAM rights=KEY_ALL_ACCESS) try |
| registry & | initialize (const std::string &key, ::REGSAM rights, ::HKEY root, const char *path=nullptr) try |
| std::string | key_from_index (size_t index) const try |
| dx_catchall_rethrow() registry &initialize( | operator keys () const noexcept |
| registry & | run () |
Protected Attributes | |
| bool | connected |
| struct { | |
| cf::string bundle_id | |
| cf::string class_name | |
| } | kernel |
| dx_catchall_rethrow() public std::deque< std::function< void()> > | listen |
| std::atomic< int > | opened |
| pipe< request >::server | pipe |
| io::port | port |
| dx::service::device::chain | safety_offset_in [dx::stream::direction::in] |
| dx::service::device::chain | safety_offset_out [dx::stream::direction::out] |
| decltype(super::samplerate) ::chain | samplerate_server |
| bool | schedule_erase |
| std::recursive_mutex | start_stop_in_progress |
| start/stop operation in progress | |
| struct { | |
| ::WINUSB_INTERFACE_HANDLE handle | |
| } | winusb |
|
inherited |
|
protectedinherited |
|
inherited |
|
strongprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinevirtualnoexceptinherited |
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.
|
inlineoverridenoexceptinherited |
conclude notifacation: device will be removed from tree
|
inlinevirtualinherited |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineoverridenoexceptinherited |
|
inherited |
|
inherited |
|
inlineprotectedinherited |
|
inlineprotectednoexceptinherited |
|
inlineprotectedvirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedvirtualinherited |
|
inlinevirtualnoexceptinherited |
|
inlinevirtualinherited |
|
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
| n/a | microsoft does not give information about what possible errors values are provided by its OS other than |
| ERROR_INSUFFICIENT_BUFFER | if the output buffer is too small to receive any data |
|
inlineprotectedinherited |
|
inlineinherited |
(re-)initialization the underlaying windows API is CreateFile(). for detailed information see http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx
| n/a | microsoft does not give information about what possible errors values are provided by its OS |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineoverridevirtualinherited |
Reimplemented from dx::object.
|
inlineinherited |
|
inlineinherited |
opens the USB device for exclusice access
|
inlinenoexceptinherited |
auto converter into const io_object
|
inlinenoexceptinherited |
auto converter into const io_object
|
inlineprotectednoexceptinherited |
|
inlineexplicitinherited |
|
inlineexplicitinherited |
|
inlineinherited |
|
inlineexplicitinherited |
|
inlineexplicitinherited |
|
inlineexplicitinherited |
|
inlineexplicitinherited |
|
inlinenoexceptinherited |
auto converter into io_object
|
inlinenoexceptinherited |
auto converter into io_object
|
inlinenoexceptinherited |
auto converter into io_object pointer
|
inlinenoexceptinherited |
auto converter into io_object pointer
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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.
|
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.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
notify system will sleep stub
|
inlinevirtualinherited |
notify system will sleep stub
|
inlinevirtualinherited |
result indicates if start changed the state.
|
inlinevirtualnoexceptinherited |
result indicates the amount of stopped start references
|
inlineinherited |
|
inlineoverrideinherited |
| union { ... } dx::usb::stream::_device< desc_t, dx::preference, pipe< device< desc_t, dx::preference, pipe > > >::adc |
|
inherited |
|
inherited |
| struct { ... } dx::usb::stream::_device< desc_t, dx::preference, pipe< device< desc_t, dx::preference, pipe > > >::clock |
|
inherited |
|
inherited |
indicate WinUSB matched against single interface of composit device;
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| struct { ... } dx::stream::device< dx::stream::control< usb::device< dx::preference > >, desc_t, pipe< device< desc_t, dx::preference, pipe > > >::hw |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| struct { ... } dx::service::device< dx::preference >::kernel |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
persistent UID - system unique - could change with location
|
inherited |
persistent UID (i.e. serial number) - system unique - if no other option to identify could change with location
|
inherited |
persistent universal UID - universally unique ID (i.e. serial number)
|
inherited |
persistent universal UID - universally unique ID
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
| struct { ... } dx::usb::stream::_device< desc_t, dx::preference, pipe< device< desc_t, dx::preference, pipe > > >::selector |
|
inherited |
| struct { ... } dx::usb::stream::_device< desc_t, dx::preference, pipe< device< desc_t, dx::preference, pipe > > >::source |
|
inherited |
|
protectedinherited |
start/stop operation in progress
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| struct { ... } dx::usb::stream::_device< desc_t, dx::preference, pipe< device< desc_t, dx::preference, pipe > > >::v2 |
|
inherited |
| struct { ... } dx::usb::platform::device< dx::preference >::winusb |
| (c) copyright 2009 dynamic acoustics e.U. | generated on |