a clock domain of the device: its sources, the rates it serves and everything the streams of that domain are timed by
More...
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 >::clock
a clock domain of the device: its sources, the rates it serves and everything the streams of that domain are timed by
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 >::clock::align |
( |
uint32_t | samplerate | ) |
const |
|
inline |
align samplerate to closest supported samplerate
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::string dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::clock::interval_ticks |
( |
uint32_t | interval, |
|
|
uint32_t | ticks = 1 ) |
|
inlinestatic |
describes clock as interval ticks
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 >::clock::lock_delay {} |
ms the device needs to lock its clock after a sample rate change before it takes the next request (USB audio: wLockDelay); 0: none
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 >::clock::resolution {} |
isochonous clock ticks per second; maybe 0 -> use stream::transaction::granularity