brainaccess.core.eeg_channel#
Defines the starting addresses of data channels within a data chunk.
This module provides constants that represent the starting indices for different types of data within a single data chunk. This allows for easy and reliable access to specific data points, such as EEG measurements, accelerometer values, and digital input states.
- brainaccess.core.eeg_channel.SAMPLE_NUMBER[source]#
The index of the sample number, which starts at 0 at the beginning of a stream.
- Type:
int
- brainaccess.core.eeg_channel.ELECTRODE_MEASUREMENT[source]#
The starting index for EEG electrode measurement values (in microvolts).
- Type:
int
- brainaccess.core.eeg_channel.ELECTRODE_CONTACT[source]#
The starting index for the contact status of the electrodes.
- Type:
int
- brainaccess.core.eeg_channel.DIGITAL_INPUT[source]#
The starting index for the state of the digital I/O pins.
- Type:
int
- brainaccess.core.eeg_channel.ACCELEROMETER[source]#
The starting index for accelerometer data.
- Type:
int
- brainaccess.core.eeg_channel.STREAMING[source]#
The index for the streaming status of the device.
- Type:
int
- brainaccess.core.eeg_channel.ELECTRODE_CONTACT_P[source]#
The starting index for the contact status of the positive (P) electrodes.
- Type:
int
- brainaccess.core.eeg_channel.ELECTRODE_CONTACT_N[source]#
The starting index for the contact status of the negative (N) electrodes.
- Type:
int
Examples
To get the x, y, and z indices for the accelerometer data within a chunk:
x: get_channel_index(ACCELEROMETER + 0)
y: get_channel_index(ACCELEROMETER + 1)
z: get_channel_index(ACCELEROMETER + 2)