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

an interface of the device: the platform's handle to it and the descriptors of its current alternate setting, which update() re-reads whenever the setting is selected More...

#include <dx_usb_device.h>

Inheritance diagram for dx::usb::interface:
Collaboration diagram for dx::usb::interface:

Public Member Functions

interface& close(bool force= false) noexcept
interface& close(bool= false) noexcept
uint8_t index() const
uint8_t index() const
 interface(handlehandle handlehandle, struct descriptor::head* raw, size_t length, const dx::log& log= {})
interface& open()
 opens the USB intreface for exclusice access
::IOUSBInterfaceInterface650* operator ->() const
 operator ::IOUSBInterfaceInterface650**() const
 operator ::IOUSBInterfaceInterface650**() const
 operator ::WINUSB_INTERFACE_HANDLE() const
super& operator [](uint8_t setting) override
uint8_t setting() const
virtual uint8_t setting() const
template<typename data_t>
data_t submit(const control& control) const
template<typename data_t>
data_t submit(const control& control, uint8_t idx= 0) const
template<typename data_t>
interface& submit(const request<data_t>& request) const
template<typename data_t>
interface& submit(const request<data_t>& request, uint8_t idx= 0) const

Public Attributes

std::deque<union audio::descriptor::interface> audio
uint16_t bcdADC{}
std::deque<endpoint> endpoint
dx::usb::platform::interface::runloop runloop

Protected Types

typedef io_object_t handle
typedef ::WINUSB_INTERFACE_HANDLE handle

Protected Member Functions

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

Protected Attributes

dx::log log{}
std::atomic<int> opened{}
handle winusb

Friends

std::ostream& operator <<(std::ostream& os, const interface& interface)

Detailed Description

an interface of the device: the platform's handle to it and the descriptors of its current alternate setting, which update() re-reads whenever the setting is selected

Member Typedef Documentation

◆ handle [1/2]

typedef io_object_t dx::usb::platform::interface::handle
protectedinherited

◆ handle [2/2]

Constructor & Destructor Documentation

◆ interface()

dx::usb::interface::interface(handle handle, struct descriptor::head* raw, size_t length, const dx::log& log= {})
inline

Member Function Documentation

◆ close() [1/2]

interface& dx::usb::platform::interface::close(bool force= false)
inlinenoexceptinherited
Here is the caller graph for this function:

◆ close() [2/2]

interface& dx::usb::platform::interface::close(bool= false)
inlinenoexceptinherited

◆ index() [1/2]

uint8_t dx::usb::platform::interface::index() const
inlineinherited
Here is the caller graph for this function:

◆ index() [2/2]

uint8_t dx::usb::platform::interface::index() const
inlineinherited

◆ initialize() [1/2]

void cf::interface<::IOUSBInterfaceInterface650>::initialize(::IOCFPlugInInterface** cf_interface, ::CFUUIDRef uuid)
inlineprotectedinherited
Here is the caller graph for this function:

◆ initialize() [2/2]

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

◆ open()

interface& dx::usb::platform::interface::open()
inlineinherited

opens the USB intreface for exclusice access

Here is the caller graph for this function:

◆ operator ->()

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

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

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

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

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

◆ operator ::WINUSB_INTERFACE_HANDLE()

dx::usb::platform::interface::operator ::WINUSB_INTERFACE_HANDLE() const
inlineinherited

◆ operator []()

super& dx::usb::interface::operator [](uint8_t setting)
inlineoverridevirtual

Reimplemented from dx::usb::platform::interface.

Here is the call graph for this function:

◆ setting() [1/2]

uint8_t dx::usb::platform::interface::setting() const
inlineinherited
Here is the caller graph for this function:

◆ setting() [2/2]

virtual uint8_t dx::usb::platform::interface::setting() const
inlinevirtualinherited

◆ submit() [1/4]

template<typename data_t>
data_t dx::usb::platform::interface::submit(const control& control) const
inlineinherited
Here is the call graph for this function:

◆ submit() [2/4]

template<typename data_t>
data_t dx::usb::platform::interface::submit(const control& control, uint8_t idx= 0) const
inlineinherited
Here is the call graph for this function:

◆ submit() [3/4]

template<typename data_t>
interface& dx::usb::platform::interface::submit(const request<data_t>& request) const
inlineinherited

◆ submit() [4/4]

template<typename data_t>
interface& dx::usb::platform::interface::submit(const request<data_t>& request, uint8_t idx= 0) const
inlineinherited
Here is the caller graph for this function:

◆ operator <<

std::ostream& operator <<(std::ostream& os, const interface& interface)
friend

Member Data Documentation

◆ audio

std::deque<union audio::descriptor::interface> dx::usb::__::interface::audio
inherited

◆ bcdADC

uint16_t dx::usb::interface::bcdADC{}

◆ endpoint

std::deque<endpoint> dx::usb::__::interface::endpoint
inherited

◆ log

dx::log dx::usb::platform::interface::log{}
protectedinherited

◆ opened

std::atomic<int> dx::usb::platform::interface::opened{}
protectedinherited

◆ runloop

dx::usb::platform::interface::runloop dx::usb::platform::interface::runloop
inherited

◆ winusb

handle dx::usb::platform::interface::winusb
protectedinherited

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