brainaccess.core.time_sync_info#

Classes#

TimeSyncInfo

Diagnostic; not needed to use annotate.

Module Contents#

class brainaccess.core.time_sync_info.TimeSyncInfo[source]#

Bases: ctypes.Structure

Diagnostic; 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 by get_time_sync_info().

Variables:
  • supported (bool) – True if the headset took part in the synchronization when the running (or last) stream started. False for 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) – True if annotations are placed with the synchronization right now. False if packet arrival time is used instead (no stream, impedance mode, older firmware, or too few or too old replies).

property supported: bool[source]#

True if the headset took part in the synchronization.

Return type:

bool

property valid: bool[source]#

True if annotations are placed with the synchronization right now.

Return type:

bool