\section{aversive\_\-10-03-12/modules/devices/servo/multiservo/multiservo.h File Reference}
\label{multiservo_8h}\index{aversive\_\-10-03-12/modules/devices/servo/multiservo/multiservo.h@{aversive\_\-10-03-12/modules/devices/servo/multiservo/multiservo.h}}
{\tt \#include $<$aversive.h$>$}\par
{\tt \#include $<$multiservo\_\-config.h$>$}\par
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct {\bf multiservo\_\-element}
\item 
struct {\bf multiservo}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf multiservo\_\-init} (void)
\item 
int8\_\-t {\bf multiservo\_\-add} (volatile uint8\_\-t $\ast$port, uint8\_\-t bitnum)
\item 
void {\bf multiservo\_\-del} (int8\_\-t id)
\item 
void {\bf multiservo\_\-set} (int8\_\-t id, uint16\_\-t val)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
struct {\bf multiservo} {\bf g\_\-multiservo}
\end{CompactItemize}


\subsection{Function Documentation}
\index{multiservo.h@{multiservo.h}!multiservo\_\-add@{multiservo\_\-add}}
\index{multiservo\_\-add@{multiservo\_\-add}!multiservo.h@{multiservo.h}}
\subsubsection[multiservo\_\-add]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t multiservo\_\-add (volatile uint8\_\-t $\ast$ {\em port}, \/  uint8\_\-t {\em bitnum})}\label{multiservo_8h_a8985574b2cf6377a21e505d1e178e10}




Definition at line 127 of file multiservo.c.

References multiservo\_\-element::bitnum, DDR, multiservo::elts, g\_\-multiservo, i, IRQ\_\-LOCK, IRQ\_\-UNLOCK, multiservo\_\-element::port, sbi, TIME\_\-1\_\-5MS, and multiservo\_\-element::value.\index{multiservo.h@{multiservo.h}!multiservo\_\-del@{multiservo\_\-del}}
\index{multiservo\_\-del@{multiservo\_\-del}!multiservo.h@{multiservo.h}}
\subsubsection[multiservo\_\-del]{\setlength{\rightskip}{0pt plus 5cm}void multiservo\_\-del (int8\_\-t {\em id})}\label{multiservo_8h_932982054f7e0691216e1cee7d611fb8}




Definition at line 155 of file multiservo.c.

References multiservo\_\-element::bitnum, cbi, DDR, multiservo::elts, g\_\-multiservo, IRQ\_\-LOCK, IRQ\_\-UNLOCK, and multiservo\_\-element::port.\index{multiservo.h@{multiservo.h}!multiservo\_\-init@{multiservo\_\-init}}
\index{multiservo\_\-init@{multiservo\_\-init}!multiservo.h@{multiservo.h}}
\subsubsection[multiservo\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void multiservo\_\-init (void)}\label{multiservo_8h_8dced8e5cf529880c1b59875b54dcafd}




Definition at line 104 of file multiservo.c.

References cbi, g\_\-multiservo, multiservo::id\_\-prev, IRQ\_\-LOCK, IRQ\_\-UNLOCK, sbi, and TIME\_\-1MS.\index{multiservo.h@{multiservo.h}!multiservo\_\-set@{multiservo\_\-set}}
\index{multiservo\_\-set@{multiservo\_\-set}!multiservo.h@{multiservo.h}}
\subsubsection[multiservo\_\-set]{\setlength{\rightskip}{0pt plus 5cm}void multiservo\_\-set (int8\_\-t {\em id}, \/  uint16\_\-t {\em val\_\-us})}\label{multiservo_8h_1a74e47863327c9ea8f577bb5b64625c}


Set \doxyref{multiservo}{p.}{structmultiservo} angle. Specify value in us. WARNING : should be (much) bigger than 0 

Definition at line 170 of file multiservo.c.

References multiservo::elts, g\_\-multiservo, IRQ\_\-LOCK, IRQ\_\-UNLOCK, TIME\_\-1MS, and multiservo\_\-element::value.

\subsection{Variable Documentation}
\index{multiservo.h@{multiservo.h}!g\_\-multiservo@{g\_\-multiservo}}
\index{g\_\-multiservo@{g\_\-multiservo}!multiservo.h@{multiservo.h}}
\subsubsection[g\_\-multiservo]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf multiservo} {\bf g\_\-multiservo}}\label{multiservo_8h_a7adacfe07d0e5a0af2e4764c8eaad95}




Definition at line 29 of file multiservo.c.

Referenced by multiservo\_\-add(), multiservo\_\-del(), multiservo\_\-init(), multiservo\_\-set(), and SIGNAL().