\hypertarget{plugin_8cpp}{
\section{neurosky/src/plugin.cpp File Reference}
\label{plugin_8cpp}\index{neurosky/src/plugin.cpp@{neurosky/src/plugin.cpp}}
}
{\ttfamily \#include \char`\"{}plugin.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}neurosky.h\char`\"{}}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{plugin_8cpp_a075ae031cb0ae4674cb7bf85e035d7af}{NbTplPKG}~13
\begin{DoxyCompactList}\small\item\em Nb of Scol functions or types. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
wchar\_\-t $\ast$ \hyperlink{plugin_8cpp_a50e991986c4da08373ec64ae947c22d5}{convertCharToLPCWSTR} (char $\ast$s\_\-text)
\begin{DoxyCompactList}\small\item\em Usefull function. \item\end{DoxyCompactList}\item 
char $\ast$ \hyperlink{plugin_8cpp_ab6822445d8a397d1add3088d6fa812f1}{convertWcharToChar} (wchar\_\-t $\ast$w\_\-text)
\item 
int \hyperlink{plugin_8cpp_a0acdd69c38207e52bc3bfed44c6d9a9d}{destroyNeuroskyObj} (mmachine m, int handsys, int NeuroskyTab)
\begin{DoxyCompactList}\small\item\em Scol CallBack for OBJNeurosky destruction. \item\end{DoxyCompactList}\item 
int \hyperlink{group__grpneurosky_ga46ac2b3f183c01f2d8a1a05874a78f55}{\_\-CRNeurosky} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CRNeurosky : This function create a new NeuroSky Object \item\end{DoxyCompactList}\item 
int \hyperlink{group__grpneurosky_gac0fcad3ddc353948400ed977ba09fc0d}{\_\-DSNeurosky} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-DSNeurosky : This function destroy a NeuroSky Object \item\end{DoxyCompactList}\item 
int \hyperlink{group__grpneurosky_ga9f1313585a97348e61ceebe502aef8cd}{\_\-SetNeuroskyBaudrate} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-SetNeuroskyBaudrate : This function set the baudrate for a NeuroSky Object \item\end{DoxyCompactList}\item 
int \hyperlink{group__grpneurosky_ga0b4a4c817ca1897c58acf6bff8a299e4}{\_\-SetNeuroskyDataFormat} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-SetNeuroskyDataFormat : This function set the data format for a NeuroSky Object \item\end{DoxyCompactList}\item 
int \hyperlink{group__grpneurosky_ga6f152e5fa9ada8c85e063ebca3946841}{\_\-CBNeuroskyAttentionData} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyAttentionData : This function set the Callback for Attention data from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_ac89c69ccc668096f02792b1476f5f0ad}{getNeuroskyAttentionCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
int \hyperlink{group__grpneurosky_gaf7d0fc1018889821f03eef080e93640c}{\_\-CBNeuroskyMeditationData} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyMeditationData : This function set the Callback for Meditation data from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_ad59d43aab61e6fc6f67e53b5d7ceae6a}{getNeuroskyMeditationCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
int \hyperlink{group__grpneurosky_gada12fac5eb1b4b7de7b561bda7816e16}{\_\-CBNeuroskyBatteryData} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyBatteryData : This function set the Callback for Battery data from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_a6d14ee24e31ad6116746b5e81c58b84f}{getNeuroskyBatteryCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
int \hyperlink{group__grpneurosky_ga607856299e8482c27369a506dcb90bba}{\_\-CBNeuroskyRawSignalData} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyRawSignalData : This function set the Callback for raw signal data from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_a3e983caddc75053908d8e94167663815}{getNeuroskySignalCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
int \hyperlink{group__grpneurosky_gafdc4b7e398db15ddf4f7ae3faf7108ae}{\_\-CBNeuroskyPoorQualityData} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyPoorQualityData : This function set the Callback for Poor Quality data from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_a0969355795435a947d0adf7d35900667}{getNeuroskyPoorQualityCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
int \hyperlink{group__grpneurosky_ga7465f2ec213511a1a4b1d7722bb0c97e}{\_\-CBNeuroskyEEGData} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyEEGData : This function set the Callback for EEG data from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_aea130cee6898a589414879677e477a8a}{getNeuroskyEEGCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
int \hyperlink{group__grpneurosky_ga9c0f9eee8d5d7f5b543242c30de70579}{\_\-CBNeuroskyConnected} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyConnected : This function set the Callback for Connection from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_a4e0af798afb3fa0863ac9afb1fceb169}{getNeuroskyConnectedCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
int \hyperlink{group__grpneurosky_ga98be101617d72cd087641d2ab2b16eeb}{\_\-CBNeuroskyDisconnected} (mmachine m)
\begin{DoxyCompactList}\small\item\em \_\-CBNeuroskyDisconnected : This function set the Callback for disconnected state from neurosky \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_a867808d7f00fa2716505bef9a3af5a21}{getNeuroskyDisconnectedCb} (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int $\ast$ret)
\item 
void \hyperlink{plugin_8cpp_ab627942fea0d6253a86a399dcbeda6cc}{cleanDirtyConnection} ()
\item 
\hyperlink{plugin_8cpp_a4d85d60741462732d04c93504f251c41}{\_\-\_\-declspec} (dllexport) int SCOLloadNEUROSKY(mmachine m
\begin{DoxyCompactList}\small\item\em Starting point of the DLL Function to add in Scol usm.ini for loading dll. \item\end{DoxyCompactList}\item 
cbmachine w \hyperlink{plugin_8cpp_a7c803e3357be53f3a97a3168422ba1a3}{SCOLinitplugin} (w)
\item 
\hyperlink{plugin_8cpp_a7e47b6d939b381dd65e1d5ef5eaea44a}{MMechostr} (MSKDEBUG,\char`\"{}SCOLloadNEUROSKY trying loading neurosky DLL ...$\backslash$n\char`\"{})
\item 
\hyperlink{plugin_8cpp_a7584323fc116290691da73b5ad5684f3}{LoadNeurosky} (m)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
cbmachine \hyperlink{plugin_8cpp_a95981606817c56a4a3aa27218ae6e722}{ww}
\begin{DoxyCompactList}\small\item\em Scol machine declaration for MM macros. \item\end{DoxyCompactList}\item 
HWND \hyperlink{plugin_8cpp_ac55ff10fe408688aa0ee11bd0cc655df}{HScol} = NULL
\item 
int \hyperlink{plugin_8cpp_a11e6db4703f4031f78133ba592a2d4a1}{OBJNEUROSKYSCOL}
\begin{DoxyCompactList}\small\item\em Scol object declaration. \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_afa8365d4c824bbc0e7da6544f81ea2e7}{SCOL\_\-NEUROSKY\_\-ATTENTION\_\-CB} = 0
\begin{DoxyCompactList}\small\item\em Scol CallBacks declaration. \item\end{DoxyCompactList}\item 
int \hyperlink{plugin_8cpp_aad08903e76bc19d31be2a95fb9969ae6}{NEUROSKY\_\-ATTENTION\_\-CB}
\item 
int \hyperlink{plugin_8cpp_a5215f6d8cb80d588bab3ae7e72eebada}{SCOL\_\-NEUROSKY\_\-MEDITATION\_\-CB} = 1
\item 
int \hyperlink{plugin_8cpp_a7cdd9dd3bacf95aa465ca8996dede1aa}{NEUROSKY\_\-MEDITATION\_\-CB}
\item 
int \hyperlink{plugin_8cpp_a633c8abfa8d602bdf1c1baee96081baa}{SCOL\_\-NEUROSKY\_\-BATTERY\_\-CB} = 2
\item 
int \hyperlink{plugin_8cpp_ab28cca11d0f500007b1b06c41b75d53d}{NEUROSKY\_\-BATTERY\_\-CB}
\item 
int \hyperlink{plugin_8cpp_a0c16ffbae6805fcaa556d63d13238216}{SCOL\_\-NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB} = 3
\item 
int \hyperlink{plugin_8cpp_ab5795077b204645dc2b6d293a76d1252}{NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}
\item 
int \hyperlink{plugin_8cpp_a928cd3316675e937c35350071458cc81}{SCOL\_\-NEUROSKY\_\-POOR\_\-QUALITY\_\-CB} = 4
\item 
int \hyperlink{plugin_8cpp_a528dc4961c0cefb007f029936a235efa}{NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}
\item 
int \hyperlink{plugin_8cpp_a483d497aff0531b46ce89bc72f10e8d2}{SCOL\_\-NEUROSKY\_\-EEG\_\-CB} = 5
\item 
int \hyperlink{plugin_8cpp_aedcf0d19a5199174ee87f24bb726e820}{NEUROSKY\_\-EEG\_\-CB}
\item 
int \hyperlink{plugin_8cpp_a98470da8e4b0e160c827961f1054ec03}{SCOL\_\-NEUROSKY\_\-CONNECTED\_\-CB} = 6
\item 
int \hyperlink{plugin_8cpp_ab1af3a4ec53df79a9f00212acb945ca7}{NEUROSKY\_\-CONNECTED\_\-CB}
\item 
int \hyperlink{plugin_8cpp_abac3fd4a822d5fefc7f991a90a77f52c}{SCOL\_\-NEUROSKY\_\-DISCONNECTED\_\-CB} = 7
\item 
int \hyperlink{plugin_8cpp_a16031a75456191900c814a1855a1f6fe}{NEUROSKY\_\-DISCONNECTED\_\-CB}
\item 
\hyperlink{class_array}{Array}$<$ \hyperlink{class_neurosky}{Neurosky} $\ast$ $>$ \hyperlink{plugin_8cpp_a72f59b0561fdf3d101b7ff80bde106f5}{neuroskyList}
\item 
char $\ast$ \hyperlink{plugin_8cpp_a9fb82289ed02d14c4137bc91c0128e33}{TplName} \mbox{[}NbTplPKG\mbox{]}
\item 
int($\ast$ \hyperlink{plugin_8cpp_a95c0009400a7f8a271a9f8f84b7a0e4c}{TplFunc} \mbox{[}NbTplPKG\mbox{]})(mmachine m)
\item 
int \hyperlink{plugin_8cpp_a7f359b36c24b953bd273ccd63711234b}{TplNArg} \mbox{[}NbTplPKG\mbox{]}
\item 
char $\ast$ \hyperlink{plugin_8cpp_a3101c86c8a5f2e825fca960e3b4bf447}{TplType} \mbox{[}NbTplPKG\mbox{]}
\item 
\hyperlink{plugin_8cpp_a9717e7bbecb906637e86cef6da3d83c2}{return}
\end{DoxyCompactItemize}


\subsection{Define Documentation}
\hypertarget{plugin_8cpp_a075ae031cb0ae4674cb7bf85e035d7af}{
\index{plugin.cpp@{plugin.cpp}!NbTplPKG@{NbTplPKG}}
\index{NbTplPKG@{NbTplPKG}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NbTplPKG}]{\setlength{\rightskip}{0pt plus 5cm}\#define NbTplPKG~13}}
\label{plugin_8cpp_a075ae031cb0ae4674cb7bf85e035d7af}


Nb of Scol functions or types. 



Definition at line 516 of file plugin.cpp.



\subsection{Function Documentation}
\hypertarget{plugin_8cpp_a4d85d60741462732d04c93504f251c41}{
\index{plugin.cpp@{plugin.cpp}!\_\-\_\-declspec@{\_\-\_\-declspec}}
\index{\_\-\_\-declspec@{\_\-\_\-declspec}!plugin.cpp@{plugin.cpp}}
\subsubsection[{\_\-\_\-declspec}]{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-declspec (dllexport)}}
\label{plugin_8cpp_a4d85d60741462732d04c93504f251c41}


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.

\hypertarget{plugin_8cpp_ab627942fea0d6253a86a399dcbeda6cc}{
\index{plugin.cpp@{plugin.cpp}!cleanDirtyConnection@{cleanDirtyConnection}}
\index{cleanDirtyConnection@{cleanDirtyConnection}!plugin.cpp@{plugin.cpp}}
\subsubsection[{cleanDirtyConnection}]{\setlength{\rightskip}{0pt plus 5cm}void cleanDirtyConnection ()}}
\label{plugin_8cpp_ab627942fea0d6253a86a399dcbeda6cc}


Definition at line 605 of file plugin.cpp.

\hypertarget{plugin_8cpp_a50e991986c4da08373ec64ae947c22d5}{
\index{plugin.cpp@{plugin.cpp}!convertCharToLPCWSTR@{convertCharToLPCWSTR}}
\index{convertCharToLPCWSTR@{convertCharToLPCWSTR}!plugin.cpp@{plugin.cpp}}
\subsubsection[{convertCharToLPCWSTR}]{\setlength{\rightskip}{0pt plus 5cm}wchar\_\-t$\ast$ convertCharToLPCWSTR (char $\ast$ {\em s\_\-text})}}
\label{plugin_8cpp_a50e991986c4da08373ec64ae947c22d5}


Usefull function. 



Definition at line 93 of file plugin.cpp.

\hypertarget{plugin_8cpp_ab6822445d8a397d1add3088d6fa812f1}{
\index{plugin.cpp@{plugin.cpp}!convertWcharToChar@{convertWcharToChar}}
\index{convertWcharToChar@{convertWcharToChar}!plugin.cpp@{plugin.cpp}}
\subsubsection[{convertWcharToChar}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ convertWcharToChar (wchar\_\-t $\ast$ {\em w\_\-text})}}
\label{plugin_8cpp_ab6822445d8a397d1add3088d6fa812f1}


Definition at line 102 of file plugin.cpp.

\hypertarget{plugin_8cpp_a0acdd69c38207e52bc3bfed44c6d9a9d}{
\index{plugin.cpp@{plugin.cpp}!destroyNeuroskyObj@{destroyNeuroskyObj}}
\index{destroyNeuroskyObj@{destroyNeuroskyObj}!plugin.cpp@{plugin.cpp}}
\subsubsection[{destroyNeuroskyObj}]{\setlength{\rightskip}{0pt plus 5cm}int destroyNeuroskyObj (mmachine {\em m}, \/  int {\em handsys}, \/  int {\em NeuroskyTab})}}
\label{plugin_8cpp_a0acdd69c38207e52bc3bfed44c6d9a9d}


Scol CallBack for OBJNeurosky destruction. 



Definition at line 121 of file plugin.cpp.

\hypertarget{plugin_8cpp_ac89c69ccc668096f02792b1476f5f0ad}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskyAttentionCb@{getNeuroskyAttentionCb}}
\index{getNeuroskyAttentionCb@{getNeuroskyAttentionCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskyAttentionCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskyAttentionCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_ac89c69ccc668096f02792b1476f5f0ad}


Definition at line 289 of file plugin.cpp.

\hypertarget{plugin_8cpp_a6d14ee24e31ad6116746b5e81c58b84f}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskyBatteryCb@{getNeuroskyBatteryCb}}
\index{getNeuroskyBatteryCb@{getNeuroskyBatteryCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskyBatteryCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskyBatteryCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_a6d14ee24e31ad6116746b5e81c58b84f}


Definition at line 349 of file plugin.cpp.

\hypertarget{plugin_8cpp_a4e0af798afb3fa0863ac9afb1fceb169}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskyConnectedCb@{getNeuroskyConnectedCb}}
\index{getNeuroskyConnectedCb@{getNeuroskyConnectedCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskyConnectedCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskyConnectedCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_a4e0af798afb3fa0863ac9afb1fceb169}


Definition at line 474 of file plugin.cpp.

\hypertarget{plugin_8cpp_a867808d7f00fa2716505bef9a3af5a21}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskyDisconnectedCb@{getNeuroskyDisconnectedCb}}
\index{getNeuroskyDisconnectedCb@{getNeuroskyDisconnectedCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskyDisconnectedCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskyDisconnectedCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_a867808d7f00fa2716505bef9a3af5a21}


Definition at line 502 of file plugin.cpp.

\hypertarget{plugin_8cpp_aea130cee6898a589414879677e477a8a}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskyEEGCb@{getNeuroskyEEGCb}}
\index{getNeuroskyEEGCb@{getNeuroskyEEGCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskyEEGCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskyEEGCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_aea130cee6898a589414879677e477a8a}


Definition at line 436 of file plugin.cpp.

\hypertarget{plugin_8cpp_ad59d43aab61e6fc6f67e53b5d7ceae6a}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskyMeditationCb@{getNeuroskyMeditationCb}}
\index{getNeuroskyMeditationCb@{getNeuroskyMeditationCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskyMeditationCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskyMeditationCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_ad59d43aab61e6fc6f67e53b5d7ceae6a}


Definition at line 319 of file plugin.cpp.

\hypertarget{plugin_8cpp_a0969355795435a947d0adf7d35900667}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskyPoorQualityCb@{getNeuroskyPoorQualityCb}}
\index{getNeuroskyPoorQualityCb@{getNeuroskyPoorQualityCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskyPoorQualityCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskyPoorQualityCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_a0969355795435a947d0adf7d35900667}


Definition at line 409 of file plugin.cpp.

\hypertarget{plugin_8cpp_a3e983caddc75053908d8e94167663815}{
\index{plugin.cpp@{plugin.cpp}!getNeuroskySignalCb@{getNeuroskySignalCb}}
\index{getNeuroskySignalCb@{getNeuroskySignalCb}!plugin.cpp@{plugin.cpp}}
\subsubsection[{getNeuroskySignalCb}]{\setlength{\rightskip}{0pt plus 5cm}int getNeuroskySignalCb (mmachine {\em m}, \/  HWND {\em h}, \/  unsigned {\em msg}, \/  UINT {\em id}, \/  LONG {\em param}, \/  int $\ast$ {\em ret})}}
\label{plugin_8cpp_a3e983caddc75053908d8e94167663815}


Definition at line 379 of file plugin.cpp.

\hypertarget{plugin_8cpp_a7584323fc116290691da73b5ad5684f3}{
\index{plugin.cpp@{plugin.cpp}!LoadNeurosky@{LoadNeurosky}}
\index{LoadNeurosky@{LoadNeurosky}!plugin.cpp@{plugin.cpp}}
\subsubsection[{LoadNeurosky}]{\setlength{\rightskip}{0pt plus 5cm}LoadNeurosky (m)}}
\label{plugin_8cpp_a7584323fc116290691da73b5ad5684f3}
\hypertarget{plugin_8cpp_a7e47b6d939b381dd65e1d5ef5eaea44a}{
\index{plugin.cpp@{plugin.cpp}!MMechostr@{MMechostr}}
\index{MMechostr@{MMechostr}!plugin.cpp@{plugin.cpp}}
\subsubsection[{MMechostr}]{\setlength{\rightskip}{0pt plus 5cm}MMechostr (MSKDEBUG, \/  \char`\"{}SCOLloadNEUROSKY trying loading neurosky DLL ...$\backslash$n\char`\"{})}}
\label{plugin_8cpp_a7e47b6d939b381dd65e1d5ef5eaea44a}
\hypertarget{plugin_8cpp_a7c803e3357be53f3a97a3168422ba1a3}{
\index{plugin.cpp@{plugin.cpp}!SCOLinitplugin@{SCOLinitplugin}}
\index{SCOLinitplugin@{SCOLinitplugin}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOLinitplugin}]{\setlength{\rightskip}{0pt plus 5cm}cbmachine w SCOLinitplugin (w)}}
\label{plugin_8cpp_a7c803e3357be53f3a97a3168422ba1a3}


\subsection{Variable Documentation}
\hypertarget{plugin_8cpp_ac55ff10fe408688aa0ee11bd0cc655df}{
\index{plugin.cpp@{plugin.cpp}!HScol@{HScol}}
\index{HScol@{HScol}!plugin.cpp@{plugin.cpp}}
\subsubsection[{HScol}]{\setlength{\rightskip}{0pt plus 5cm}HWND {\bf HScol} = NULL}}
\label{plugin_8cpp_ac55ff10fe408688aa0ee11bd0cc655df}


Definition at line 47 of file plugin.cpp.

\hypertarget{plugin_8cpp_aad08903e76bc19d31be2a95fb9969ae6}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-ATTENTION\_\-CB@{NEUROSKY\_\-ATTENTION\_\-CB}}
\index{NEUROSKY\_\-ATTENTION\_\-CB@{NEUROSKY\_\-ATTENTION\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-ATTENTION\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-ATTENTION\_\-CB}}}
\label{plugin_8cpp_aad08903e76bc19d31be2a95fb9969ae6}


Definition at line 58 of file plugin.cpp.

\hypertarget{plugin_8cpp_ab28cca11d0f500007b1b06c41b75d53d}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-BATTERY\_\-CB@{NEUROSKY\_\-BATTERY\_\-CB}}
\index{NEUROSKY\_\-BATTERY\_\-CB@{NEUROSKY\_\-BATTERY\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-BATTERY\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-BATTERY\_\-CB}}}
\label{plugin_8cpp_ab28cca11d0f500007b1b06c41b75d53d}


