Bitbrain SDK 2.8.6
Bitbrain SDK
Loading...
Searching...
No Matches
Data acquisition

Data acquisition and recording functions. More...

Topics

 Battery level constants
 Possible values for the battery field in bbt_device_data_block_t.
 EEG impedance/quality values
 Possible values for the impedance/quality of each channel of EEG.

Data Structures

struct  bbt_device_data_block_t
 The bbt_device_data_block_t class. More...

Functions

BBT_SDK_API int bbt_device_start (bbt_device_t *device)
 Sets the device into acquisition mode.
BBT_SDK_API int bbt_device_stop (bbt_device_t *device)
 Stops acquisition mode and enters configuration mode.
BBT_SDK_API int bbt_device_is_acquiring (const bbt_device_t *device)
 Checks if the device is in acquisition mode.
BBT_SDK_API int bbt_device_read (bbt_device_t *device, struct bbt_device_data_block_t *block)
 Read a data block from a device.

Detailed Description

Data acquisition and recording functions.

These functions manage the acquisition of the dats from the device. From configuration state, you can enter into acquisition state bt running bbt_device_start. To stop the acquisition and return to configuration state, call bbt_device_stop.

In acquisition state, the only accepted commands to the device are bbt_device_read and bbt_device_stop. No commands in the configuration group Configure the device are available.

Regarding connection, you can manage the connection/disconnection of the device during acquisition with bbt_device_is_connected and bbt_device_reconnect.

Function Documentation

◆ bbt_device_start()

BBT_SDK_API int bbt_device_start ( bbt_device_t * device)

Sets the device into acquisition mode.

The device enters into acquisition mode and starts streaming signals to the SDK that must be read with bbt_device_read and recording data into the SD Card if configured

Parameters
deviceThe handler to the device
Returns
True on success, false otherwise

◆ bbt_device_stop()

BBT_SDK_API int bbt_device_stop ( bbt_device_t * device)

Stops acquisition mode and enters configuration mode.

The device enters into aconfiguration mode and stop streaming signals and recording into SD Card.

Parameters
deviceThe handler to the device
Returns
True on success, false otherwise

◆ bbt_device_is_acquiring()

BBT_SDK_API int bbt_device_is_acquiring ( const bbt_device_t * device)

Checks if the device is in acquisition mode.

Parameters
deviceThe handler to the device
Returns
True if in acquisition mode. False otherwise

◆ bbt_device_read()

BBT_SDK_API int bbt_device_read ( bbt_device_t * device,
struct bbt_device_data_block_t * block )

Read a data block from a device.

Fills the block data structure with the last information from the device

Parameters
deviceThe handler to the device
blockOutput parameter to hold the information read
Returns
True on success, false otherwise