SharpBCI
A multi-threaded brain control interface (BCI) library in C#
|
An EEGDeviceAdapter which connects to an EEGDevice via OSC It then asynchronously listens for messages on a given OSC socket and emits the appropriate EEGEvents for the received OSC message Target Hardware: Muse 2014 and Muse 2016 (via android-bridge.apk) More...
Public Member Functions | |
RemoteOSCAdapter (int port) | |
override void | Start () |
Starts the listener for OSC packets on the specified port number and starts the Run function in a new thread. More... | |
override void | Stop () |
Stops the listener and stops triggers the stop of the Run function. More... | |
Public Member Functions inherited from SharpBCI.EEGDeviceAdapter | |
delegate void | DataHandler (EEGEvent evt) |
void | AddHandler (EEGDataType type, DataHandler handler) |
Use this function to add a handler function that is called for each EEGEvent of the specified EEGDataType. More... | |
void | RemoveHandler (EEGDataType type, DataHandler handler) |
Use this function to remove a handler that has been added with the AddHandler function. More... | |
void | FlushEvents () |
Thread safe function that removes events from the event queue and calls FlushEvent (without a s) on each event to send data through pipelines. More... | |
Public Attributes | |
const int | HANGUP_TIME = 1000 |
How long the RemoteOSCAdapter waits until it assumes the device has hung up. More... | |
Public Attributes inherited from SharpBCI.EEGDeviceAdapter | |
readonly int | channels |
Number of channels or sensors collecting data from. More... | |
readonly double | sampleRate |
The rate per second that data is expected to be received. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SharpBCI.EEGDeviceAdapter | |
EEGDeviceAdapter (int channels, double sampleRate) | |
void | EmitData (EEGEvent evt) |
Puts EEGEvents into the eventQueue to wait; events are flushed and handlers operate on the events. More... | |
An EEGDeviceAdapter which connects to an EEGDevice via OSC It then asynchronously listens for messages on a given OSC socket and emits the appropriate EEGEvents for the received OSC message Target Hardware: Muse 2014 and Muse 2016 (via android-bridge.apk)
SharpBCI.RemoteOSCAdapter.RemoteOSCAdapter | ( | int | port | ) |
|
virtual |
Starts the listener for OSC packets on the specified port number and starts the Run function in a new thread.
Implements SharpBCI.EEGDeviceAdapter.
|
virtual |
Stops the listener and stops triggers the stop of the Run function.
Implements SharpBCI.EEGDeviceAdapter.
const int SharpBCI.RemoteOSCAdapter.HANGUP_TIME = 1000 |
How long the RemoteOSCAdapter waits until it assumes the device has hung up.