BrainBit for developers Subscribe for updates Visit website

AnyChannel

 

#include “cchannels.h

 

Abstract channel structure. Contains general information about the channel.

Description

AnyChannel_delete

Function. Delete channel

AnyChannel_get_info

Function. Channel information request.

Allows you to get information about the channel.

Options:

channel

Description: data channel pointer

Data type: AnyChannel*

out_info

Description: pointer to channel information

Data type: ChannelInfo *

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

AnyChannel_get_sampling_frequency

Function. Channel sampling rate query.

Returns a sign of an error.

Pass the channel sampling rate in Hz to the second parameter.

Options:

channel

Description: data channel pointer

Data type: AnyChannel*

out_frequency

Description: pointer to the address of which the channel sampling rate will be written

Data type:  float *

Return value: 

Description: An indication of an error. More details sdk_error

Data type: int.

AnyChannel_add_length_callback

Function. Changing the length of the canal.

Subscribes to the channel length change event.

Options:

channel

Description: data channel pointer

Data type: AnyChannel*

(AnyChannel *, size_t, void *)

Description: pointer to the method for handling the channel length change event

Data type: void(*callback)

handle

Description: listener for channel length change events. More details LengthListenerHandle.

Data type: LengthListenerHandle *

user_data

Description: any data structures will be passed to the event listener 

Data type: void *

Return value: 

Description: An indication of an error. More details sdk_error

Data type: int.

AnyChannel_get_total_length

Function. Channel length query.

Allows to get the number of signal counts for the entire period.
Options:

channel

Description: data channel pointer

Data type: AnyChannel*

out_length

Description: channel length pointer.

Data type: size_t *

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.