\hypertarget{classcpphlib_1_1PPAINHANDLER}{\section{cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R \-Class \-Reference}
\label{classcpphlib_1_1PPAINHANDLER}\index{cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R@{cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}}
}


\-Analogue input handler.  


\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{classcpphlib_1_1PPAINHANDLER_ae09f6a03e4b43e90e8731fd8fc925822}{\-\_\-\-\_\-init\-\_\-\-\_\-}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPAINHANDLER_aa6c4fcd033afabfe75c8c4cb617fa2ce}{registerinchannel}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPAINHANDLER_ae2ad8153683a0203f8d074380cb92e12}{removeinchannel}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPAINHANDLER_a4b2168b15c793d9e84db90769cd4beac}{chekinchannelschanges}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPAINHANDLER_ae3771de9b59a6aee87369b8071518a84}{inputevent}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPAINHANDLER_a0b536ef57fdd82ad5cc2f35dca791617}{getvalue}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classcpphlib_1_1PPAINHANDLER_a60db5f72150bc226a096e4c87c9d15fe}{{\bfseries \-C\-A\-E\-I\-F}}\label{classcpphlib_1_1PPAINHANDLER_a60db5f72150bc226a096e4c87c9d15fe}

\item 
\hypertarget{classcpphlib_1_1PPAINHANDLER_a82c20ba26e8180bf023ac01f7231e0fb}{{\bfseries \-I\-O\-I\-F}}\label{classcpphlib_1_1PPAINHANDLER_a82c20ba26e8180bf023ac01f7231e0fb}

\item 
\hypertarget{classcpphlib_1_1PPAINHANDLER_a5dcbcde00d9ed14bb2f9d1ec15c5bdd0}{{\bfseries \-In\-Channels}}\label{classcpphlib_1_1PPAINHANDLER_a5dcbcde00d9ed14bb2f9d1ec15c5bdd0}

\item 
\hypertarget{classcpphlib_1_1PPAINHANDLER_a3a74202943222a0d52c052d77f4aeb9c}{{\bfseries \-In\-Bytes}}\label{classcpphlib_1_1PPAINHANDLER_a3a74202943222a0d52c052d77f4aeb9c}

\item 
\hypertarget{classcpphlib_1_1PPAINHANDLER_a2747d4ff4bd39127761a4dafa6ebe270}{{\bfseries \-In\-Bytes\-Prev}}\label{classcpphlib_1_1PPAINHANDLER_a2747d4ff4bd39127761a4dafa6ebe270}

\item 
\hypertarget{classcpphlib_1_1PPAINHANDLER_a5d44a382f27840c1ebdd7d3ae18d96f9}{{\bfseries \-B\-M}}\label{classcpphlib_1_1PPAINHANDLER_a5d44a382f27840c1ebdd7d3ae18d96f9}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Analogue input handler. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-This class helps to get data from cards with analog inputs. \-The \char`\"{}\-C\-H\-A\-N\-G\-E\char`\"{} event indicates changes of input channels, this time measured values can be read out. \-To do all of this you should name analog input channels. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classcpphlib_1_1PPAINHANDLER_ae09f6a03e4b43e90e8731fd8fc925822}{\index{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}!\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}}
\index{\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}!cpphlib::PPAINHANDLER@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}}
\subsubsection[{\-\_\-\-\_\-init\-\_\-\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R.\-\_\-\-\_\-init\-\_\-\-\_\-} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{\-C\-A\-E\-I\-F, }
\item[{}]{\-I\-O\-I\-F}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPAINHANDLER_ae09f6a03e4b43e90e8731fd8fc925822}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-Constructs \hyperlink{classcpphlib_1_1PPAINHANDLER}{\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R} class. 
\begin{DoxyParams}{\-Parameters}
{\em \-C\-A\-E\-I\-F} & \-C\-A\-E interface instance is already connected to ppds. \\
\hline
{\em \-I\-O\-I\-F} & \-I\-O interface instance is already connected to ppds. \par
\par
 \begin{DoxyVerb}Short description: Constructs PPAINHANDLER class\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classcpphlib_1_1PPAINHANDLER_a4b2168b15c793d9e84db90769cd4beac}{\index{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}!chekinchannelschanges@{chekinchannelschanges}}