Definition at line 66 of file plugin.cpp.

\hypertarget{plugin_8cpp_ab1af3a4ec53df79a9f00212acb945ca7}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-CONNECTED\_\-CB@{NEUROSKY\_\-CONNECTED\_\-CB}}
\index{NEUROSKY\_\-CONNECTED\_\-CB@{NEUROSKY\_\-CONNECTED\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-CONNECTED\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-CONNECTED\_\-CB}}}
\label{plugin_8cpp_ab1af3a4ec53df79a9f00212acb945ca7}


Definition at line 82 of file plugin.cpp.

\hypertarget{plugin_8cpp_a16031a75456191900c814a1855a1f6fe}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-DISCONNECTED\_\-CB@{NEUROSKY\_\-DISCONNECTED\_\-CB}}
\index{NEUROSKY\_\-DISCONNECTED\_\-CB@{NEUROSKY\_\-DISCONNECTED\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-DISCONNECTED\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-DISCONNECTED\_\-CB}}}
\label{plugin_8cpp_a16031a75456191900c814a1855a1f6fe}


Definition at line 86 of file plugin.cpp.

\hypertarget{plugin_8cpp_aedcf0d19a5199174ee87f24bb726e820}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-EEG\_\-CB@{NEUROSKY\_\-EEG\_\-CB}}
\index{NEUROSKY\_\-EEG\_\-CB@{NEUROSKY\_\-EEG\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-EEG\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-EEG\_\-CB}}}
\label{plugin_8cpp_aedcf0d19a5199174ee87f24bb726e820}


