avr-lc7981/doc/latex/touch_8c.tex

30 lines
1.6 KiB
TeX

\section{include/touch.c File Reference}
\label{touch_8c}\index{include/touch.c@{include/touch.c}}
{\ttfamily \#include \char`\"{}touch.h\char`\"{}}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
uint8\_\-t {\bf touch\_\-is\_\-pressed} ()
\begin{DoxyCompactList}\small\item\em This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. \item\end{DoxyCompactList}\item
int16\_\-t {\bf touch\_\-readX} ()
\item
int16\_\-t {\bf touch\_\-readY} ()
\end{DoxyCompactItemize}
\subsection{Function Documentation}
\index{touch.c@{touch.c}!touch\_\-is\_\-pressed@{touch\_\-is\_\-pressed}}
\index{touch\_\-is\_\-pressed@{touch\_\-is\_\-pressed}!touch.c@{touch.c}}
\subsubsection[{touch\_\-is\_\-pressed}]{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t touch\_\-is\_\-pressed ()}\label{touch_8c_a215947ded979abf11d490536508ecafc}
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. If the ADC-\/Value is less then TOUCH\_\-PRESSED\_\-LEVEL, the function will return 1. \begin{DoxyReturn}{Returns}
1 if pressed else 0
\end{DoxyReturn}
\index{touch.c@{touch.c}!touch\_\-readX@{touch\_\-readX}}
\index{touch\_\-readX@{touch\_\-readX}!touch.c@{touch.c}}
\subsubsection[{touch\_\-readX}]{\setlength{\rightskip}{0pt plus 5cm}int16\_\-t touch\_\-readX ()}\label{touch_8c_adbea78d45cc89e43f7510ebf6eb01ac0}
\index{touch.c@{touch.c}!touch\_\-readY@{touch\_\-readY}}
\index{touch\_\-readY@{touch\_\-readY}!touch.c@{touch.c}}
\subsubsection[{touch\_\-readY}]{\setlength{\rightskip}{0pt plus 5cm}int16\_\-t touch\_\-readY ()}\label{touch_8c_acdce8a6997f2d00dbfcb61be2e67e886}