\doxysection{src/\+Me\+PS2.h File Reference}
\hypertarget{_me_p_s2_8h}{}\label{_me_p_s2_8h}\index{src/MePS2.h@{src/MePS2.h}}


Header for \doxylink{_me_p_s2_8cpp}{Me\+PS2.\+cpp} module.  


{\ttfamily \#include $<$stdbool.\+h$>$}\newline
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$Arduino.\+h$>$}\newline
{\ttfamily \#include "{}Me\+Config.\+h"{}}\newline
{\ttfamily \#include "{}Me\+Serial.\+h"{}}\newline
{\ttfamily \#include "{}Me\+Port.\+h"{}}\newline
Include dependency graph for Me\+PS2.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{_me_p_s2_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{_me_p_s2_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{class_me_p_s2}{Me\+PS2}}
\begin{DoxyCompactList}\small\item\em Driver for \doxylink{class_me_p_s2}{Me\+PS2} handle device. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{_me_p_s2_8h_a0021035250eb4518ab6a5823b7b29e35}\label{_me_p_s2_8h_a0021035250eb4518ab6a5823b7b29e35} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+RX}~6
\item 
\Hypertarget{_me_p_s2_8h_a5bce6b4955c5378ee185717c035058ac}\label{_me_p_s2_8h_a5bce6b4955c5378ee185717c035058ac} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+RY}~8
\item 
\Hypertarget{_me_p_s2_8h_a31901447b37759dc053e1c24e86e38a1}\label{_me_p_s2_8h_a31901447b37759dc053e1c24e86e38a1} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+LX}~2
\item 
\Hypertarget{_me_p_s2_8h_a2b918c4860fa916f003f7630e6eb36d9}\label{_me_p_s2_8h_a2b918c4860fa916f003f7630e6eb36d9} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+LY}~4
\item 
\Hypertarget{_me_p_s2_8h_a74389ffbebfa7a837d76c0a474edd876}\label{_me_p_s2_8h_a74389ffbebfa7a837d76c0a474edd876} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+R1}~1
\item 
\Hypertarget{_me_p_s2_8h_a7ba6f0fc3c0eb5523b0df121a631a4fb}\label{_me_p_s2_8h_a7ba6f0fc3c0eb5523b0df121a631a4fb} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+R2}~3
\item 
\Hypertarget{_me_p_s2_8h_a47ea49dc5de550c5296f0697536df9a5}\label{_me_p_s2_8h_a47ea49dc5de550c5296f0697536df9a5} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+L1}~5
\item 
\Hypertarget{_me_p_s2_8h_a6ab7684c6b1bebcaa9b56a40706a2b1e}\label{_me_p_s2_8h_a6ab7684c6b1bebcaa9b56a40706a2b1e} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+L2}~7
\item 
\Hypertarget{_me_p_s2_8h_afed0647f1b6d68bb214c6a8d5fa41347}\label{_me_p_s2_8h_afed0647f1b6d68bb214c6a8d5fa41347} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+TRIANGLE}~9
\item 
\Hypertarget{_me_p_s2_8h_aec8bbd8a4cecb6235bf4d877912fbcc8}\label{_me_p_s2_8h_aec8bbd8a4cecb6235bf4d877912fbcc8} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+XSHAPED}~10
\item 
\Hypertarget{_me_p_s2_8h_a6890e8862c7a676162e68404a3d6f8a0}\label{_me_p_s2_8h_a6890e8862c7a676162e68404a3d6f8a0} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+SQUARE}~11
\item 
\Hypertarget{_me_p_s2_8h_a64a22fa3f60db9d92571dee964279a31}\label{_me_p_s2_8h_a64a22fa3f60db9d92571dee964279a31} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+ROUND}~12
\item 
\Hypertarget{_me_p_s2_8h_a02dc4f64d6faf95d809f1d1ece9bf11e}\label{_me_p_s2_8h_a02dc4f64d6faf95d809f1d1ece9bf11e} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+START}~13
\item 
\Hypertarget{_me_p_s2_8h_af9a9170fe2bd8eecc47c747ad001662d}\label{_me_p_s2_8h_af9a9170fe2bd8eecc47c747ad001662d} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+UP}~14
\item 
\Hypertarget{_me_p_s2_8h_a81eb4299208462e53acf1e103c6f9c03}\label{_me_p_s2_8h_a81eb4299208462e53acf1e103c6f9c03} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+DOWN}~15
\item 
\Hypertarget{_me_p_s2_8h_afd173ab8bc5f212223b179ea474a40a6}\label{_me_p_s2_8h_afd173ab8bc5f212223b179ea474a40a6} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+LEFT}~16
\item 
\Hypertarget{_me_p_s2_8h_a4b5429b66ac743cc193ff83b2d995f70}\label{_me_p_s2_8h_a4b5429b66ac743cc193ff83b2d995f70} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+RIGHT}~17
\item 
\Hypertarget{_me_p_s2_8h_a2bd54c2891aee837084fb6a568b9461d}\label{_me_p_s2_8h_a2bd54c2891aee837084fb6a568b9461d} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+SELECT}~18
\item 
\Hypertarget{_me_p_s2_8h_adc7953559ccd3af1562a5198b0eae894}\label{_me_p_s2_8h_adc7953559ccd3af1562a5198b0eae894} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+MODE}~19
\item 
\Hypertarget{_me_p_s2_8h_afd683245e93a9006698a12a7cc715131}\label{_me_p_s2_8h_afd683245e93a9006698a12a7cc715131} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+BUTTON\+\_\+L}~20
\item 
\Hypertarget{_me_p_s2_8h_a8eb30275991ce66ed4fc7442ba342974}\label{_me_p_s2_8h_a8eb30275991ce66ed4fc7442ba342974} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+BUTTON\+\_\+R}~21
\item 
\Hypertarget{_me_p_s2_8h_ae653979d5012ffe6e634587db983a5be}\label{_me_p_s2_8h_ae653979d5012ffe6e634587db983a5be} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+INIT\+\_\+\+VALUE}~0
\item 
\Hypertarget{_me_p_s2_8h_a7ad49ee37e0b62e34dec2e832a92e671}\label{_me_p_s2_8h_a7ad49ee37e0b62e34dec2e832a92e671} 
\#define {\bfseries Me\+JOYSTICK\+\_\+\+ANALOG\+\_\+\+ERROR}~0
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Header for \doxylink{_me_p_s2_8cpp}{Me\+PS2.\+cpp} module. 

