dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::stream::config Struct Reference

dx::desc::stream::config interface descriptor More...

#include <dx_stream.h>

Collaboration diagram for dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::stream::config:

Classes

struct  clock

Public Member Functions

uint32_t linesize() const
uint32_t linesize(const struct format& format) const
 total length of the samples of all channels in the given format

Public Attributes

uint32_t channels{}
 amount of channels in interface
struct dx::stream::desc::stream::config::clock clock
format format{}
 the stream's format, in its ring and on the bus: none stated, its participants agree on one
uint32_t id{}
 the bus entity selecting this configuration (USB: the stream's alternate setting)

Friends

std::ostream& operator <<(std::ostream& os, const config& config)
 config as channels* format clock domain

Detailed Description

template<typename target_t = void_struct, int max_streams = 2, int max_pins = 1, int max_clock_settings = 1, int max_clocks = 1, int max_configurations = 1, int max_sources = 1>
struct dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::stream::config

dx::desc::stream::config interface descriptor

A stream can have various configuration with varying supported samples rates, number of channels and data formats.

Todo
move target from stream to stream::config to relate USB alternate interface settings to the configuration

Member Function Documentation

◆ linesize() [1/2]

template<typename target_t= void_struct, int max_streams= 2, int max_pins= 1, int max_clock_settings= 1, int max_clocks= 1, int max_configurations= 1, int max_sources= 1>
uint32_t dx::stream::desc<target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources>::stream::config::linesize() const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ linesize() [2/2]

template<typename target_t= void_struct, int max_streams= 2, int max_pins= 1, int max_clock_settings= 1, int max_clocks= 1, int max_configurations= 1, int max_sources= 1>
uint32_t dx::stream::desc<target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources>::stream::config::linesize(const struct format& format) const
inline

total length of the samples of all channels in the given format

◆ operator <<

template<typename target_t= void_struct, int max_streams= 2, int max_pins= 1, int max_clock_settings= 1, int max_clocks= 1, int max_configurations= 1, int max_sources= 1>
std::ostream& operator <<(std::ostream& os, const config& config)
friend

config as channels* format clock domain

Member Data Documentation

◆ channels

template<typename target_t= void_struct, int max_streams= 2, int max_pins= 1, int max_clock_settings= 1, int max_clocks= 1, int max_configurations= 1, int max_sources= 1>
uint32_t dx::stream::desc<target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources>::stream::config::channels{}

amount of channels in interface

◆ clock

template<typename target_t= void_struct, int max_streams= 2, int max_pins= 1, int max_clock_settings= 1, int max_clocks= 1, int max_configurations= 1, int max_sources= 1>
struct dx::stream::desc::stream::config::clock dx::stream::desc<target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources>::stream::config::clock

◆ format

template<typename target_t= void_struct, int max_streams= 2, int max_pins= 1, int max_clock_settings= 1, int max_clocks= 1, int max_configurations= 1, int max_sources= 1>
format dx::stream::desc<target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources>::stream::config::format{}

the stream's format, in its ring and on the bus: none stated, its participants agree on one

◆ id

template<typename target_t= void_struct, int max_streams= 2, int max_pins= 1, int max_clock_settings= 1, int max_clocks= 1, int max_configurations= 1, int max_sources= 1>
uint32_t dx::stream::desc<target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources>::stream::config::id{}

the bus entity selecting this configuration (USB: the stream's alternate setting)


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