Skip to content

Enums

ConnectionStatus

Bases: Enum

Enumeration of possible headset connection states.

States marked as TGC are emitted natively by the ThinkGear Connector.

States marked as CUSTOM are custom states defined by this module.

CONNECTED class-attribute instance-attribute

CONNECTED = 1

TGC: The headset is successfully connected via ThinkGear Connector and actively streaming data.

DISCONNECTED class-attribute instance-attribute

DISCONNECTED = 2

TGC: Both the headset and the ThinkGear Connector are disconnected.

IDLE class-attribute instance-attribute

IDLE = 3

TGC: The headset is not connected and the ThinkGear Connector is idle.

SCANNING class-attribute instance-attribute

SCANNING = 4

TGC: The ThinkGear Connector is scanning for the MindWaveMobile2 device.

NOTSCANNING class-attribute instance-attribute

NOTSCANNING = 5

TGC: The ThinkGear Connector is not scanning for the MindWaveMobile2 device.

UNKOWN class-attribute instance-attribute

UNKOWN = 6

CUSTOM: Unrecognized TGC connection status.

CONNECTION_LOST class-attribute instance-attribute

CONNECTION_LOST = 7

CUSTOM: The headset connection was lost. (Represents a transition from CONNECTED to any other state)


EventType

Bases: Enum

Enumeration of event types that can be emitted by the event manager.

Blink = 1

Blink detection event.

ConnectorData class-attribute instance-attribute

ConnectorData = 2

Raw data from the connector, JSON-parsed.

HeadsetData class-attribute instance-attribute

HeadsetData = 3

Parsed data from the headset, contains all streamed attributes.

HeadsetStatus class-attribute instance-attribute

HeadsetStatus = 4

Status updates from the headset.

SessionEvent class-attribute instance-attribute

SessionEvent = 5

Events related to session.

SignalQuality class-attribute instance-attribute

SignalQuality = 6

Signal quality updates.

Timeout class-attribute instance-attribute

Timeout = 7

Timeout event.


SessionSignal

Bases: Enum

Enumeration of signals emitted during a session.

SESSION_START class-attribute instance-attribute

SESSION_START = 1

SESSION_END class-attribute instance-attribute

SESSION_END = 2

BASELINE_START class-attribute instance-attribute

BASELINE_START = 3

BASELINE_END class-attribute instance-attribute

BASELINE_END = 4

TRIAL_START class-attribute instance-attribute

TRIAL_START = 5

TRIAL_END class-attribute instance-attribute

TRIAL_END = 6

REST class-attribute instance-attribute

REST = 7

READY class-attribute instance-attribute

READY = 8

CUE class-attribute instance-attribute

CUE = 9

MOTOR class-attribute instance-attribute

MOTOR = 10