brainaccess.core.time_sync_info#
Classes#
Diagnostic; not needed to use annotate. |
Module Contents#
- class brainaccess.core.time_sync_info.TimeSyncInfo[source]#
Bases:
ctypes.StructureDiagnostic; not needed to use annotate.
State of the clock synchronization that
annotate()uses to place annotations accurately. It needs headset firmware 3.8.0 or newer and is active while a stream runs. When it is not usable, annotations are placed from the arrival time of the data packets and can be slightly early. Returned byget_time_sync_info().- Variables:
supported (bool) –
Trueif the headset took part in the synchronization when the running (or last) stream started.Falsefor firmware older than 3.8.0 or before the first stream.pings (int) – Number of synchronization replies received on this connection.
min_rtt_ms (float) – Shortest round trip of a synchronization message over the last two minutes, in ms; 0 without replies.
uplink_envelope_ms (float) – Typical extra delay, in ms, of messages sent to the headset over the last two minutes compared with the fastest ones. This delay is removed when placing annotations; 0 without replies.
sample_rate_hz (float) – The headset’s sample rate in Hz, as measured against its own clock. It is the nominal rate until a second of samples has arrived, and 0 without a synchronization.
valid (bool) –
Trueif annotations are placed with the synchronization right now.Falseif packet arrival time is used instead (no stream, impedance mode, older firmware, or too few or too old replies).