207
|
1 |
\hypertarget{timers__win32_8cpp}{
|
|
2 |
\section{/home/epimerde/documents/tc11/Can\-Festival-3/drivers/win32/timers\_\-win32.cpp File Reference}
|
|
3 |
\label{timers__win32_8cpp}\index{/home/epimerde/documents/tc11/CanFestival-3/drivers/win32/timers_win32.cpp@{/home/epimerde/documents/tc11/CanFestival-3/drivers/win32/timers\_\-win32.cpp}}
|
|
4 |
}
|
|
5 |
{\tt \#include $<$windows.h$>$}\par
|
|
6 |
{\tt \#include $<$stdlib.h$>$}\par
|
|
7 |
{\tt \#include \char`\"{}applicfg.h\char`\"{}}\par
|
|
8 |
{\tt \#include \char`\"{}can\_\-driver.h\char`\"{}}\par
|
|
9 |
{\tt \#include \char`\"{}timer.h\char`\"{}}\par
|
|
10 |
{\tt \#include \char`\"{}timers\_\-driver.h\char`\"{}}\par
|
|
11 |
\subsection*{Data Structures}
|
|
12 |
\begin{CompactItemize}
|
|
13 |
\item
|
|
14 |
class \hyperlink{classccritical__section}{ccritical\_\-section}
|
|
15 |
\item
|
|
16 |
class \hyperlink{classclass__timers}{class\_\-timers}
|
|
17 |
\end{CompactItemize}
|
|
18 |
\subsection*{Functions}
|
|
19 |
\begin{CompactItemize}
|
|
20 |
\item
|
|
21 |
void \hyperlink{timers__win32_8cpp_d7fee43b8a44cf8b7036853593044037}{Enter\-Mutex} (void)
|
|
22 |
\item
|
|
23 |
void \hyperlink{timers__win32_8cpp_73d9a4eb941fb20cf6b597840510394b}{Leave\-Mutex} (void)
|
|
24 |
\item
|
|
25 |
void \hyperlink{timers__win32_8cpp_998a8436651e6990d3922ebdc3eebf8b}{Create\-Receive\-Task} (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} fd0, TASK\_\-HANDLE $\ast$Thread, void $\ast$Receive\-Loop\-Ptr)
|
|
26 |
\item
|
|
27 |
void \hyperlink{timers__win32_8cpp_4b2486891ee01e06e2deead4cf963727}{Wait\-Receive\-Task\-End} (TASK\_\-HANDLE Thread)
|
|
28 |
\item
|
|
29 |
void \hyperlink{timers__win32_8cpp_c9e1731843825eb55e7a94894e6a8ec5}{Start\-Timer\-Loop} (\hyperlink{timer_8h_f7d102e060339d3730ceae5fea03691b}{Timer\-Callback\_\-t} init\_\-callback)
|
|
30 |
\item
|
|
31 |
void \hyperlink{timers__win32_8cpp_8758484f3cebb0cd44bb247c3f23d5e3}{Stop\-Timer\-Loop} (void)
|
|
32 |
\item
|
|
33 |
void \hyperlink{timers__win32_8cpp_b8d05dee70f04b5c5190ab00e84da106}{set\-Timer} (TIMEVAL value)
|
|
34 |
\item
|
|
35 |
TIMEVAL \hyperlink{timers__win32_8cpp_4dccc204d52176bd547ab34d6858f5ba}{get\-Elapsed\-Time} (void)
|
|
36 |
\end{CompactItemize}
|
|
37 |
|
|
38 |
|
|
39 |
\subsection{Function Documentation}
|
|
40 |
\hypertarget{timers__win32_8cpp_998a8436651e6990d3922ebdc3eebf8b}{
|
|
41 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!CreateReceiveTask@{CreateReceiveTask}}
|
|
42 |
\index{CreateReceiveTask@{CreateReceiveTask}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
43 |
\subsubsection[CreateReceiveTask]{\setlength{\rightskip}{0pt plus 5cm}void Create\-Receive\-Task (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} {\em fd0}, TASK\_\-HANDLE $\ast$ {\em Thread}, void $\ast$ {\em Receive\-Loop\-Ptr})}}
|
|
44 |
\label{timers__win32_8cpp_998a8436651e6990d3922ebdc3eebf8b}
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
Definition at line 78 of file timers\_\-win32.cpp.\hypertarget{timers__win32_8cpp_d7fee43b8a44cf8b7036853593044037}{
|
|
50 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!EnterMutex@{EnterMutex}}
|
|
51 |
\index{EnterMutex@{EnterMutex}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
52 |
\subsubsection[EnterMutex]{\setlength{\rightskip}{0pt plus 5cm}void Enter\-Mutex (void)}}
|
|
53 |
\label{timers__win32_8cpp_d7fee43b8a44cf8b7036853593044037}
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
Definition at line 64 of file timers\_\-win32.cpp.
|
|
59 |
|
|
60 |
References Can\-Festival\_\-mutex, and ccritical\_\-section::enter().\hypertarget{timers__win32_8cpp_4dccc204d52176bd547ab34d6858f5ba}{
|
|
61 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!getElapsedTime@{getElapsedTime}}
|
|
62 |
\index{getElapsedTime@{getElapsedTime}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
63 |
\subsubsection[getElapsedTime]{\setlength{\rightskip}{0pt plus 5cm}TIMEVAL get\-Elapsed\-Time (void)}}
|
|
64 |
\label{timers__win32_8cpp_4dccc204d52176bd547ab34d6858f5ba}
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
Definition at line 238 of file timers\_\-win32.cpp.
|
|
70 |
|
|
71 |
References class\_\-timers::get\_\-elapsed\_\-time(), IO\_\-PORTS\_\-16, and TC4H.\hypertarget{timers__win32_8cpp_73d9a4eb941fb20cf6b597840510394b}{
|
|
72 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!LeaveMutex@{LeaveMutex}}
|
|
73 |
\index{LeaveMutex@{LeaveMutex}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
74 |
\subsubsection[LeaveMutex]{\setlength{\rightskip}{0pt plus 5cm}void Leave\-Mutex (void)}}
|
|
75 |
\label{timers__win32_8cpp_73d9a4eb941fb20cf6b597840510394b}
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
Definition at line 69 of file timers\_\-win32.cpp.
|
|
81 |
|
|
82 |
References Can\-Festival\_\-mutex, and ccritical\_\-section::leave().\hypertarget{timers__win32_8cpp_b8d05dee70f04b5c5190ab00e84da106}{
|
|
83 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!setTimer@{setTimer}}
|
|
84 |
\index{setTimer@{setTimer}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
85 |
\subsubsection[setTimer]{\setlength{\rightskip}{0pt plus 5cm}void set\-Timer (TIMEVAL {\em value})}}
|
|
86 |
\label{timers__win32_8cpp_b8d05dee70f04b5c5190ab00e84da106}
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
Definition at line 233 of file timers\_\-win32.cpp.
|
|
92 |
|
|
93 |
References maxval, class\_\-timers::set\_\-timer(), and timer.\hypertarget{timers__win32_8cpp_c9e1731843825eb55e7a94894e6a8ec5}{
|
|
94 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!StartTimerLoop@{StartTimerLoop}}
|
|
95 |
\index{StartTimerLoop@{StartTimerLoop}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
96 |
\subsubsection[StartTimerLoop]{\setlength{\rightskip}{0pt plus 5cm}void Start\-Timer\-Loop (\hyperlink{timer_8h_f7d102e060339d3730ceae5fea03691b}{Timer\-Callback\_\-t} {\em init\_\-callback})}}
|
|
97 |
\label{timers__win32_8cpp_c9e1731843825eb55e7a94894e6a8ec5}
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
Definition at line 219 of file timers\_\-win32.cpp.
|
|
103 |
|
|
104 |
References Enter\-Mutex(), init\-Timer(), Leave\-Mutex(), class\_\-timers::resume\_\-timer\_\-thread(), Set\-Alarm(), class\_\-timers::start\_\-timer\_\-thread(), and TIMEVAL.\hypertarget{timers__win32_8cpp_8758484f3cebb0cd44bb247c3f23d5e3}{
|
|
105 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!StopTimerLoop@{StopTimerLoop}}
|
|
106 |
\index{StopTimerLoop@{StopTimerLoop}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
107 |
\subsubsection[StopTimerLoop]{\setlength{\rightskip}{0pt plus 5cm}void Stop\-Timer\-Loop (void)}}
|
|
108 |
\label{timers__win32_8cpp_8758484f3cebb0cd44bb247c3f23d5e3}
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
Definition at line 228 of file timers\_\-win32.cpp.
|
|
114 |
|
|
115 |
References Enter\-Mutex(), Leave\-Mutex(), class\_\-timers::stop\_\-timer\_\-thread(), and timer.\hypertarget{timers__win32_8cpp_4b2486891ee01e06e2deead4cf963727}{
|
|
116 |
\index{timers_win32.cpp@{timers\_\-win32.cpp}!WaitReceiveTaskEnd@{WaitReceiveTaskEnd}}
|
|
117 |
\index{WaitReceiveTaskEnd@{WaitReceiveTaskEnd}!timers_win32.cpp@{timers\_\-win32.cpp}}
|
|
118 |
\subsubsection[WaitReceiveTaskEnd]{\setlength{\rightskip}{0pt plus 5cm}void Wait\-Receive\-Task\-End (TASK\_\-HANDLE {\em Thread})}}
|
|
119 |
\label{timers__win32_8cpp_4b2486891ee01e06e2deead4cf963727}
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
Definition at line 84 of file timers\_\-win32.cpp. |