neurosky/src/plugin.cpp File Reference

#include "plugin.h"
#include "neurosky.h"

Go to the source code of this file.

Defines

#define NbTplPKG   13
 Nb of Scol functions or types.

Functions

wchar_t * convertCharToLPCWSTR (char *s_text)
 Usefull function.
char * convertWcharToChar (wchar_t *w_text)
int destroyNeuroskyObj (mmachine m, int handsys, int NeuroskyTab)
 Scol CallBack for OBJNeurosky destruction.
int _CRNeurosky (mmachine m)
 _CRNeurosky : This function create a new NeuroSky Object
int _DSNeurosky (mmachine m)
 _DSNeurosky : This function destroy a NeuroSky Object
int _SetNeuroskyBaudrate (mmachine m)
 _SetNeuroskyBaudrate : This function set the baudrate for a NeuroSky Object
int _SetNeuroskyDataFormat (mmachine m)
 _SetNeuroskyDataFormat : This function set the data format for a NeuroSky Object
int _CBNeuroskyAttentionData (mmachine m)
 _CBNeuroskyAttentionData : This function set the Callback for Attention data from neurosky
int getNeuroskyAttentionCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
int _CBNeuroskyMeditationData (mmachine m)
 _CBNeuroskyMeditationData : This function set the Callback for Meditation data from neurosky
int getNeuroskyMeditationCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
int _CBNeuroskyBatteryData (mmachine m)
 _CBNeuroskyBatteryData : This function set the Callback for Battery data from neurosky
int getNeuroskyBatteryCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
int _CBNeuroskyRawSignalData (mmachine m)
 _CBNeuroskyRawSignalData : This function set the Callback for raw signal data from neurosky
int getNeuroskySignalCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
int _CBNeuroskyPoorQualityData (mmachine m)
 _CBNeuroskyPoorQualityData : This function set the Callback for Poor Quality data from neurosky
int getNeuroskyPoorQualityCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
int _CBNeuroskyEEGData (mmachine m)
 _CBNeuroskyEEGData : This function set the Callback for EEG data from neurosky
int getNeuroskyEEGCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
int _CBNeuroskyConnected (mmachine m)
 _CBNeuroskyConnected : This function set the Callback for Connection from neurosky
int getNeuroskyConnectedCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
int _CBNeuroskyDisconnected (mmachine m)
 _CBNeuroskyDisconnected : This function set the Callback for disconnected state from neurosky
int getNeuroskyDisconnectedCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret)
void cleanDirtyConnection ()
 __declspec (dllexport) int SCOLloadNEUROSKY(mmachine m
 Starting point of the DLL Function to add in Scol usm.ini for loading dll.
cbmachine w SCOLinitplugin (w)
 MMechostr (MSKDEBUG,"SCOLloadNEUROSKY trying loading neurosky DLL ...\n")
 LoadNeurosky (m)

Variables

cbmachine ww
 Scol machine declaration for MM macros.
HWND HScol = NULL
int OBJNEUROSKYSCOL
 Scol object declaration.
int SCOL_NEUROSKY_ATTENTION_CB = 0
 Scol CallBacks declaration.
int NEUROSKY_ATTENTION_CB
int SCOL_NEUROSKY_MEDITATION_CB = 1
int NEUROSKY_MEDITATION_CB
int SCOL_NEUROSKY_BATTERY_CB = 2
int NEUROSKY_BATTERY_CB
int SCOL_NEUROSKY_RAW_SIGNAL_CB = 3
int NEUROSKY_RAW_SIGNAL_CB
int SCOL_NEUROSKY_POOR_QUALITY_CB = 4
int NEUROSKY_POOR_QUALITY_CB
int SCOL_NEUROSKY_EEG_CB = 5
int NEUROSKY_EEG_CB
int SCOL_NEUROSKY_CONNECTED_CB = 6
int NEUROSKY_CONNECTED_CB
int SCOL_NEUROSKY_DISCONNECTED_CB = 7
int NEUROSKY_DISCONNECTED_CB
Array< Neurosky * > neuroskyList
char * TplName [NbTplPKG]
int(* TplFunc [NbTplPKG])(mmachine m)
int TplNArg [NbTplPKG]
char * TplType [NbTplPKG]
 return

Define Documentation

#define NbTplPKG   13

Nb of Scol functions or types.

Definition at line 516 of file plugin.cpp.


Function Documentation

__declspec ( dllexport   ) 

Starting point of the DLL Function to add in Scol usm.ini for loading dll.

Ending point of the DLL Function to add in Scol usm.ini for free dll.

Definition at line 678 of file plugin.cpp.

void cleanDirtyConnection (  ) 

Definition at line 605 of file plugin.cpp.

wchar_t* convertCharToLPCWSTR ( char *  s_text  ) 

Usefull function.

Definition at line 93 of file plugin.cpp.

char* convertWcharToChar ( wchar_t *  w_text  ) 

Definition at line 102 of file plugin.cpp.

int destroyNeuroskyObj ( mmachine  m,
int  handsys,
int  NeuroskyTab 
)

Scol CallBack for OBJNeurosky destruction.

Definition at line 121 of file plugin.cpp.

int getNeuroskyAttentionCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 289 of file plugin.cpp.

int getNeuroskyBatteryCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 349 of file plugin.cpp.

int getNeuroskyConnectedCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 474 of file plugin.cpp.

int getNeuroskyDisconnectedCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 502 of file plugin.cpp.

int getNeuroskyEEGCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 436 of file plugin.cpp.

int getNeuroskyMeditationCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 319 of file plugin.cpp.

int getNeuroskyPoorQualityCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 409 of file plugin.cpp.

int getNeuroskySignalCb ( mmachine  m,
HWND  h,
unsigned  msg,
UINT  id,
LONG  param,
int *  ret 
)

Definition at line 379 of file plugin.cpp.

LoadNeurosky (  ) 
MMechostr ( MSKDEBUG  ,
"SCOLloadNEUROSKY trying loading neurosky DLL ...\n"   
)
cbmachine w SCOLinitplugin (  ) 

Variable Documentation

HWND HScol = NULL

Definition at line 47 of file plugin.cpp.

Definition at line 58 of file plugin.cpp.

Definition at line 66 of file plugin.cpp.

Definition at line 82 of file plugin.cpp.

Definition at line 86 of file plugin.cpp.

Definition at line 78 of file plugin.cpp.

Definition at line 62 of file plugin.cpp.

Definition at line 74 of file plugin.cpp.

Definition at line 70 of file plugin.cpp.

Definition at line 8 of file neurosky.cpp.

Scol object declaration.

Definition at line 51 of file plugin.cpp.

Definition at line 670 of file plugin.cpp.

Scol CallBacks declaration.

Definition at line 57 of file plugin.cpp.

Definition at line 65 of file plugin.cpp.

Definition at line 81 of file plugin.cpp.

Definition at line 85 of file plugin.cpp.

Definition at line 77 of file plugin.cpp.

Definition at line 61 of file plugin.cpp.

Definition at line 73 of file plugin.cpp.

Definition at line 69 of file plugin.cpp.

int(* TplFunc[NbTplPKG])(mmachine m)
char* TplName[NbTplPKG]
Initial value:
{
        "ObjNeurosky",
        "_CRNeurosky",
        "_DSNeurosky",
  "_CBNeuroskyAttentionData",
  "_CBNeuroskyMeditationData",
  "_CBNeuroskyBatteryData",
  "_CBNeuroskyPoorQualityData",
  "_CBNeuroskyRawSignalData",
  "_CBNeuroskyEEGData",
  "_CBNeuroskyConnected",
  "_CBNeuroskyDisconnected",
  "_SetNeuroskyBaudrate",
  "_SetNeuroskyDataFormat",

}

Scol function names

Definition at line 522 of file plugin.cpp.

int TplNArg[NbTplPKG]
Initial value:
{
  TYPTYPE,                           
        1,                                                                                                        
        1,                                                                                                 
  3,                          
  3,                         
  3,                        
  3,                       
  3,                      
  3,                     
  3,                    
  3,                    
  2,                   
  2,                  
}

Nb of arguments of each scol function

Definition at line 566 of file plugin.cpp.

char* TplType[NbTplPKG]
Initial value:
{
        NULL,                                                                                                                                                                                                                                                                               
        "fun [Chn] ObjNeurosky",                                                                                                                                                                                                    
        "fun [ObjNeurosky] I",                                                                                                                                                                                                      
  "fun [ObjNeurosky fun [ObjNeurosky u0 F] u1 u0] ObjNeurosky",                                             
  "fun [ObjNeurosky fun [ObjNeurosky u0 F] u1 u0] ObjNeurosky",                                             
  "fun [ObjNeurosky fun [ObjNeurosky u0 F] u1 u0] ObjNeurosky",                                             
  "fun [ObjNeurosky fun [ObjNeurosky u0 F] u1 u0] ObjNeurosky",                                             
  "fun [ObjNeurosky fun [ObjNeurosky u0 F] u1 u0] ObjNeurosky",                                             
  "fun [ObjNeurosky fun [ObjNeurosky u0 I I I I I I I I] u1 u0] ObjNeurosky",   
  "fun [ObjNeurosky fun [ObjNeurosky u0] u1 u0] ObjNeurosky",                   
  "fun [ObjNeurosky fun [ObjNeurosky u0] u1 u0] ObjNeurosky",                   
  "fun [ObjNeurosky I] I",                                                    
  "fun [ObjNeurosky I] I",                                                    
}

Prototypes of the scol functions

Definition at line 587 of file plugin.cpp.

cbmachine ww

Scol machine declaration for MM macros.

Definition at line 46 of file plugin.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Defines
Generated on Sat May 15 15:11:27 2010 for NeuroSky by  doxygen 1.6.3