00001 #include <scol.h> 00002 #include <list> 00003 #include <string> 00004 #include <assert.h> 00005 00006 extern cbmachine ww; 00007 00008 extern HWND HScol ; //Scol window Handle 00009 00010 //OBJECT 00011 extern int OBJNEUROSKYSCOL; 00012 00013 //===== CB Neurosky ATTENTION === 00014 extern int SCOL_NEUROSKY_ATTENTION_CB; 00015 extern int NEUROSKY_ATTENTION_CB; 00016 00017 //===== CB Neurosky MEDITATION === 00018 extern int SCOL_NEUROSKY_MEDITATION_CB; 00019 extern int NEUROSKY_MEDITATION_CB; 00020 00021 //===== CB Neurosky BATTERY === 00022 extern int SCOL_NEUROSKY_BATTERY_CB; 00023 extern int NEUROSKY_BATTERY_CB; 00024 00025 //===== CB Neurosky RAW SIGNAL === 00026 extern int SCOL_NEUROSKY_RAW_SIGNAL_CB; 00027 extern int NEUROSKY_RAW_SIGNAL_CB; 00028 00029 //===== CB Neurosky POOR QUALTITY === 00030 extern int SCOL_NEUROSKY_POOR_QUALITY_CB; 00031 extern int NEUROSKY_POOR_QUALITY_CB; 00032 00033 //===== CB Neurosky EEG === 00034 extern int SCOL_NEUROSKY_EEG_CB; 00035 extern int NEUROSKY_EEG_CB; 00036 00037 //===== CB Neurosky CONNECTED === 00038 extern int SCOL_NEUROSKY_CONNECTED_CB; 00039 extern int NEUROSKY_CONNECTED_CB; 00040 00041 //===== CB Neurosky DISCONNECTED === 00042 extern int SCOL_NEUROSKY_DISCONNECTED_CB; 00043 extern int NEUROSKY_DISCONNECTED_CB; 00044 00045 #define ASSERT assert 00046 00047 #define DELETEARRAY(x) if (x) { delete []x; x = NULL; } 00048 #define CHECKALLOC(x) if(!x) { return false;} 00049 00050 wchar_t* convertCharToLPCWSTR(char * s_text); 00051 char* convertWcharToChar(wchar_t * w_text); 00055 #define TG_BAUD_1200 1200 00056 #define TG_BAUD_2400 2400 00057 #define TG_BAUD_4800 4800 00058 #define TG_BAUD_9600 9600 00059 #define TG_BAUD_57600 57600 00060 #define TG_BAUD_115200 115200 00061 00065 #define TG_STREAM_PACKETS 0 00066 #define TG_STREAM_5VRAW 1 00067 #define TG_STREAM_FILE_PACKETS 2 00068
1.6.3