\section{include/sys/battery.h File Reference}
\label{battery_8h}\index{include/sys/battery.h@{include/sys/battery.h}}
Internal Interface: battery handling. 

\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf BATTERY\_\-NORMAL\_\-THRESHOLD\_\-MV}\ 6700
\item 
\#define {\bf BATTERY\_\-LOW\_\-THRESHOLD\_\-MV}\ 6300
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf get\_\-battery\_\-mv} ()
\item 
void {\bf battery\_\-refresh} (void)
\end{CompactItemize}


\subsection{Detailed Description}
Internal Interface: battery handling. 

\begin{Desc}
\item[Author:]Paolo Masetti $<${\tt paolo.masetti@itlug.org}$>$\end{Desc}


Definition in file {\bf battery.h}.

\subsection{Define Documentation}
\index{battery.h@{battery.h}!BATTERY_LOW_THRESHOLD_MV@{BATTERY\_\-LOW\_\-THRESHOLD\_\-MV}}
\index{BATTERY_LOW_THRESHOLD_MV@{BATTERY\_\-LOW\_\-THRESHOLD\_\-MV}!battery.h@{battery.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define BATTERY\_\-LOW\_\-THRESHOLD\_\-MV\ 6300}\label{battery_8h_a1}




Definition at line 42 of file battery.h.\index{battery.h@{battery.h}!BATTERY_NORMAL_THRESHOLD_MV@{BATTERY\_\-NORMAL\_\-THRESHOLD\_\-MV}}
\index{BATTERY_NORMAL_THRESHOLD_MV@{BATTERY\_\-NORMAL\_\-THRESHOLD\_\-MV}!battery.h@{battery.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define BATTERY\_\-NORMAL\_\-THRESHOLD\_\-MV\ 6700}\label{battery_8h_a0}




Definition at line 41 of file battery.h.

\subsection{Function Documentation}
\index{battery.h@{battery.h}!battery_refresh@{battery\_\-refresh}}
\index{battery_refresh@{battery\_\-refresh}!battery.h@{battery.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void battery\_\-refresh (void)}\label{battery_8h_a3}


cause the battery voltage sensor value to be refreshed \index{battery.h@{battery.h}!get_battery_mv@{get\_\-battery\_\-mv}}
\index{get_battery_mv@{get\_\-battery\_\-mv}!battery.h@{battery.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int get\_\-battery\_\-mv ()}\label{battery_8h_a2}


get current battery voltage \begin{Desc}
\item[Returns:]int voltage in millivolts \end{Desc}