Definition at line 78 of file plugin.cpp.

\hypertarget{plugin_8cpp_a7cdd9dd3bacf95aa465ca8996dede1aa}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-MEDITATION\_\-CB@{NEUROSKY\_\-MEDITATION\_\-CB}}
\index{NEUROSKY\_\-MEDITATION\_\-CB@{NEUROSKY\_\-MEDITATION\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-MEDITATION\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-MEDITATION\_\-CB}}}
\label{plugin_8cpp_a7cdd9dd3bacf95aa465ca8996dede1aa}


Definition at line 62 of file plugin.cpp.

\hypertarget{plugin_8cpp_a528dc4961c0cefb007f029936a235efa}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-POOR\_\-QUALITY\_\-CB@{NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}}
\index{NEUROSKY\_\-POOR\_\-QUALITY\_\-CB@{NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}}}
\label{plugin_8cpp_a528dc4961c0cefb007f029936a235efa}


Definition at line 74 of file plugin.cpp.

\hypertarget{plugin_8cpp_ab5795077b204645dc2b6d293a76d1252}{
\index{plugin.cpp@{plugin.cpp}!NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB@{NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}}
\index{NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB@{NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}}}
\label{plugin_8cpp_ab5795077b204645dc2b6d293a76d1252}


Definition at line 70 of file plugin.cpp.

