BrainAccess C API#

Bring BrainAccess EEG into your own software. The BrainAccess C API connects to BrainAccess devices over Bluetooth Low Energy, configures them and streams their data straight into your application – on Windows, Linux (including Raspberry Pi) and macOS, from one set of headers.

The library has a plain C interface, so it works from C and C++ and from any language that can call a C library, such as C#, Java, Rust or Go.

Install

Download the SDK for your platform and link your first program.

Installation
Examples

Connect to a device and print live EEG in under 200 lines of C.

Examples
Streaming

Channels, chunks and units of the data your application receives.

Streaming data

Supported devices#

Device

Electrodes

Motion sensors

Sample rates

BrainAccess MINI

8

accelerometer

250, 500 Hz

BrainAccess MIDI

16

accelerometer

250, 500 Hz

BrainAccess MAXI

32

accelerometer

250, 500 Hz

BrainAccess HALO

4

–

250, 500 Hz

BrainAccess HALO V3

4

accelerometer, gyroscope

250, 500 Hz, 1 kHz

BrainAccess EXG8

8

accelerometer, gyroscope

250, 500 Hz, 1, 2 kHz

Your application does not need to hard-code this table: ba_core_device_features_get() describes the connected device.

New in 4.0#

  • EXG8 and HALO V3, with their gyroscopes and sample rates up to 2 kHz.

  • Precise annotations: event markers are placed on the exact sample using the device clock.

  • Digital input: a trigger input recorded with every sample.

  • Clearer errors: every read reports whether it succeeded, and refused settings or failed stream starts are reported instead of passing silently.

Coming from version 3.6? Migrating from 3.6 lists what to update.