dxd - dynax driver framework 2.2.0d81
cross platform open source driver development framework
|
#include <dx_usb_stream_device.h>
Public Types | |
typedef desc_t | desc |
enum class | speed : uint8_t { low = ::kUSBDeviceSpeedLow , full = ::kUSBDeviceSpeedFull , high = ::kUSBDeviceSpeedHigh , super = ::kUSBDeviceSpeedSuper , superplus = ::kUSBDeviceSpeedSuperPlus , superplus2 = ::kUSBDeviceSpeedSuperPlusBy2 , usb1 = full , usb2 = high , usb3 = super , usb31 = super , usb32 = superplus , usb32x2 = superplus2 , low = ::UsbLowSpeed , full = ::UsbFullSpeed , high = ::UsbHighSpeed , super = ::UsbSuperSpeed , superplus = 4 , superplus2 = 5 , usb1 = full , usb2 = high , usb3 = super , usb31 = super , usb32 = superplus , usb32x2 = superplus2 } |
USB speed. More... | |
enum class | speed : uint8_t { low = ::kUSBDeviceSpeedLow , full = ::kUSBDeviceSpeedFull , high = ::kUSBDeviceSpeedHigh , super = ::kUSBDeviceSpeedSuper , superplus = ::kUSBDeviceSpeedSuperPlus , superplus2 = ::kUSBDeviceSpeedSuperPlusBy2 , usb1 = full , usb2 = high , usb3 = super , usb31 = super , usb32 = superplus , usb32x2 = superplus2 , 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 | |
virtual uint32_t | clocksource () |
virtual uint32_t | clocksource (uint32_t clocksource) try |
device & | close () noexcept |
device & | close (bool force=false) noexcept |
void | conclude () noexcept override |
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 | |
uint8_t | configurations () const |
auto | count () const noexcept |
void | ctl (uint32_t ioctl) const |
void | ctl (unsigned int ioctl) const |
device (decltype(super::driver)&driver, decltype(super::id)&id, const desc_t &desc={}) | |
dx_catchall_rethrow () device &open() | |
for macOS compatibility only | |
dx_catchall_rethrow () uint32_t samplerate() const override | |
dx_catchall_rethrow () virtual void configure() | |
dx_catchall_rethrow (, "iosize: %d (current: %d)", iosize, hw.iosize) virtual int32_t iosize() const try | |
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 | |
registry & | erase (const char *key=nullptr) |
uint64_t | frame () const |
uint64_t | frame () const try |
::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 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 int32_t | iosize (uint32_t iosize, dx::event< user > &hw_clock) try |
void | launch () override |
launch notification: object mounted and ready to use | |
virtual bool | monitor () noexcept |
monitor_t * | monitor (bool force=false) |
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 |
device & | open () |
opens the USB device for exclusice access | |
operator const io_registry_entry_t & () const noexcept | |
auto converter into const 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 std::string () 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::CFStringRef () const | |
operator::HKEY () const noexcept | |
bool | operator== (io_registry_entry_t io_object) const noexcept |
::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 |
device & | reenumerate () |
virtual device & | reset () |
reference & | retain () |
template<typename observer_t = uint32_t> | |
observer_t * | samplerate () const |
uint32_t | samplerate (uint32_t samplerate) override try |
registry & | set (::CFStringRef key, ::CFTypeRef value) noexcept |
template<typename value_t , typename = cf::enable_if_convertible<value_t>> | |
registry & | set (::CFStringRef key, value_t value) |
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. | |
template<typename key_t , typename = cf::enable_if_convertible<key_t>> | |
registry & | set (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>> | |
registry & | set (key_t key, value_t value) |
virtual void | start () |
virtual void | stop (bool=false) |
device & | submit (const control &control) const |
template<typename data_t > | |
device & | submit (const request< data_t > &request) const try |
standard device request | |
template<typename data_t > | |
device & | submit (const request< data_t > &request, bool autoclear=true) const try |
Public Attributes | ||
union { | ||
struct { | ||
struct { | ||
struct { | ||
uint8_t id | ||
} selector | ||
struct { | ||
uint8_t id | ||
} source | ||
} clock | ||
} v2 | ||
} | adc | |
uint16_t | bcdADC = 0 | |
bool | composite = false | |
indicate WinUSB matched against single interface of composit device; | ||
std::atomic< size_t > | counter | |
dx::driver< decltype(id)> & | driver | |
dx::driver< decltype(id)> & | driver | |
struct { | ||
dx::event< user > * clock | ||
std::atomic< size_t > counter | ||
uint32_t iosize | ||
} | hw | |
std::weak_ptr< dx::circular > | implicit_feedback | |
uint32_t | iosize | |
bool | launched {} | |
bool | launched {} | |
std::map< uint8_t, std::weak_ptr< usb::pipe< device > > > | pipes | |
sc::preference | preference | |
registry | preference | |
std::string | puid | |
persistent UID (i.e. serial number) | ||
std::string | puuid | |
persistent universal UID | ||
shared::memory< dx::stream::clock::monitor > | shared_monitor | |
enum dx::usb::platform::device::speed | speed | |
std::map< uint8_t, std::weak_ptr< dx::stream::stream< device > > > | streams | |
uint32_t | version | |
uint32_t | version | |
Protected Member Functions | |
void | initialize (::IOCFPlugInInterface **cf_interface, ::CFUUIDRef uuid) |
void | initialize (io_object_t io_object, ::CFUUIDRef type, ::CFUUIDRef uuid) |
::IOUSBDeviceInterface650 * | operator-> () const |
operator::IOUSBDeviceInterface650 ** () const | |
Protected Attributes | ||
bool | connected = false | |
struct { | ||
cf::type< const char * > bundle_id | ||
cf::type< const char * > class_name | ||
} | kernel | |
std::atomic< int > | opened {} | |
io::port | port | |
struct { | ||
::WINUSB_INTERFACE_HANDLE handle | ||
} | winusb | |
|
inherited |
|
stronginherited |
|
stronginherited |
|
inline |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineoverridevirtualnoexceptinherited |
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.
Reimplemented from dx::object.
|
inlineoverridevirtualnoexceptinherited |
conclude notifacation: device will be removed from tree
Reimplemented from dx::object.
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
for macOS compatibility only
|
inlineoverride |
|
inline |
|
inlineinherited |
<
|
inherited |
|
inherited |
|
inlineinherited |
device control request
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
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.
|
inlineinherited |
|
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 |
|
inlineinherited |
|
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 |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineoverridevirtual |
launch notification: object mounted and ready to use
Reimplemented from dx::object.
|
inlinevirtualnoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
opens the USB device for exclusice access
|
inlinenoexceptinherited |
auto converter into const io_object
|
inlinenoexceptinherited |
auto converter into io_object
|
inlinenoexceptinherited |
auto converter into io_object pointer
|
inlineinherited |
|
inlineexplicitinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineexplicitinherited |
|
inlineexplicitinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineinherited |
|
inlinevirtual |
Reimplemented from dx::stream::device< usb::device, desc_t >.
|
inlineoverridevirtual |
Reimplemented from dx::stream::device< usb::device, desc_t >.
|
inlinenoexceptinherited |
|
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 |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlineinherited |
standard device request
|
inlineinherited |
union { ... } dx::usb::stream::device< desc_t >::adc |
uint16_t dx::usb::stream::device< desc_t >::bcdADC = 0 |
|
inherited |
struct { ... } dx::usb::stream::device< desc_t >::clock |
|
inherited |
indicate WinUSB matched against single interface of composit device;
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
struct { ... } dx::stream::device< usb::device , desc_t >::hw |
uint8_t dx::usb::stream::device< desc_t >::id |
std::weak_ptr<dx::circular> dx::usb::stream::device< desc_t >::implicit_feedback |
|
inherited |
struct { ... } dx::proxy::device::kernel |
|
inherited |
|
inherited |
|
protectedinherited |
std::map<uint8_t,std::weak_ptr<usb::pipe<device> > > dx::usb::stream::device< desc_t >::pipes |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
persistent UID (i.e. serial number)
|
inherited |
persistent universal UID
struct { ... } dx::usb::stream::device< desc_t >::selector |
|
inherited |
struct { ... } dx::usb::stream::device< desc_t >::source |
|
inherited |
|
inherited |
struct { ... } dx::usb::stream::device< desc_t >::v2 |
|
inherited |
|
inherited |
struct { ... } dx::usb::platform::device::winusb |
(c) copyright 2009 dynamic acoustics e.U. | generated on Fri Dec 20 2024 |