\hypertarget{plugin_8cpp_a72f59b0561fdf3d101b7ff80bde106f5}{
\index{plugin.cpp@{plugin.cpp}!neuroskyList@{neuroskyList}}
\index{neuroskyList@{neuroskyList}!plugin.cpp@{plugin.cpp}}
\subsubsection[{neuroskyList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Array}$<${\bf Neurosky}$\ast$$>$ {\bf neuroskyList}}}
\label{plugin_8cpp_a72f59b0561fdf3d101b7ff80bde106f5}


Definition at line 8 of file neurosky.cpp.

\hypertarget{plugin_8cpp_a11e6db4703f4031f78133ba592a2d4a1}{
\index{plugin.cpp@{plugin.cpp}!OBJNEUROSKYSCOL@{OBJNEUROSKYSCOL}}
\index{OBJNEUROSKYSCOL@{OBJNEUROSKYSCOL}!plugin.cpp@{plugin.cpp}}
\subsubsection[{OBJNEUROSKYSCOL}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf OBJNEUROSKYSCOL}}}
\label{plugin_8cpp_a11e6db4703f4031f78133ba592a2d4a1}


Scol object declaration. 



Definition at line 51 of file plugin.cpp.

\hypertarget{plugin_8cpp_a9717e7bbecb906637e86cef6da3d83c2}{
\index{plugin.cpp@{plugin.cpp}!return@{return}}
\index{return@{return}!plugin.cpp@{plugin.cpp}}
\subsubsection[{return}]{\setlength{\rightskip}{0pt plus 5cm}{\bf return}}}
\label{plugin_8cpp_a9717e7bbecb906637e86cef6da3d83c2}


