\section{event\_\-t Struct Reference}
\label{structevent__t}\index{event\_\-t@{event\_\-t}}
{\tt \#include $<$scheduler\_\-private.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf SLIST\_\-ENTRY} ({\bf event\_\-t}) next
\end{CompactItemize}
\subsection*{Data Fields}
\begin{CompactItemize}
\item 
void($\ast$ {\bf f} )(void $\ast$)
\item 
void $\ast$ {\bf data}
\item 
uint16\_\-t {\bf period}
\item 
uint16\_\-t {\bf current\_\-time}
\item 
uint8\_\-t {\bf priority}
\item 
enum {\bf event\_\-state\_\-t} {\bf state}
\end{CompactItemize}


\subsection{Detailed Description}
The event structure 

Definition at line 47 of file scheduler\_\-private.h.

\subsection{Member Function Documentation}
\index{event\_\-t@{event\_\-t}!SLIST\_\-ENTRY@{SLIST\_\-ENTRY}}
\index{SLIST\_\-ENTRY@{SLIST\_\-ENTRY}!event_t@{event\_\-t}}
\subsubsection[SLIST\_\-ENTRY]{\setlength{\rightskip}{0pt plus 5cm}event\_\-t::SLIST\_\-ENTRY ({\bf event\_\-t})}\label{structevent__t_390f757347c099ba19b6b25cb70d210d}




\subsection{Field Documentation}
\index{event\_\-t@{event\_\-t}!f@{f}}
\index{f@{f}!event_t@{event\_\-t}}
\subsubsection[f]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf event\_\-t::f})(void $\ast$)}\label{structevent__t_f5f38ab6455c6708af1d38349634beef}


a pointer to the scheduled function 

Referenced by scheduler\_\-add\_\-event(), and scheduler\_\-interrupt().\index{event\_\-t@{event\_\-t}!data@{data}}
\index{data@{data}!event_t@{event\_\-t}}
\subsubsection[data]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ {\bf event\_\-t::data}}\label{structevent__t_7fa0689a7d4d9d2efb51a86e79b7080c}


a pointer to the data parameters 

Definition at line 50 of file scheduler\_\-private.h.

Referenced by dump\_\-events(), scheduler\_\-add\_\-event(), and scheduler\_\-interrupt().\index{event\_\-t@{event\_\-t}!period@{period}}
\index{period@{period}!event_t@{event\_\-t}}
\subsubsection[period]{\setlength{\rightskip}{0pt plus 5cm}uint16\_\-t {\bf event\_\-t::period}}\label{structevent__t_68c27f24450a10739b00930c4c14a5c4}


interval between each call 

Definition at line 51 of file scheduler\_\-private.h.

Referenced by dump\_\-events(), scheduler\_\-add\_\-event(), and scheduler\_\-interrupt().\index{event\_\-t@{event\_\-t}!current\_\-time@{current\_\-time}}
\index{current\_\-time@{current\_\-time}!event_t@{event\_\-t}}
\subsubsection[current\_\-time]{\setlength{\rightskip}{0pt plus 5cm}uint16\_\-t {\bf event\_\-t::current\_\-time}}\label{structevent__t_088eb6f29b90e933bcfb2b7111287d6a}


time remaining before next call 

Definition at line 52 of file scheduler\_\-private.h.

Referenced by dump\_\-events(), scheduler\_\-add\_\-event(), and scheduler\_\-interrupt().\index{event\_\-t@{event\_\-t}!priority@{priority}}
\index{priority@{priority}!event_t@{event\_\-t}}
\subsubsection[priority]{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t {\bf event\_\-t::priority}}\label{structevent__t_76ae116e7a5524e2fe27e3b5508c0491}


if many events occur at the same time, the first to be executed will be the one with the highest value of priority 

Definition at line 53 of file scheduler\_\-private.h.

Referenced by dump\_\-events(), scheduler\_\-add\_\-event(), and scheduler\_\-interrupt().\index{event\_\-t@{event\_\-t}!state@{state}}
\index{state@{state}!event_t@{event\_\-t}}
\subsubsection[state]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf event\_\-state\_\-t} {\bf event\_\-t::state}}\label{structevent__t_195c750d854ec84ddfd823181cdbf853}


(scheduled, active, allocated, free, deleting) 

Definition at line 57 of file scheduler\_\-private.h.

Referenced by dump\_\-events(), scheduler\_\-add\_\-event(), scheduler\_\-del\_\-event(), and scheduler\_\-interrupt().

The documentation for this struct was generated from the following file:\begin{CompactItemize}
\item 
aversive\_\-10-03-12/modules/base/scheduler/{\bf scheduler\_\-private.h}\end{CompactItemize}
