\hypertarget{fingersensors_8c}{
\section{fingersensors.c File Reference}
\label{fingersensors_8c}\index{fingersensors.c@{fingersensors.c}}
}
{\tt \#include \char`\"{}t89c51cc02.h\char`\"{}}\par
{\tt \#include \char`\"{}datatypes.h\char`\"{}}\par
{\tt \#include \char`\"{}fingersensors.h\char`\"{}}\par
{\tt \#include \char`\"{}adc.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{fingersensors_8c_7615c6d47ec30a245a85220bc6d98e18}{Fingersensors\_\-init} ()
\begin{CompactList}\small\item\em initializes fingersensors subsystem \item\end{CompactList}\item 
void \hyperlink{fingersensors_8c_27e61cd780ee84c8881cd12791f23a87}{Fingersensors\_\-read} ()
\begin{CompactList}\small\item\em read all finger mounted force sensing resistors \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
\hyperlink{datatypes_8h_89b917a7bdb582e19cbde98e817fa0b3}{WORD} idata \hyperlink{fingersensors_8c_dc4b2ee15227750ad9a91160bdabb146}{fingersensors} \mbox{[}FINGERSENSORS\_\-NR\mbox{]}
\begin{CompactList}\small\item\em storage buffer for current fingersensor values \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}


Definition in file \hyperlink{fingersensors_8c-source}{fingersensors.c}.

\subsection{Function Documentation}
\hypertarget{fingersensors_8c_7615c6d47ec30a245a85220bc6d98e18}{
\index{fingersensors.c@{fingersensors.c}!Fingersensors_init@{Fingersensors\_\-init}}
\index{Fingersensors_init@{Fingersensors\_\-init}!fingersensors.c@{fingersensors.c}}
\subsubsection[Fingersensors\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void Fingersensors\_\-init (void)}}
\label{fingersensors_8c_7615c6d47ec30a245a85220bc6d98e18}


initializes fingersensors subsystem 

P1.1 and P1.2 are configured as valid analogue inputs for the subsystem. 

Definition at line 33 of file fingersensors.c.

References fingersensors, FINGERSENSORS\_\-NR, and Fingersensors\_\-Power\-Off.

Referenced by main().\hypertarget{fingersensors_8c_27e61cd780ee84c8881cd12791f23a87}{
\index{fingersensors.c@{fingersensors.c}!Fingersensors_read@{Fingersensors\_\-read}}
\index{Fingersensors_read@{Fingersensors\_\-read}!fingersensors.c@{fingersensors.c}}
\subsubsection[Fingersensors\_\-read]{\setlength{\rightskip}{0pt plus 5cm}void Fingersensors\_\-read (void)}}
\label{fingersensors_8c_27e61cd780ee84c8881cd12791f23a87}


read all finger mounted force sensing resistors 

The samples are saved into the buffer. (see \hyperlink{fingersensors_8h_dc4b2ee15227750ad9a91160bdabb146}{fingersensors} ) 

Definition at line 49 of file fingersensors.c.

References ADC(), fingersensors, Fingersensors\_\-Power\-Off, Fingersensors\_\-Select\-Bank1, and Fingersensors\_\-Select\-Bank2.

Referenced by main().

\subsection{Variable Documentation}
\hypertarget{fingersensors_8c_dc4b2ee15227750ad9a91160bdabb146}{
\index{fingersensors.c@{fingersensors.c}!fingersensors@{fingersensors}}
\index{fingersensors@{fingersensors}!fingersensors.c@{fingersensors.c}}
\subsubsection[fingersensors]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{datatypes_8h_89b917a7bdb582e19cbde98e817fa0b3}{WORD} idata \hyperlink{fingersensors_8h_dc4b2ee15227750ad9a91160bdabb146}{fingersensors}\mbox{[}FINGERSENSORS\_\-NR\mbox{]}}}
\label{fingersensors_8c_dc4b2ee15227750ad9a91160bdabb146}


storage buffer for current fingersensor values 

The buffer is located in indirect addressable IRAM of the T89C51CC02 

Definition at line 26 of file fingersensors.c.

Referenced by Fingersensors\_\-init(), Fingersensors\_\-read(), and main().