Definition at line 670 of file plugin.cpp.

\hypertarget{plugin_8cpp_afa8365d4c824bbc0e7da6544f81ea2e7}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-ATTENTION\_\-CB@{SCOL\_\-NEUROSKY\_\-ATTENTION\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-ATTENTION\_\-CB@{SCOL\_\-NEUROSKY\_\-ATTENTION\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-ATTENTION\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-ATTENTION\_\-CB} = 0}}
\label{plugin_8cpp_afa8365d4c824bbc0e7da6544f81ea2e7}


Scol CallBacks declaration. 



Definition at line 57 of file plugin.cpp.

\hypertarget{plugin_8cpp_a633c8abfa8d602bdf1c1baee96081baa}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-BATTERY\_\-CB@{SCOL\_\-NEUROSKY\_\-BATTERY\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-BATTERY\_\-CB@{SCOL\_\-NEUROSKY\_\-BATTERY\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-BATTERY\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-BATTERY\_\-CB} = 2}}
\label{plugin_8cpp_a633c8abfa8d602bdf1c1baee96081baa}


Definition at line 65 of file plugin.cpp.

\hypertarget{plugin_8cpp_a98470da8e4b0e160c827961f1054ec03}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-CONNECTED\_\-CB@{SCOL\_\-NEUROSKY\_\-CONNECTED\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-CONNECTED\_\-CB@{SCOL\_\-NEUROSKY\_\-CONNECTED\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-CONNECTED\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-CONNECTED\_\-CB} = 6}}
\label{plugin_8cpp_a98470da8e4b0e160c827961f1054ec03}


