dxd - dynax driver framework 3.0.1d223
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::usb::clock::frame Struct Reference

chrono conforming bus frame clock: frames since bus start; now() maps the OS timestamp onto the frame counter via the tick thread's correlation More...

#include <dx_usb_clock.h>

Collaboration diagram for dx::usb::clock::frame:

Public Types

typedef std::chrono::duration< rep, period > duration
typedef std::milli period
 the 1ms USB bus frame
typedef uint64_t rep
typedef std::chrono::time_point< frame, duration > time_point

Static Public Member Functions

static time_point now ()
static int64_t timestamp (rep frame)
 the OS timestamp of a bus frame's start: by the phase, or by the plain correlation until lock() found one

Static Public Attributes

static isoc::correlation correlation {}
 per tick thread: synced by its source every tick
static constexpr bool is_steady {true}

Detailed Description

chrono conforming bus frame clock: frames since bus start; now() maps the OS timestamp onto the frame counter via the tick thread's correlation

Member Typedef Documentation

◆ duration

typedef std::chrono::duration<rep, period> dx::usb::clock::frame::duration

◆ period

typedef std::milli dx::usb::clock::frame::period

the 1ms USB bus frame

◆ rep

◆ time_point

typedef std::chrono::time_point<frame, duration> dx::usb::clock::frame::time_point

Member Function Documentation

◆ now()

time_point dx::usb::clock::frame::now ( )
inlinestatic
Here is the call graph for this function:

◆ timestamp()

int64_t dx::usb::clock::frame::timestamp ( rep frame)
inlinestatic

the OS timestamp of a bus frame's start: by the phase, or by the plain correlation until lock() found one

Here is the call graph for this function:

Member Data Documentation

◆ correlation

isoc::correlation dx::usb::clock::frame::correlation {}
inlinethread_localstatic

per tick thread: synced by its source every tick

◆ is_steady

bool dx::usb::clock::frame::is_steady {true}
staticconstexpr

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

(c) copyright 2009 dynamic acoustics e.U. generated on

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.