BrainBit for developers Subscribe for updates Visit website

EegIndexChannel

 

#include “c_eeg_channels.h

 

The data channel of the electroencephalographic (EEG) signal indices. The channel determines the rhythms by the EEG signal: alpha, beta, delta, theta. Heir to the base class of ​AnyChannel channels. Notification of new data in the channel is carried out only when the device is connected and the signal is being picked up

Description

create_EegIndexChannel

Function. Channel creation.

Creates a data channel of EEG signal indices.

Options:

t3

Description: EEG signal data channel from overlapping area T3

Data type: EegDoubleChannel*

t4

Description: EEG signal data channel from overlapping area T4

Data type: EegDoubleChannel*

o1

Description: EEG signal data channel from overlapping area O1

Data type: EegDoubleChannel*

o2

Description: EEG signal data channel from overlapping area O2

Data type: EegDoubleChannel*

Return value:

Description: index channel

Data type: EegIndexChannel*

EegIndexChannel_read_data

Function. Channel data request.

Method that returns the requested amount of data.

Options:

channel

Description: data channel pointer

Data type: EegIndexChannel*

offset

Description: Offset from the start of data

Data type: size_t

length

Description: The required number of signal samples. If there is not enough data in the channel, then they will be filled with zeros.

Data type: size_t *

out_buffer

Description: data array EegIndexValues, length of length.​

Data type: EegIndexValues *

buffer_size

Description: desired buffer size.​

Data type: size_t

samples_read

Description: size of data read.​

Data type: size_t *

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

EegIndexChannel_get_buffer_size

Function. Channel buffer request.

Lets get the channel buffer.
Options:

channel

Description: index channel pointer

Data type: EegIndexValues*

out_buffer_size

Description: pointer to the length of the channel buffer.

Data type: size_t *

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

EegIndexChannel_set_delay

Function. Setting the width of the index calculation window.

Increase the width of the index calculation window by the specified value in seconds. The default is 2 sec..

Options:

channel

Description: index channel pointer

Data type: EegIndexValues*

delay_seconds

Description: window width

Data type: double

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

EegIndexChannel_set_weight_coefficients

Function. Setting Index Weights.

Sets the proportions of calculations for each of the rhythms. It can take values from 0 to 1.

Options:

channel

Description: index channel pointer

Data type: EegIndexValues*

alpha

Description: alpha index weight

Data type: double

beta

Description: beta index weight

Data type: double

delta

Description: delta index weight

Data type: double

theta

Description: theta index weight

Data type: double

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

EegIndexChannel_get_mode

Function. Getting the index calculation mode.

Getting the current index calculation mode.

Options:

channel

Description: index channel pointer

Data type: EegIndexValues*

out_mode

Description: index calculation mode

Data type: EegIndexMode*

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

EegIndexChannel_get_base_power_left

Function. Receiving signal strength from the left side.

Getting the current signal strength from the left side.

Options:

channel

Description: index channel pointer

Data type: EegIndexValues*

out_power

Description: power

Data type: double*

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

EegIndexChannel_get_base_power_right

Function. Receiving signal strength from the right side.

Getting the current signal strength from the right side.

Options:

channel

Description: index channel pointer

Data type: EegIndexValues*

out_power

Description: power

Data type: double*

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.