Definition at line 81 of file plugin.cpp.

\hypertarget{plugin_8cpp_abac3fd4a822d5fefc7f991a90a77f52c}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-DISCONNECTED\_\-CB@{SCOL\_\-NEUROSKY\_\-DISCONNECTED\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-DISCONNECTED\_\-CB@{SCOL\_\-NEUROSKY\_\-DISCONNECTED\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-DISCONNECTED\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-DISCONNECTED\_\-CB} = 7}}
\label{plugin_8cpp_abac3fd4a822d5fefc7f991a90a77f52c}


Definition at line 85 of file plugin.cpp.

\hypertarget{plugin_8cpp_a483d497aff0531b46ce89bc72f10e8d2}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-EEG\_\-CB@{SCOL\_\-NEUROSKY\_\-EEG\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-EEG\_\-CB@{SCOL\_\-NEUROSKY\_\-EEG\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-EEG\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-EEG\_\-CB} = 5}}
\label{plugin_8cpp_a483d497aff0531b46ce89bc72f10e8d2}


Definition at line 77 of file plugin.cpp.

\hypertarget{plugin_8cpp_a5215f6d8cb80d588bab3ae7e72eebada}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-MEDITATION\_\-CB@{SCOL\_\-NEUROSKY\_\-MEDITATION\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-MEDITATION\_\-CB@{SCOL\_\-NEUROSKY\_\-MEDITATION\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-MEDITATION\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-MEDITATION\_\-CB} = 1}}
\label{plugin_8cpp_a5215f6d8cb80d588bab3ae7e72eebada}


