\section{aversive\_\-10-03-12/modules/devices/control\_\-system/filters/ramp/ramp.c File Reference}
\label{ramp_8c}\index{aversive\_\-10-03-12/modules/devices/control\_\-system/filters/ramp/ramp.c@{aversive\_\-10-03-12/modules/devices/control\_\-system/filters/ramp/ramp.c}}
{\tt \#include $<$aversive.h$>$}\par
{\tt \#include \char`\"{}ramp.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf ramp\_\-init} (struct {\bf ramp\_\-filter} $\ast$r)
\begin{CompactList}\small\item\em Initialisation of the \doxyref{ramp\_\-filter}{p.}{structramp__filter} structur. \item\end{CompactList}\item 
void {\bf ramp\_\-set\_\-vars} (struct {\bf ramp\_\-filter} $\ast$r, uint32\_\-t neg, uint32\_\-t pos)
\begin{CompactList}\small\item\em Set the fields of the \doxyref{ramp\_\-filter}{p.}{structramp__filter} structur. \item\end{CompactList}\item 
int32\_\-t {\bf ramp\_\-do\_\-filter} (void $\ast$data, int32\_\-t in)
\begin{CompactList}\small\item\em Apply \doxyref{ramp\_\-filter}{p.}{structramp__filter} to a ramp. \item\end{CompactList}\end{CompactItemize}


\subsection{Function Documentation}
\index{ramp.c@{ramp.c}!ramp\_\-do\_\-filter@{ramp\_\-do\_\-filter}}
\index{ramp\_\-do\_\-filter@{ramp\_\-do\_\-filter}!ramp.c@{ramp.c}}
\subsubsection[ramp\_\-do\_\-filter]{\setlength{\rightskip}{0pt plus 5cm}int32\_\-t ramp\_\-do\_\-filter (void $\ast$ {\em r}, \/  int32\_\-t {\em in})}\label{ramp_8c_9a7516cdb31177e5ca4f4c29041934e1}


Apply \doxyref{ramp\_\-filter}{p.}{structramp__filter} to a ramp. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em r}]\doxyref{ramp\_\-filter}{p.}{structramp__filter} used to filter the in \item[{\em in}]ramp to filter \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]filtered in \end{Desc}


Definition at line 56 of file ramp.c.

References ramp\_\-filter::prev\_\-out, ramp\_\-filter::var\_\-neg, and ramp\_\-filter::var\_\-pos.\index{ramp.c@{ramp.c}!ramp\_\-init@{ramp\_\-init}}
\index{ramp\_\-init@{ramp\_\-init}!ramp.c@{ramp.c}}
\subsubsection[ramp\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void ramp\_\-init (struct {\bf ramp\_\-filter} $\ast$ {\em r})}\label{ramp_8c_a0a9a4068fc417ea7fd15d32c6dd856c}


Initialisation of the \doxyref{ramp\_\-filter}{p.}{structramp__filter} structur. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em r}]\doxyref{ramp\_\-filter}{p.}{structramp__filter} structur to initiate \end{description}
\end{Desc}


Definition at line 28 of file ramp.c.

References IRQ\_\-LOCK, IRQ\_\-UNLOCK, ramp\_\-filter::prev\_\-out, ramp\_\-filter::var\_\-neg, and ramp\_\-filter::var\_\-pos.\index{ramp.c@{ramp.c}!ramp\_\-set\_\-vars@{ramp\_\-set\_\-vars}}
\index{ramp\_\-set\_\-vars@{ramp\_\-set\_\-vars}!ramp.c@{ramp.c}}
\subsubsection[ramp\_\-set\_\-vars]{\setlength{\rightskip}{0pt plus 5cm}void ramp\_\-set\_\-vars (struct {\bf ramp\_\-filter} $\ast$ {\em r}, \/  uint32\_\-t {\em neg}, \/  uint32\_\-t {\em pos})}\label{ramp_8c_ac236131353779272006533b3151a5d3}


Set the fields of the \doxyref{ramp\_\-filter}{p.}{structramp__filter} structur. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em r}]ramp\_\-structure to modificate \item[{\em neg}]limit for the negative variation \item[{\em pos}]limit for the positive variation \end{description}
\end{Desc}


Definition at line 43 of file ramp.c.

References IRQ\_\-LOCK, IRQ\_\-UNLOCK, ramp\_\-filter::var\_\-neg, and ramp\_\-filter::var\_\-pos.