\begin{DoxyAuthor}{Author}
Make\+Block 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
V1.\+0.\+4 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
2016/10/08 
\end{DoxyDate}
\begin{DoxyParagraph}{Copyright}
This software is Copyright (C), 2012-\/2016, Make\+Block. Use is subject to license ~\newline
conditions. The main licensing options available are GPL V2 or Commercial\+: ~\newline
 
\end{DoxyParagraph}
\begin{DoxyParagraph}{Open Source Licensing GPL V2}
This is the appropriate option if you want to share the source code of your ~\newline
application with everyone you distribute it to, and you also want to give them ~\newline
the right to share who uses it. If you wish to use this software under Open ~\newline
Source Licensing, you must contribute all your source code to the open source ~\newline
community in accordance with the GPL Version 2 when your application is ~\newline
distributed. See \href{http://www.gnu.org/copyleft/gpl.html}{\texttt{ http\+://www.\+gnu.\+org/copyleft/gpl.\+html}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Description}
This file is a drive for Me PS2 handle device, The \doxylink{class_me_p_s2}{Me\+PS2} inherited the \doxylink{class_me_serial}{Me\+Serial} class from \doxylink{class_software_serial}{Software\+Serial}.
\end{DoxyParagraph}
\begin{DoxyParagraph}{Method List\+:}

\begin{DoxyEnumerate}
\item uint8\+\_\+t \doxylink{class_me_p_s2_a4df0b0985f4b63366fc8ed2b6489916b}{Me\+PS2\+::read\+Buffer(int16\+\_\+t index)};
\item void \doxylink{class_me_p_s2_a89823992bc9d4fef006cc7f9782aa685}{Me\+PS2\+::write\+Buffer(int16\+\_\+t index,uint8\+\_\+t c)};
\item void \doxylink{class_me_p_s2_a65d5b08003a94c6bc333dec3a6957f37}{Me\+PS2\+::read\+Serial(void)};
\item boolean \doxylink{class_me_p_s2_a83482bf8ea7f5654ad6af4603045943e}{Me\+PS2\+::readjoystick(void)};
\item int16\+\_\+t \doxylink{class_me_p_s2_a9418cffcc31f2325b022189d9c02713a}{Me\+PS2\+::\+Me\+Analog(uint8\+\_\+t button)};
\item boolean \doxylink{class_me_p_s2_af6995881e6754c128b4b978f378f2ef7}{Me\+PS2\+::\+Button\+Pressed(uint8\+\_\+t button)};
\item void \doxylink{class_me_p_s2_a6801dbef44b2b324731cea5d75215a41}{Me\+PS2\+::loop(void)};
\end{DoxyEnumerate}
\end{DoxyParagraph}
\begin{DoxyParagraph}{History\+:}

\begin{DoxyPre}
`<Author>`         `<Time>`        `<Version>`        `<Descr>`
 Scott wang      2016/09/18         1.0.0            Build the new lib.
 Scott           2016/09/20         1.0.1            Correct the receive error.
 Scott           2016/09/22         1.0.2            Correct the connect error.
 Scott           2016/09/23         1.0.3            Add BUTTON\_L and BUTTON\_R.
 Mark Yan        2016/10/08         1.0.4            Modify data format.
\end{DoxyPre}
 
\end{DoxyParagraph}