Definition at line 61 of file plugin.cpp.

\hypertarget{plugin_8cpp_a928cd3316675e937c35350071458cc81}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-POOR\_\-QUALITY\_\-CB@{SCOL\_\-NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-POOR\_\-QUALITY\_\-CB@{SCOL\_\-NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-POOR\_\-QUALITY\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-POOR\_\-QUALITY\_\-CB} = 4}}
\label{plugin_8cpp_a928cd3316675e937c35350071458cc81}


Definition at line 73 of file plugin.cpp.

\hypertarget{plugin_8cpp_a0c16ffbae6805fcaa556d63d13238216}{
\index{plugin.cpp@{plugin.cpp}!SCOL\_\-NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB@{SCOL\_\-NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}}
\index{SCOL\_\-NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB@{SCOL\_\-NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}!plugin.cpp@{plugin.cpp}}
\subsubsection[{SCOL\_\-NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf SCOL\_\-NEUROSKY\_\-RAW\_\-SIGNAL\_\-CB} = 3}}
\label{plugin_8cpp_a0c16ffbae6805fcaa556d63d13238216}


Definition at line 69 of file plugin.cpp.

\hypertarget{plugin_8cpp_a95c0009400a7f8a271a9f8f84b7a0e4c}{
\index{plugin.cpp@{plugin.cpp}!TplFunc@{TplFunc}}
\index{TplFunc@{TplFunc}!plugin.cpp@{plugin.cpp}}
\subsubsection[{TplFunc}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf TplFunc}\mbox{[}NbTplPKG\mbox{]})(mmachine m)}}
\label{plugin_8cpp_a95c0009400a7f8a271a9f8f84b7a0e4c}
{\bfseries Initial value:}
\begin{DoxyCode}