\index{chekinchannelschanges@{chekinchannelschanges}!cpphlib::PPAINHANDLER@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}}
\subsubsection[{chekinchannelschanges}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R.\-chekinchannelschanges} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{\-Master\-Or\-Fwd\-Data}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPAINHANDLER_a4b2168b15c793d9e84db90769cd4beac}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It checks input channel changes. \-All \-P\-P eventhandler classes has method like this. \-Only one reading method can handle incoming data, because only one clientsocket can be connected to the ppds \-I\-O interface. \-Due to this, a master one, which reads out the receive queue in the working loop, and the processes incoming data is required to have in the case of using more than one eventhandler. \-After processing the master passes raw data to the next eventhandlers. \-This way all data will be processed. \-If the {\bfseries chekinchannelschanges} method is called as master, then it always reads out the receivequeue of the \-I\-O interface. \-The master {\bfseries checkinchannelschanges} must run first. \-All the other eventhandlers must receive the data read by the first after each-\/other, in consequence. 
\begin{DoxyParams}{\-Parameters}
{\em \-Master\-Or\-Fwd\-Data} & \-It can be the \char`\"{}\-M\-A\-S\-T\-E\-R\char`\"{}, or forwarded input data. \par
\par
 \begin{DoxyVerb}Short description: It checks input channel changes\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPAINHANDLER_a0b536ef57fdd82ad5cc2f35dca791617}{\index{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}!getvalue@{getvalue}}
\index{getvalue@{getvalue}!cpphlib::PPAINHANDLER@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}}
\subsubsection[{getvalue}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R.\-getvalue} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{\-Channel\-Name}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPAINHANDLER_a0b536ef57fdd82ad5cc2f35dca791617}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It reads out the actual value of the channel 
\begin{DoxyParams}{\-Parameters}
{\em \-Channel\-Name} & \-The functional name of the channel \par
\par
 \begin{DoxyVerb}Short description: It reads out the actual value of the channel\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPAINHANDLER_ae3771de9b59a6aee87369b8071518a84}{\index{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}!inputevent@{inputevent}}
\index{inputevent@{inputevent}!cpphlib::PPAINHANDLER@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}}
\subsubsection[{inputevent}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R.\-inputevent} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{\-Channel\-Name, }
\item[{}]{\-Event\-Name = {\ttfamily \char`\"{}\-C\-H\-A\-N\-G\-E\char`\"{}}}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPAINHANDLER_ae3771de9b59a6aee87369b8071518a84}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It is evendhandler of the \hyperlink{classcpphlib_1_1PPAINHANDLER}{\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}. \-It handles only one event, as \char`\"{}\-C\-H\-A\-N\-G\-E\char`\"{}. \-If the analog value mesured by the certain channel changes, then it comes back with value {\bfseries {\itshape \-True\/}}, if there is no changes, the value is {\bfseries {\itshape \-False\/}}. \-If the method indicates changes, it is useful to read out using {\bfseries getvalue} method as soon as possible, because the changed data is stored only for the term of the cycle. 
\begin{DoxyParams}{\-Parameters}
{\em \-Channel\-Name} & \-The functional name of the channel \par
\par
 \begin{DoxyVerb}Short description: Event handler for "CHANGES" event\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPAINHANDLER_aa6c4fcd033afabfe75c8c4cb617fa2ce}{\index{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}!registerinchannel@{registerinchannel}}
\index{registerinchannel@{registerinchannel}!cpphlib::PPAINHANDLER@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}}
\subsubsection[{registerinchannel}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R.\-registerinchannel} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{\-Channel\-Name, }
\item[{}]{\-Card\-Address, }
\item[{}]{\-Block\-Number}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPAINHANDLER_aa6c4fcd033afabfe75c8c4cb617fa2ce}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It registers the analog channel, and it pairs a functional name with the channel. \-Channel name can be defined by you regarding the function it is used for. \-For example if a variable resistor is connected to one channel, and you want to used it to control speed, it is practical to name as \char`\"{}\-S\-P\-E\-E\-D C\-O\-N\-T\-R\-O\-L\char`\"{}. 
\begin{DoxyParams}{\-Parameters}
{\em \-Channel\-Name} & \-The functional name of the cannel \\
\hline
{\em \-Card\-Address} & \-The jumpered address of the analog input card what the channel to read is on. \\
\hline
{\em \-Block\-Number} & \-The number of the chanel you want to use. \-Value can be 0..5 \par
\par
 \begin{DoxyVerb}Short description: It registers the analog channel\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPAINHANDLER_ae2ad8153683a0203f8d074380cb92e12}{\index{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}!removeinchannel@{removeinchannel}}
\index{removeinchannel@{removeinchannel}!cpphlib::PPAINHANDLER@{cpphlib\-::\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R}}
\subsubsection[{removeinchannel}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-A\-I\-N\-H\-A\-N\-D\-L\-E\-R.\-removeinchannel} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{\-Channel\-Name}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPAINHANDLER_ae2ad8153683a0203f8d074380cb92e12}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It purges the analog channel from the store of the class. 
\begin{DoxyParams}{\-Parameters}
{\em \-Channel\-Name} & \-The functional name of the channel to be purged. \par
\par
 \begin{DoxyVerb}Short description: It purges the analog channel\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}


\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
cpphlib.\-py\end{DoxyCompactItemize}
