#include "IedkErrorCode.h"#include "IEmoStateDLL.h"#include "FacialExpressionDetection.h"#include "MentalCommandDetection.h"Go to the source code of this file.
Data Structures | |
| struct | IInputSensorDescriptor_struct |
| Input sensor description. More... | |
Macros | |
| #define | EDK_API |
Typedefs | |
| typedef void * | EmoStateHandle |
| Handle to EmoState structure allocated by IEE_EmoStateCreate. More... | |
| typedef void * | EmoEngineEventHandle |
| Handle to EmoEngine event structure allocated by IEE_EmoEngineEventCreate. More... | |
| typedef enum IEE_DataChannels_enum | IEE_DataChannel_t |
| EEG and system data channel description. More... | |
| typedef void * | DataHandle |
| Handle to data placeholder allocated by IEE_MotionDataCreate. More... | |
| typedef enum IEE_Event_enum | IEE_Event_t |
| EmoEngine event types. More... | |
| typedef struct IInputSensorDescriptor_struct | IInputSensorDescriptor_t |
| Input sensor description. More... | |
| typedef enum IEE_Detection_enum | IEE_Detection_t |
| Detection type enumerator. More... | |
| typedef enum IEE_MotionDataChannel_enum | IEE_MotionDataChannel_t |
| Motion data channel description. More... | |
| typedef enum IEE_WindowingTypes_enum | IEE_WindowingTypes |
| Windowing types enum for Fast Fourier Transform. More... | |
Functions | |
| EDK_API int | IEE_EngineConnect (const char *strDevID="Emotiv Systems-5") |
| Initialize EmoEngine instance which reads data from the headset. More... | |
| EDK_API int | IEE_EngineRemoteConnect (const char *szHost, unsigned short port) |
| Initialize the connection to a remote instance of EmoEngine. More... | |
| EDK_API int | IEE_EngineDisconnect () |
| Terminate the connection to EmoEngine. More... | |
| EDK_API int | IEE_EnableDiagnostics (const char *szFilename, int fEnable, int nReserved) |
| Enable diagnostics mode. More... | |
| EDK_API EmoEngineEventHandle | IEE_EmoEngineEventCreate () |
| Return a handle to memory that can hold an EmoEngine event. More... | |
| EDK_API void | IEE_EmoEngineEventFree (EmoEngineEventHandle hEvent) |
| Free memory referenced by an event handle. More... | |
| EDK_API EmoStateHandle | IEE_EmoStateCreate () |
| Return a handle to memory that can store an EmoState. More... | |
| EDK_API void | IEE_EmoStateFree (EmoStateHandle hState) |
| Free memory referenced by an EmoState handle. More... | |
| EDK_API IEE_Event_t | IEE_EmoEngineEventGetType (EmoEngineEventHandle hEvent) |
| Return the event type for an event already retrieved using IEE_EngineGetNextEvent(). More... | |
| EDK_API int | IEE_EmoEngineEventGetUserId (EmoEngineEventHandle hEvent, unsigned int *pUserIdOut) |
| Retrieve the user ID for IEE_UserAdded and IEE_UserRemoved events. More... | |
| EDK_API int | IEE_EmoEngineEventGetEmoState (EmoEngineEventHandle hEvent, EmoStateHandle hEmoState) |
| Copy an EmoState returned with a IEE_EmoStateUpdate event to memory referenced by an EmoStateHandle. More... | |
| EDK_API int | IEE_EngineGetNextEvent (EmoEngineEventHandle hEvent) |
| Retrieve the next EmoEngine event. More... | |
| EDK_API int | IEE_EngineClearEventQueue (int eventTypes) |
| Clear a specific EmoEngine event type or all events currently inside the event queue. More... | |
| EDK_API int | IEE_EngineGetNumUser (unsigned int *pNumUserOut) |
| Retrieve number of active users (headset) connected to the EmoEngine. More... | |
| EDK_API int | IEE_SetHardwarePlayerDisplay (unsigned int userId, unsigned int playerNum) |
| Set the player number display. More... | |
| EDK_API int | IEE_GetHeadsetSettings (unsigned int userId, unsigned int *EPOCmode, unsigned int *eegRate, unsigned int *eegRes, unsigned int *memsRate, unsigned int *memsRes) |
| Get headset settings from EPOC+ headset. More... | |
| EDK_API int | IEE_SetHeadsetSettings (unsigned int userId, unsigned int EPOCmode, unsigned int eegRate, unsigned int eegRes, unsigned int memsRate, unsigned int memsRes) |
| Set headset setting for EPOC+ headset. More... | |
| EDK_API int | IEE_HeadsetGetSensorDetails (IEE_InputChannels_t channelId, IInputSensorDescriptor_t *pDescriptorOut) |
| Return a struct containing details about a specific channel. More... | |
| EDK_API int | IEE_HardwareGetVersion (unsigned int userId, unsigned long *pHwVersionOut) |
| Return the current hardware version of the headset and dongle (if available). More... | |
| EDK_API int | IEE_SoftwareGetVersion (char *pszVersionOut, unsigned int nVersionChars, unsigned long *pBuildNumOut) |
| Return the current version of the Emotiv SDK. More... | |
| EDK_API int | IEE_HeadsetGetSerialNumber (unsigned int userId, char **pHwSerialOut) |
| Return the current serial number of the headset (if available). More... | |
| EDK_API int | IEE_HeadsetGetGyroDelta (unsigned int userId, int *pXOut, int *pYOut) |
| Return the delta of the movement of the gyro since the previous call for a particular user. More... | |
| EDK_API int | IEE_HeadsetGyroRezero (unsigned int userId) |
| Re-zero the gyro for a particular user. More... | |
| EDK_API DataHandle | IEE_MotionDataCreate () |
| Return a handle to memory that can hold motion data. More... | |
| EDK_API void | IEE_MotionDataFree (DataHandle hData) |
| Free memory referenced by a data handle. More... | |
| EDK_API int | IEE_MotionDataUpdateHandle (unsigned int userId, DataHandle hData) |
| Update the content of the data handle to point to new data since the last call. More... | |
| EDK_API int | IEE_MotionDataGet (DataHandle hData, IEE_MotionDataChannel_t channel, double buffer[], unsigned int bufferSizeInSample) |
| Extract data of a particular channel from the data handle. More... | |
| EDK_API int | IEE_MotionDataGetMultiChannels (DataHandle hData, IEE_MotionDataChannel_t channels[], unsigned int nChannels, double *buffer[], unsigned int bufferSizeInSample) |
| Extract data of a list of channels from the data handle. More... | |
| EDK_API int | IEE_MotionDataGetNumberOfSample (DataHandle hData, unsigned int *nSampleOut) |
| Return number of sample of motion data stored in the data handle. More... | |
| EDK_API int | IEE_MotionDataSetBufferSizeInSec (float bufferSizeInSec) |
| Set the size of the motion data buffer. More... | |
| EDK_API int | IEE_MotionDataGetBufferSizeInSec (float *pBufferSizeInSecOut) |
| Return the size of the motion data buffer. More... | |
| EDK_API int | IEE_MotionDataGetSamplingRate (unsigned int userId, unsigned int *samplingRateOut) |
| Get sampling rate of the motion data stream. More... | |
| EDK_API void | IEE_EnableDetections (unsigned long value) |
| Enable/disable particular detections. More... | |
| EDK_API void | IEE_CheckDetectionsEnabled (unsigned long *result) |
| Check if particular detections are enabled. More... | |
| EDK_API int | IEE_GetAverageBandPowers (unsigned int userId, IEE_DataChannel_t channel, double *theta, double *alpha, double *low_beta, double *high_beta, double *gamma) |
| Get averge band power values for a channel. More... | |
| EDK_API int | IEE_FFTSetWindowingType (unsigned int userId, IEE_WindowingTypes type) |
| Set the current windowing type for band power calculation. More... | |
| EDK_API int | IEE_FFTGetWindowingType (unsigned int userId, IEE_WindowingTypes *type) |
| Get the current windowing type for band power calculation. More... | |
Macro Definition Documentation
| #define EDK_API |
Emotiv SDK Copyright (c) 2016 Emotiv Inc.
This file is part of the Emotiv SDK.
The main interface that allows interactions between external programs and the Emotiv detection engine.
None of these API functions are thread-safe.
This header file is designed to be included under C and C++ environment.
Typedef Documentation
| typedef void* DataHandle |
Handle to data placeholder allocated by IEE_MotionDataCreate.
- See also
- IEE_MotionDataCreate()
| typedef void* EmoEngineEventHandle |
Handle to EmoEngine event structure allocated by IEE_EmoEngineEventCreate.
- See also
- IEE_EmoEngineEventCreate()
| typedef void* EmoStateHandle |
Handle to EmoState structure allocated by IEE_EmoStateCreate.
- See also
- IEE_EmoStateCreate()
| typedef enum IEE_DataChannels_enum IEE_DataChannel_t |
EEG and system data channel description.
| typedef enum IEE_Detection_enum IEE_Detection_t |
Detection type enumerator.
| typedef enum IEE_Event_enum IEE_Event_t |
EmoEngine event types.
| typedef enum IEE_MotionDataChannel_enum IEE_MotionDataChannel_t |
Motion data channel description.
| typedef enum IEE_WindowingTypes_enum IEE_WindowingTypes |
Windowing types enum for Fast Fourier Transform.
| typedef struct IInputSensorDescriptor_struct IInputSensorDescriptor_t |
Input sensor description.
Enumeration Type Documentation
EEG and system data channel description.
| enum IEE_Detection_enum |
Detection type enumerator.
| enum IEE_Event_enum |
EmoEngine event types.
Motion data channel description.
Function Documentation
| EDK_API void IEE_CheckDetectionsEnabled | ( | unsigned long * | result | ) |
Check if particular detections are enabled.
- Parameters
-
result - store enabled detection bits in result
- See also
- IEE_EnableDetections(), IEE_Detection_t
| EDK_API EmoEngineEventHandle IEE_EmoEngineEventCreate | ( | ) |
Return a handle to memory that can hold an EmoEngine event.
This handle can be reused by the caller to retrieve subsequent events.
- Returns
- EmoEngineEventHandle
| EDK_API void IEE_EmoEngineEventFree | ( | EmoEngineEventHandle | hEvent | ) |
Free memory referenced by an event handle.
- Parameters
-
hEvent - a handle returned by IEE_EmoEngineEventCreate() or IEE_ProfileEventCreate()
| EDK_API int IEE_EmoEngineEventGetEmoState | ( | EmoEngineEventHandle | hEvent, |
| EmoStateHandle | hEmoState | ||
| ) |
Copy an EmoState returned with a IEE_EmoStateUpdate event to memory referenced by an EmoStateHandle.
- Parameters
-
hEvent - a handle returned by IEE_EmoEngineEventCreate() and populated with IEE_EmoEngineGetNextEvent() hEmoState - a handle returned by IEE_EmoStateCreate()
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IedkErrorCode.h
| EDK_API IEE_Event_t IEE_EmoEngineEventGetType | ( | EmoEngineEventHandle | hEvent | ) |
Return the event type for an event already retrieved using IEE_EngineGetNextEvent().
- Parameters
-
hEvent - a handle returned by IEE_EmoEngineEventCreate()
- Returns
- IEE_Event_t
| EDK_API int IEE_EmoEngineEventGetUserId | ( | EmoEngineEventHandle | hEvent, |
| unsigned int * | pUserIdOut | ||
| ) |
Retrieve the user ID for IEE_UserAdded and IEE_UserRemoved events.
- Parameters
-
hEvent - a handle returned by IEE_EmoEngineEventCreate() pUserIdOut - receives the user ID associated with the current event
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IedkErrorCode.h
| EDK_API EmoStateHandle IEE_EmoStateCreate | ( | ) |
Return a handle to memory that can store an EmoState.
This handle can be reused by the caller to retrieve subsequent EmoStates.
- Returns
- EmoStateHandle
| EDK_API void IEE_EmoStateFree | ( | EmoStateHandle | hState | ) |
Free memory referenced by an EmoState handle.
- Parameters
-
hState - a handle returned by IEE_EmoStateCreate()
| EDK_API void IEE_EnableDetections | ( | unsigned long | value | ) |
Enable/disable particular detections.
By default, all detections are enabled. This method should be called before calling IEE_EngineConnect(). If it is already connected, IEE_EngineDisconnect() should be called first before calling IEE_EngineConnect() again.
- Parameters
-
value - bitwise value of detections to be enabled
| EDK_API int IEE_EnableDiagnostics | ( | const char * | szFilename, |
| int | fEnable, | ||
| int | nReserved | ||
| ) |
Enable diagnostics mode.
Controls the output of logging information from EmoEngine (disabled by default). This should only be enabled if instructed to do so by Emotiv support for the purposes of collecting diagnostic information.
- Parameters
-
szFilename - The path of the logfile fEnable - Write diagnostic information to logfile if enabled nReserved - Reserved for future use.
- Returns
- EDK_ERROR_CODE
- EDK_OK if the command succeeded
| EDK_API int IEE_EngineClearEventQueue | ( | int | eventTypes | ) |
Clear a specific EmoEngine event type or all events currently inside the event queue.
Event flags can be combined together as one argument except for IEE_UnknownEvent and IEE_EmulatorError.
- Parameters
-
eventTypes - EmoEngine event type (IEE_Event_t), multiple events can be combined such as (IEE_UserAdded | IEE_UserRemoved)
- Returns
- EDK_ERROR_CODE
- EDK_OK if the events have been cleared from the queue
- EDK_INVALID_PARAMETER if input event types are invalid
- See also
- IEE_Event_t, IedkErrorCode.h
| EDK_API int IEE_EngineConnect | ( | const char * | strDevID = "Emotiv Systems-5" | ) |
Initialize EmoEngine instance which reads data from the headset.
This function should be called at the beginning of programs that make use of EmoEngine, most probably in initialization routine or constructor.
- Returns
- EDK_ERROR_CODE
- EDK_OK if a connection is established
- See also
- IedkErrorCode.h
| EDK_API int IEE_EngineDisconnect | ( | ) |
Terminate the connection to EmoEngine.
This function should be called at the end of programs which make use of EmoEngine, most probably in clean up routine or destructor.
- Returns
- EDK_ERROR_CODE
- EDK_OK if disconnection is achieved
- See also
- IedkErrorCode.h
| EDK_API int IEE_EngineGetNextEvent | ( | EmoEngineEventHandle | hEvent | ) |
Retrieve the next EmoEngine event.
Non-blocking call
- Parameters
-
hEvent - a handle returned by IEE_EmoEngineEventCreate()
- Returns
- EDK_ERROR_CODE
- EDK_OK if an new event has been retrieved
- EDK_NO_EVENT if no new events have been generated by EmoEngine
- See also
- IedkErrorCode.h
| EDK_API int IEE_EngineGetNumUser | ( | unsigned int * | pNumUserOut | ) |
Retrieve number of active users (headset) connected to the EmoEngine.
- Parameters
-
pNumUserOut - receives number of users
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful.
- See also
- IedkErrorCode.h
| EDK_API int IEE_EngineRemoteConnect | ( | const char * | szHost, |
| unsigned short | port | ||
| ) |
Initialize the connection to a remote instance of EmoEngine.
Blocking call
- Parameters
-
szHost - A null-terminated string identifying the hostname or IP address of the remote EmoEngine server port - The port number of the remote EmoEngine server - If connecting to the Emotiv Control Panel, use port 3008
- If connecting to the EmoComposer, use port 1726
- Returns
- EDK_ERROR_CODE
- EDK_OK if a connection is established
- See also
- IedkErrorCode.h
| EDK_API int IEE_FFTGetWindowingType | ( | unsigned int | userId, |
| IEE_WindowingTypes * | type | ||
| ) |
Get the current windowing type for band power calculation.
- Parameters
-
userId - user ID type - windowing type enum from IEE_WindowingTypes (default: IEE_HANNING)
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_FFTSetWindowingType | ( | unsigned int | userId, |
| IEE_WindowingTypes | type | ||
| ) |
Set the current windowing type for band power calculation.
- Parameters
-
userId - user ID type - windowing type enum from IEE_WindowingTypes
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_GetAverageBandPowers | ( | unsigned int | userId, |
| IEE_DataChannel_t | channel, | ||
| double * | theta, | ||
| double * | alpha, | ||
| double * | low_beta, | ||
| double * | high_beta, | ||
| double * | gamma | ||
| ) |
Get averge band power values for a channel.
Return the average band power for a specific channel from the latest epoch with 0.5 seconds step size and 2 seconds window size.
- Parameters
-
userId - user ID channel - channel that is interested in theta - theta band value (4-8 Hz) alpha - alpha band value (8-12 Hz) low_beta - low-beta value (12-16 Hz) high_beta - high-beta value (16-25 Hz) gamma - gamma value (25-45 Hz)
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IedkErrorCode.h, IEE_FFTSetWindowingType
| EDK_API int IEE_GetHeadsetSettings | ( | unsigned int | userId, |
| unsigned int * | EPOCmode, | ||
| unsigned int * | eegRate, | ||
| unsigned int * | eegRes, | ||
| unsigned int * | memsRate, | ||
| unsigned int * | memsRes | ||
| ) |
Get headset settings from EPOC+ headset.
- Remarks
- Available for EPOC+ headset only. Headset settings can only be retrieved via USB connection.
- Parameters
-
userId - user ID EPOCmode - If 0, EPOC mode is EPOC. - If 1, EPOC mode is EPOC+.
eegRate - If 0, EEG sample rate is 128Hz. - If 1, EEG sample rate is 256Hz.
- If 2, no signal.
eegRes - If 0, EEG resolution is 14bit. - If 1, EEG resolution is 16bit.
- If 2, no signal.
memsRate - If 0, motion sample rate is OFF. - If 1, motion sample rate is 32Hz.
- If 2, motion sample rate is 64Hz.
- If 3, motion sample rate is 128Hz.
memsRes - If 0, motion resolution is 12bit. - If 1, motion resolution is 14bit.
- If 2, motion resolution is 16bit.
- If 3, no signal.
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_HardwareGetVersion | ( | unsigned int | userId, |
| unsigned long * | pHwVersionOut | ||
| ) |
Return the current hardware version of the headset and dongle (if available).
- 0x50XX / 0x90XX - Insight Consumer
- 0x08XX / 0x09XX - Insight Premium
- 0x30XX / 0x70XX - EPOC+ Consumer
- 0x06XX / 0x07XX - EPOC+ Premium
- 0x1000 / 0x1E00 - EPOC Consumer
- 0x0565 - EPOC Premium
- Parameters
-
userId - user ID for query pHwVersionOut - hardware version for the headset/dongle pair. - Upper 2 bytes: headset version
- Lower 2 bytes: dongle version.
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IEmoStateDll.h, IedkErrorCode.h
| EDK_API int IEE_HeadsetGetGyroDelta | ( | unsigned int | userId, |
| int * | pXOut, | ||
| int * | pYOut | ||
| ) |
Return the delta of the movement of the gyro since the previous call for a particular user.
- Parameters
-
userId - user ID for query pXOut - horizontal displacement pYOut - vertical displacment
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IEmoStateDll.h, IedkErrorCode.h
| EDK_API int IEE_HeadsetGetSensorDetails | ( | IEE_InputChannels_t | channelId, |
| IInputSensorDescriptor_t * | pDescriptorOut | ||
| ) |
Return a struct containing details about a specific channel.
- Parameters
-
channelId - channel identifier (see IEmoStateDll.h) pDescriptorOut - provides detailed sensor location and other info
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IEmoStateDll.h, IedkErrorCode.h
| EDK_API int IEE_HeadsetGetSerialNumber | ( | unsigned int | userId, |
| char ** | pHwSerialOut | ||
| ) |
Return the current serial number of the headset (if available).
- Parameters
-
userId - user ID for query pHwSerialOut - serial number for the headset pair.
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IedkErrorCode.h
| EDK_API int IEE_HeadsetGyroRezero | ( | unsigned int | userId | ) |
Re-zero the gyro for a particular user.
- Parameters
-
userId - user ID for query
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IEmoStateDll.h, IedkErrorCode.h
| EDK_API DataHandle IEE_MotionDataCreate | ( | ) |
Return a handle to memory that can hold motion data.
- Returns
- DataHandle
| EDK_API void IEE_MotionDataFree | ( | DataHandle | hData | ) |
Free memory referenced by a data handle.
- Parameters
-
hData - a handle returned by IEE_MotionDataCreate()
| EDK_API int IEE_MotionDataGet | ( | DataHandle | hData, |
| IEE_MotionDataChannel_t | channel, | ||
| double | buffer[], | ||
| unsigned int | bufferSizeInSample | ||
| ) |
Extract data of a particular channel from the data handle.
- Parameters
-
hData - a handle returned by IEE_MotionDataCreate() channel - channel that you are interested in buffer - pre-allocated buffer bufferSizeInSample - size of the pre-allocated buffer
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_MotionDataGetBufferSizeInSec | ( | float * | pBufferSizeInSecOut | ) |
Return the size of the motion data buffer.
- Parameters
-
pBufferSizeInSecOut - receives the size of the data buffer
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_MotionDataGetMultiChannels | ( | DataHandle | hData, |
| IEE_MotionDataChannel_t | channels[], | ||
| unsigned int | nChannels, | ||
| double * | buffer[], | ||
| unsigned int | bufferSizeInSample | ||
| ) |
Extract data of a list of channels from the data handle.
- Parameters
-
hData - a handle returned by IEE_MotionDataCreate() channels - a list of channel that you are interested in nChannels - number of channels in the channel list buffer - pre-allocated 2 dimensional buffer, has to be nChannels x bufferSizeInSample bufferSizeInSample - size of the pre-allocated buffer for each channel
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_MotionDataGetNumberOfSample | ( | DataHandle | hData, |
| unsigned int * | nSampleOut | ||
| ) |
Return number of sample of motion data stored in the data handle.
- Parameters
-
hData - a handle returned by IEE_MotionDataCreate() nSampleOut - receives the number of sample of data stored in the data handle
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_MotionDataGetSamplingRate | ( | unsigned int | userId, |
| unsigned int * | samplingRateOut | ||
| ) |
Get sampling rate of the motion data stream.
- Parameters
-
userId - user ID samplingRateOut - receives the sampling rate
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_MotionDataSetBufferSizeInSec | ( | float | bufferSizeInSec | ) |
Set the size of the motion data buffer.
The size of the buffer affects how frequent IEE_MotionDataUpdateHandle() needs to be called to prevent data loss.
- Parameters
-
bufferSizeInSec - buffer size in second
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_MotionDataUpdateHandle | ( | unsigned int | userId, |
| DataHandle | hData | ||
| ) |
Update the content of the data handle to point to new data since the last call.
- Parameters
-
userId - user ID hData - a handle returned by IEE_MotionDataCreate()
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_SetHardwarePlayerDisplay | ( | unsigned int | userId, |
| unsigned int | playerNum | ||
| ) |
Set the player number display.
Sets the player number displayed on the physical input device (currently the USB Dongle) that corresponds to the specified user.
- Parameters
-
userId - EmoEngine user ID playerNum - application assigned player number displayed on input device hardware (must be in the range 1-4)
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IedkErrorCode.h
| EDK_API int IEE_SetHeadsetSettings | ( | unsigned int | userId, |
| unsigned int | EPOCmode, | ||
| unsigned int | eegRate, | ||
| unsigned int | eegRes, | ||
| unsigned int | memsRate, | ||
| unsigned int | memsRes | ||
| ) |
Set headset setting for EPOC+ headset.
- Remarks
- Available for EPOC+ headset only. Headset settings can only be set via USB connection.
- Parameters
-
userId - user ID EPOCmode - If 0, then EPOC mode is EPOC. - If 1, then EPOC mode is EPOC+.
eegRate - If 0, then EEG sample rate is 128Hz. - If 1, then EEG sample rate is 256Hz.
eegRes - If 0, then EEG resolution is 14bit. - If 1, then EEG resolution is 16bit.
memsRate - If 0, then motion sample rate is OFF. - If 1, then motion sample rate is 32Hz.
- If 2, then motion sample rate is 64Hz.
- If 3, then motion sample rate is 128Hz.
memsRes - If 0, then motion resolution is 12bit. - If 1, then motion resolution is 14bit.
- If 2, then motion resolution is 16bit.
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
| EDK_API int IEE_SoftwareGetVersion | ( | char * | pszVersionOut, |
| unsigned int | nVersionChars, | ||
| unsigned long * | pBuildNumOut | ||
| ) |
Return the current version of the Emotiv SDK.
- Parameters
-
pszVersionOut - SDK software version in X.X.X format. nVersionChars - Length of char buffer pointed to by pszVersion argument. pBuildNumOut - Build number. Unique for each release.
- Returns
- EDK_ERROR_CODE
- EDK_OK if successful
- See also
- IedkErrorCode.h
1.8.11