-
Notifications
You must be signed in to change notification settings - Fork 0
/
edkErrorCode.h
67 lines (56 loc) · 2.81 KB
/
edkErrorCode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Emotiv Development Kit API return values
* Copyright (c) 2009 Emotiv Systems, Inc.
*
*/
#ifndef EDK_ERROR_CODE_H
#define EDK_ERROR_CODE_H
//! Default success value
#define EDK_OK 0x0000
//! An internal error occurred
#define EDK_UNKNOWN_ERROR 0x0001
//! Invalid Developer ID
#define EDK_INVALID_DEV_ID_ERROR 0x0002
//! The contents of the buffer supplied to EE_SetUserProfile aren't a valid, serialized EmoEngine profile.
#define EDK_INVALID_PROFILE_ARCHIVE 0x0101
//! Returned from EE_EmoEngineEventGetUserId if the event supplied contains a base profile (which isn't associated with specific user).
#define EDK_NO_USER_FOR_BASEPROFILE 0x0102
//! The EmoEngine is unable to acquire EEG data for processing.
#define EDK_CANNOT_ACQUIRE_DATA 0x0200
//! The buffer supplied to the function isn't large enough
#define EDK_BUFFER_TOO_SMALL 0x0300
//! A parameter supplied to the function is out of range
#define EDK_OUT_OF_RANGE 0x0301
//! One of the parameters supplied to the function is invalid
#define EDK_INVALID_PARAMETER 0x0302
//! The parameter value is currently locked by a running detection and cannot be modified at this time.
#define EDK_PARAMETER_LOCKED 0x0303
//! The current training action is not in the list of expected training actions
#define EDK_COG_INVALID_TRAINING_ACTION 0x0304
//! The current training control is not in the list of expected training controls
#define EDK_COG_INVALID_TRAINING_CONTROL 0x0305
//! One of the field in the action bits vector is invalid
#define EDK_COG_INVALID_ACTIVE_ACTION 0x0306
//! The current action bits vector contains more action types than it is allowed
#define EDK_COG_EXCESS_MAX_ACTIONS 0x0307
//! A trained signature is not currently available for use - addition actions (including neutral) may be required
#define EDK_EXP_NO_SIG_AVAILABLE 0x0308
//! A filesystem error occurred that prevented the function from succeeding
#define EDK_FILESYSTEM_ERROR 0x0309
//! The user ID supplied to the function is invalid
#define EDK_INVALID_USER_ID 0x0400
//! The EDK needs to be initialized via EE_EngineConnect or EE_EngineRemoteConnect
#define EDK_EMOENGINE_UNINITIALIZED 0x0500
//! The connection with a remote instance of the EmoEngine (made via EE_EngineRemoteConnect) has been lost
#define EDK_EMOENGINE_DISCONNECTED 0x0501
//! The API was unable to establish a connection with a remote instance of the EmoEngine.
#define EDK_EMOENGINE_PROXY_ERROR 0x0502
//! There are no new EmoEngine events at this time
#define EDK_NO_EVENT 0x0600
//! The gyro is not calibrated. Ask the user to stay still for at least 0.5s
#define EDK_GYRO_NOT_CALIBRATED 0x0700
//! Operation failure due to optimization
#define EDK_OPTIMIZATION_IS_ON 0x0800
//! Reserved return value
#define EDK_RESERVED1 0x0900
#endif