Bitbrain SDK 2.8.6
Bitbrain SDK
|
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. |
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.
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
device | The handler to the device |
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.
device | The handler to the device |
BBT_SDK_API int bbt_device_is_acquiring | ( | const bbt_device_t * | device | ) |
Checks if the device is in acquisition mode.
device | The handler to the device |
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
device | The handler to the device |
block | Output parameter to hold the information read |