Devices#
Scan results, device information and the features of each device model.
ble_device.h#
BrainAccess BLE device.
- Author
Neurotechnology (brainaccess@neurotechnology.com)
- Copyright
Copyright (c) 2024 Neurotechnology
-
struct ba_ble_device#
- #include <ble_device.h>
Struct containing ble device.
device_info.h#
BrainAccess device info.
- Author
Neurotechnology (brainaccess@neurotechnology.com)
- Copyright
Copyright (c) 2022 Neurotechnology
-
struct ba_device_info#
- #include <device_info.h>
Struct containing device information.
Public Members
-
ba_device_model id#
Device model number.
-
ba_version hardware_version#
Hardware version.
-
ba_version firmware_version#
Firmware version.
-
size_t serial_number#
Device serial number.
-
size_t sample_per_packet#
Samples per packet.
-
ba_device_model id#
device_model.h#
BrainAccess device model numbers.
- Author
Neurotechnology (brainaccess@neurotechnology.com)
- Copyright
Copyright (c) 2022 Neurotechnology
Defines
-
BA_DEVICE_MODEL_MINI_V2#
BrainAccess MINI V2.
-
BA_DEVICE_MODEL_MIDI#
BrainAccess MIDI (16 Channels)
-
BA_DEVICE_MODEL_MAXI#
BrainAccess MAXI (32 Channels)
-
BA_DEVICE_MODEL_HALO#
BrainAccess Halo.
-
BA_DEVICE_MODEL_HALO_V2#
BrainAccess Halo V2.
-
BA_DEVICE_MODEL_EXG8#
BrainAccess EXG8 (BLE 5 with IMU(Accelerometer, Gyro))
-
BA_DEVICE_MODEL_HALO_V3#
BrainAccess Halo V3 (BLE 5 with IMU(Accelerometer, Gyro))
-
BA_DEVICE_MODEL_UNKNOWN#
Unknown device.
Typedefs
-
typedef uint8_t ba_device_model#
Device model type.
device_features.h#
Device features query functionality.
- Author
Neurotechnology (brainaccess@neurotechnology.com)
- Copyright
Copyright (c) 2022 Neurotechnology
Typedefs
-
typedef void ba_device_features#
Handle to class allowing the user to check what features a particular device supports.
Functions
-
bool ba_core_device_features_has_accel(const ba_device_features *f)#
Whether the device can capture accelerometer data.
- Parameters:
f – Device features handle, or NULL
- Returns:
true if a device has an accelerometer, false otherwise or if f is NULL
-
bool ba_core_device_features_has_gyro(const ba_device_features *f)#
Whether the device can capture gyroscope data.
- Parameters:
f – Device features handle, or NULL
- Returns:
true if a device has a gyroscope, false otherwise or if f is NULL
-
bool ba_core_device_features_is_bipolar(const ba_device_features *f)#
Whether the device’s electrodes are bipolar.
Bipolar electrodes have separate P (positive) and N (negative) contacts
- Parameters:
f – Device features handle, or NULL
- Returns:
true if electrodes are bipolar, false otherwise or if f is NULL
-
uint8_t ba_core_device_features_electrode_count(const ba_device_features *f)#
Gets the number of EEG/EMG electrodes supported by the device.
- Parameters:
f – Device features handle, or NULL
- Returns:
Number of electrodes, or 0 if f is NULL
-
const ba_device_features *ba_core_device_features_get(const ba_device_info *info)#
Gets a pointer to ba_device_features instance.
The pointer is guaranteed to be statically allocated, so no need to delete or do any kind of memory management.
- Parameters:
info – Device for which to get features. The serial number is ignored.
- Returns:
Pointer to the corresponding ba_device_features instance, or NULL if info is NULL or the device is not supported. The getters above take that NULL.