
nico@207: \hypertarget{timer_8c}{
nico@207: \section{/home/epimerde/documents/tc11/Can\-Festival-3/src/timer.c File Reference}
nico@207: \label{timer_8c}\index{/home/epimerde/documents/tc11/CanFestival-3/src/timer.c@{/home/epimerde/documents/tc11/CanFestival-3/src/timer.c}}
nico@207: }
nico@207: {\tt \#include $<$applicfg.h$>$}\par
nico@207: {\tt \#include \char`\"{}timer.h\char`\"{}}\par
nico@207: \subsection*{Defines}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: \#define \hyperlink{timer_8c_8536312cebeeea3a23dc0027800122c9}{min\_\-val}(a, b)~((a$<$b)?a:b)
nico@207: \end{CompactItemize}
nico@207: \subsection*{Functions}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: TIMER\_\-HANDLE \hyperlink{timer_8c_11c2616d78f06ed9144ef662f757b128}{Set\-Alarm} (CO\_\-Data $\ast$d, UNS32 id, Timer\-Callback\_\-t callback, TIMEVAL value, TIMEVAL period)
nico@207: \item 
nico@207: TIMER\_\-HANDLE \hyperlink{timer_8c_991b3cfaac2f201b14d5530f75985c21}{Del\-Alarm} (TIMER\_\-HANDLE handle)
nico@207: \item 
nico@207: void \hyperlink{timer_8c_fa75192a3238525618f8cb83004930cc}{Time\-Dispatch} ()
nico@207: \end{CompactItemize}
nico@207: \subsection*{Variables}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: s\_\-timer\_\-entry \hyperlink{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}{timers} \mbox{[}MAX\_\-NB\_\-TIMER\mbox{]} = \{\{TIMER\_\-FREE, NULL, NULL, 0, 0, 0\},\}
nico@207: \item 
nico@207: TIMEVAL \hyperlink{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}{total\_\-sleep\_\-time} = TIMEVAL\_\-MAX
nico@207: \item 
nico@207: TIMER\_\-HANDLE \hyperlink{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}{last\_\-timer\_\-raw} = -1
nico@207: \end{CompactItemize}
nico@207: 
nico@207: 
nico@207: \subsection{Define Documentation}
nico@207: \hypertarget{timer_8c_8536312cebeeea3a23dc0027800122c9}{
nico@207: \index{timer.c@{timer.c}!min_val@{min\_\-val}}
nico@207: \index{min_val@{min\_\-val}!timer.c@{timer.c}}
nico@207: \subsubsection[min\_\-val]{\setlength{\rightskip}{0pt plus 5cm}\#define min\_\-val(a, b)~((a$<$b)?a:b)}}
nico@207: \label{timer_8c_8536312cebeeea3a23dc0027800122c9}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 35 of file timer.c.
nico@207: 
nico@207: \subsection{Function Documentation}
nico@207: \hypertarget{timer_8c_991b3cfaac2f201b14d5530f75985c21}{
nico@207: \index{timer.c@{timer.c}!DelAlarm@{DelAlarm}}
nico@207: \index{DelAlarm@{DelAlarm}!timer.c@{timer.c}}
nico@207: \subsubsection[DelAlarm]{\setlength{\rightskip}{0pt plus 5cm}TIMER\_\-HANDLE Del\-Alarm (TIMER\_\-HANDLE {\em handle})}}
nico@207: \label{timer_8c_991b3cfaac2f201b14d5530f75985c21}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 87 of file timer.c.
nico@207: 
nico@207: References last\_\-timer\_\-raw, and timers.\hypertarget{timer_8c_11c2616d78f06ed9144ef662f757b128}{
nico@207: \index{timer.c@{timer.c}!SetAlarm@{SetAlarm}}
nico@207: \index{SetAlarm@{SetAlarm}!timer.c@{timer.c}}
nico@207: \subsubsection[SetAlarm]{\setlength{\rightskip}{0pt plus 5cm}TIMER\_\-HANDLE Set\-Alarm (CO\_\-Data $\ast$ {\em d}, UNS32 {\em id}, Timer\-Callback\_\-t {\em callback}, TIMEVAL {\em value}, TIMEVAL {\em period})}}
nico@207: \label{timer_8c_11c2616d78f06ed9144ef662f757b128}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 38 of file timer.c.
nico@207: 
nico@207: References last\_\-timer\_\-raw, and timers.\hypertarget{timer_8c_fa75192a3238525618f8cb83004930cc}{
nico@207: \index{timer.c@{timer.c}!TimeDispatch@{TimeDispatch}}
nico@207: \index{TimeDispatch@{TimeDispatch}!timer.c@{timer.c}}
nico@207: \subsubsection[TimeDispatch]{\setlength{\rightskip}{0pt plus 5cm}void Time\-Dispatch ()}}
nico@207: \label{timer_8c_fa75192a3238525618f8cb83004930cc}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 104 of file timer.c.
nico@207: 
nico@207: References last\_\-timer\_\-raw, min\_\-val, timers, and total\_\-sleep\_\-time.
nico@207: 
nico@207: \subsection{Variable Documentation}
nico@207: \hypertarget{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}{
nico@207: \index{timer.c@{timer.c}!last_timer_raw@{last\_\-timer\_\-raw}}
nico@207: \index{last_timer_raw@{last\_\-timer\_\-raw}!timer.c@{timer.c}}
nico@207: \subsubsection[last\_\-timer\_\-raw]{\setlength{\rightskip}{0pt plus 5cm}TIMER\_\-HANDLE \hyperlink{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}{last\_\-timer\_\-raw} = -1}}
nico@207: \label{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 33 of file timer.c.\hypertarget{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}{
nico@207: \index{timer.c@{timer.c}!timers@{timers}}
nico@207: \index{timers@{timers}!timer.c@{timer.c}}
nico@207: \subsubsection[timers]{\setlength{\rightskip}{0pt plus 5cm}s\_\-timer\_\-entry \hyperlink{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}{timers}\mbox{[}MAX\_\-NB\_\-TIMER\mbox{]} = \{\{TIMER\_\-FREE, NULL, NULL, 0, 0, 0\},\}}}
nico@207: \label{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 30 of file timer.c.\hypertarget{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}{
nico@207: \index{timer.c@{timer.c}!total_sleep_time@{total\_\-sleep\_\-time}}
nico@207: \index{total_sleep_time@{total\_\-sleep\_\-time}!timer.c@{timer.c}}
nico@207: \subsubsection[total\_\-sleep\_\-time]{\setlength{\rightskip}{0pt plus 5cm}TIMEVAL \hyperlink{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}{total\_\-sleep\_\-time} = TIMEVAL\_\-MAX}}
nico@207: \label{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: Definition at line 32 of file timer.c.