{
  NULL,                 
        _CRNeurosky,
        _DSNeurosky,
  _CBNeuroskyAttentionData,
  _CBNeuroskyMeditationData,
  _CBNeuroskyBatteryData,
  _CBNeuroskyPoorQualityData,
  _CBNeuroskyRawSignalData,
  _CBNeuroskyEEGData,
  _CBNeuroskyConnected,
  _CBNeuroskyDisconnected,
  _SetNeuroskyBaudrate,
  _SetNeuroskyDataFormat,
        
}
\end{DoxyCode}
Pointers to C functions that manipulate the VM for each scol function previously defined 

Definition at line 544 of file plugin.cpp.

\hypertarget{plugin_8cpp_a9fb82289ed02d14c4137bc91c0128e33}{
\index{plugin.cpp@{plugin.cpp}!TplName@{TplName}}
\index{TplName@{TplName}!plugin.cpp@{plugin.cpp}}
\subsubsection[{TplName}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf TplName}\mbox{[}NbTplPKG\mbox{]}}}
\label{plugin_8cpp_a9fb82289ed02d14c4137bc91c0128e33}
{\bfseries Initial value:}
\begin{DoxyCode}

{
        "ObjNeurosky",
        "_CRNeurosky",
        "_DSNeurosky",
  "_CBNeuroskyAttentionData",
  "_CBNeuroskyMeditationData",
  "_CBNeuroskyBatteryData",
  "_CBNeuroskyPoorQualityData",
  "_CBNeuroskyRawSignalData",
  "_CBNeuroskyEEGData",
  "_CBNeuroskyConnected",
  "_CBNeuroskyDisconnected",
  "_SetNeuroskyBaudrate",
  "_SetNeuroskyDataFormat",

}
\end{DoxyCode}
Scol function names 

Definition at line 522 of file plugin.cpp.

\hypertarget{plugin_8cpp_a7f359b36c24b953bd273ccd63711234b}{
\index{plugin.cpp@{plugin.cpp}!TplNArg@{TplNArg}}
\index{TplNArg@{TplNArg}!plugin.cpp@{plugin.cpp}}
\subsubsection[{TplNArg}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf TplNArg}\mbox{[}NbTplPKG\mbox{]}}}
\label{plugin_8cpp_a7f359b36c24b953bd273ccd63711234b}
{\bfseries Initial value:}
\begin{DoxyCode}

{
  TYPTYPE,                           
        1,                                                                                                       
       
        1,                                                                                               
        
  3,                          
  3,                         
  3,                        
  3,                       
  3,                      
  3,                     
  3,                    
  3,                    
  2,                   
  2,                  
}
\end{DoxyCode}
Nb of arguments of each scol function 

Definition at line 566 of file plugin.cpp.

\hypertarget{plugin_8cpp_a3101c86c8a5f2e825fca960e3b4bf447}{
\index{plugin.cpp@{plugin.cpp}!TplType@{TplType}}
\index{TplType@{TplType}!plugin.cpp@{plugin.cpp}}
\subsubsection[{TplType}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf TplType}\mbox{[}NbTplPKG\mbox{]}}}
\label{plugin_8cpp_a3101c86c8a5f2e825fca960e3b4bf447}
{\bfseries Initial value:}
\begin{DoxyCode}

{
        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",                                                    
}
\end{DoxyCode}
Prototypes of the scol functions 

Definition at line 587 of file plugin.cpp.

\hypertarget{plugin_8cpp_a95981606817c56a4a3aa27218ae6e722}{
\index{plugin.cpp@{plugin.cpp}!ww@{ww}}
\index{ww@{ww}!plugin.cpp@{plugin.cpp}}
\subsubsection[{ww}]{\setlength{\rightskip}{0pt plus 5cm}cbmachine {\bf ww}}}
\label{plugin_8cpp_a95981606817c56a4a3aa27218ae6e722}


Scol machine declaration for MM macros. 



Definition at line 46 of file plugin.cpp.

