BrainBit for developers Subscribe for updates Visit website

SignalDoubleChannel

 

#include “csignal-channel.h

 

Physiological signal data channel. Heir to the base class of DoubleChannel channels. Notification of new data in a channel is carried out only when a device is connected and a signal is started (CommandStartSignal). More details: ​Command

Description

device_subscribe_signal_channel_data_received

Function. Add a listener to the physiological signal data channel.

Subscribe to physiological signal data feed.

Options:

device_ptr

Description: Device class instance

Data type: Device*

info

Description: Channel information

Data type: ChannelInfo

(Device*, ChannelInfo, SignalDataArray, void *)

Description: physiological signal channel data processing method.

Data type: void(*callback)

handle

Description: physiological signal channel data update listener. More details

LengthListenerHandle.

Data type: LengthListenerHandle*

user_data

Description: any data structures will be passed to the data processing method 

Data type: void *

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.

create_SignalDoubleChannel

Function. Channel creation.

Creates a physiological signal data channel.

Options:

device_ptr

Description: Device class instance

Data type: Device*

Return value:

Description: Signal channel

Data type: SignalDoubleChannel*

create_SignalDoubleChannel_info

Function. Channel creation.

Creates a physiological signal data channel.

Options:

device_ptr

Description: Device class instance

Data type: Device*

info

Description: Channel information

Data type: ChannelInfo

Return value:

Description: Signal channel

Data type: SignalDoubleChannel*

create_SignalDoubleChannel_info_filters

Function. Channel creation.

Creates a physiological signal data channel.

Options:

device_ptr

Description: Device class instance

Data type: Device*

info

Description: Channel information

Data type: ChannelInfo

filters

Description: Signal filters

Data type: Filter*

filter_count

Description: Number of filters

Data type: size_t

Return value:

Description: Signal channel

Data type: SignalDoubleChannel*

create_SignalDoubleChannel_filters

Function. Channel creation.

Creates a physiological signal data channel.

Options:

device_ptr

Description: Device class instance

Data type: Device*

filters

Description: Signal filters

Data type: Filter*

filter_count

Description: Number of filters

Data type: size_t

Return value:

Description: Signal channel

Data type: SignalDoubleChannel*

SignalDoubleChannel_get_buffer_size

Function. Channel buffer request.

Lets get the channel buffer.
Options:

channel

Description: physiological signal data channel pointer

Data type: SignalDoubleChannel*

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.