207
|
1 |
\hypertarget{can__virtual_8c}{
|
|
2 |
\section{/home/epimerde/documents/tc11/Can\-Festival-3/drivers/can\_\-virtual/can\_\-virtual.c File Reference}
|
|
3 |
\label{can__virtual_8c}\index{/home/epimerde/documents/tc11/CanFestival-3/drivers/can_virtual/can_virtual.c@{/home/epimerde/documents/tc11/CanFestival-3/drivers/can\_\-virtual/can\_\-virtual.c}}
|
|
4 |
}
|
|
5 |
{\tt \#include $<$stdio.h$>$}\par
|
|
6 |
{\tt \#include $<$unistd.h$>$}\par
|
|
7 |
{\tt \#include \char`\"{}can\_\-driver.h\char`\"{}}\par
|
|
8 |
{\tt \#include \char`\"{}def.h\char`\"{}}\par
|
|
9 |
\subsection*{Data Structures}
|
|
10 |
\begin{CompactItemize}
|
|
11 |
\item
|
|
12 |
struct \hyperlink{structCANPipe}{CANPipe}
|
|
13 |
\end{CompactItemize}
|
|
14 |
\subsection*{Defines}
|
|
15 |
\begin{CompactItemize}
|
|
16 |
\item
|
|
17 |
\#define \hyperlink{can__virtual_8c_b2f51095e950bbeab1ea15fac21e6146}{MAX\_\-NB\_\-CAN\_\-PIPES}~16
|
|
18 |
\item
|
|
19 |
\#define \hyperlink{can__virtual_8c_124cab530f97a752eb2e110c1b398c11}{My\-Case}(fc)~case fc: printf(\#fc);break;
|
|
20 |
\end{CompactItemize}
|
|
21 |
\subsection*{Functions}
|
|
22 |
\begin{CompactItemize}
|
|
23 |
\item
|
|
24 |
UNS8 \hyperlink{can__virtual_8c_6b3248e95acf2b08d1fd8b42610cc5a6}{can\-Receive\_\-driver} (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} fd0, \hyperlink{structMessage}{Message} $\ast$m)
|
|
25 |
\item
|
|
26 |
void \hyperlink{can__virtual_8c_6baa544d467cbabaf4bacadc74cc6523}{print\_\-message} (\hyperlink{structMessage}{Message} $\ast$m)
|
|
27 |
\item
|
|
28 |
UNS8 \hyperlink{can__virtual_8c_def95aee49efa13dd047d0b3b5507ad3}{can\-Send\_\-driver} (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} fd0, \hyperlink{structMessage}{Message} $\ast$m)
|
|
29 |
\item
|
|
30 |
\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} \hyperlink{can__virtual_8c_945403aba7f36acbd2e7160ade361bab}{can\-Open\_\-driver} (\hyperlink{structstruct__s__BOARD}{s\_\-BOARD} $\ast$board)
|
|
31 |
\item
|
|
32 |
int \hyperlink{can__virtual_8c_76e6a915d0e40a23b863198b2aaa5545}{can\-Close\_\-driver} (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} fd0)
|
|
33 |
\end{CompactItemize}
|
|
34 |
\subsection*{Variables}
|
|
35 |
\begin{CompactItemize}
|
|
36 |
\item
|
|
37 |
\hyperlink{structCANPipe}{CANPipe} \hyperlink{can__virtual_8c_53fd0e34e8d4d31bf381700a9d8ae72b}{canpipes} \mbox{[}MAX\_\-NB\_\-CAN\_\-PIPES\mbox{]} = \{\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\}
|
|
38 |
\end{CompactItemize}
|
|
39 |
|
|
40 |
|
|
41 |
\subsection{Define Documentation}
|
|
42 |
\hypertarget{can__virtual_8c_b2f51095e950bbeab1ea15fac21e6146}{
|
|
43 |
\index{can_virtual.c@{can\_\-virtual.c}!MAX_NB_CAN_PIPES@{MAX\_\-NB\_\-CAN\_\-PIPES}}
|
|
44 |
\index{MAX_NB_CAN_PIPES@{MAX\_\-NB\_\-CAN\_\-PIPES}!can_virtual.c@{can\_\-virtual.c}}
|
|
45 |
\subsubsection[MAX\_\-NB\_\-CAN\_\-PIPES]{\setlength{\rightskip}{0pt plus 5cm}\#define MAX\_\-NB\_\-CAN\_\-PIPES~16}}
|
|
46 |
\label{can__virtual_8c_b2f51095e950bbeab1ea15fac21e6146}
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
Definition at line 33 of file can\_\-virtual.c.\hypertarget{can__virtual_8c_124cab530f97a752eb2e110c1b398c11}{
|
|
52 |
\index{can_virtual.c@{can\_\-virtual.c}!MyCase@{MyCase}}
|
|
53 |
\index{MyCase@{MyCase}!can_virtual.c@{can\_\-virtual.c}}
|
|
54 |
\subsubsection[MyCase]{\setlength{\rightskip}{0pt plus 5cm}\#define My\-Case(fc)~case fc: printf(\#fc);break;}}
|
|
55 |
\label{can__virtual_8c_124cab530f97a752eb2e110c1b398c11}
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
Definition at line 52 of file can\_\-virtual.c.
|
|
61 |
|
|
62 |
\subsection{Function Documentation}
|
|
63 |
\hypertarget{can__virtual_8c_76e6a915d0e40a23b863198b2aaa5545}{
|
|
64 |
\index{can_virtual.c@{can\_\-virtual.c}!canClose_driver@{canClose\_\-driver}}
|
|
65 |
\index{canClose_driver@{canClose\_\-driver}!can_virtual.c@{can\_\-virtual.c}}
|
|
66 |
\subsubsection[canClose\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}int can\-Close\_\-driver (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} {\em fd0})}}
|
|
67 |
\label{can__virtual_8c_76e6a915d0e40a23b863198b2aaa5545}
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
Definition at line 142 of file can\_\-virtual.c.\hypertarget{can__virtual_8c_945403aba7f36acbd2e7160ade361bab}{
|
|
73 |
\index{can_virtual.c@{can\_\-virtual.c}!canOpen_driver@{canOpen\_\-driver}}
|
|
74 |
\index{canOpen_driver@{canOpen\_\-driver}!can_virtual.c@{can\_\-virtual.c}}
|
|
75 |
\subsubsection[canOpen\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} can\-Open\_\-driver (\hyperlink{structstruct__s__BOARD}{s\_\-BOARD} $\ast$ {\em board})}}
|
|
76 |
\label{can__virtual_8c_945403aba7f36acbd2e7160ade361bab}
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
Definition at line 121 of file can\_\-virtual.c.
|
|
82 |
|
|
83 |
References canpipes, MAX\_\-NB\_\-CAN\_\-PIPES, and CANPipe::used.\hypertarget{can__virtual_8c_6b3248e95acf2b08d1fd8b42610cc5a6}{
|
|
84 |
\index{can_virtual.c@{can\_\-virtual.c}!canReceive_driver@{canReceive\_\-driver}}
|
|
85 |
\index{canReceive_driver@{canReceive\_\-driver}!can_virtual.c@{can\_\-virtual.c}}
|
|
86 |
\subsubsection[canReceive\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}UNS8 can\-Receive\_\-driver (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} {\em fd0}, \hyperlink{structMessage}{Message} $\ast$ {\em m})}}
|
|
87 |
\label{can__virtual_8c_6b3248e95acf2b08d1fd8b42610cc5a6}
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
Definition at line 43 of file can\_\-virtual.c.\hypertarget{can__virtual_8c_def95aee49efa13dd047d0b3b5507ad3}{
|
|
93 |
\index{can_virtual.c@{can\_\-virtual.c}!canSend_driver@{canSend\_\-driver}}
|
|
94 |
\index{canSend_driver@{canSend\_\-driver}!can_virtual.c@{can\_\-virtual.c}}
|
|
95 |
\subsubsection[canSend\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}UNS8 can\-Send\_\-driver (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} {\em fd0}, \hyperlink{structMessage}{Message} $\ast$ {\em m})}}
|
|
96 |
\label{can__virtual_8c_def95aee49efa13dd047d0b3b5507ad3}
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
Definition at line 81 of file can\_\-virtual.c.
|
|
102 |
|
|
103 |
References canpipes, MAX\_\-NB\_\-CAN\_\-PIPES, and print\_\-message().\hypertarget{can__virtual_8c_6baa544d467cbabaf4bacadc74cc6523}{
|
|
104 |
\index{can_virtual.c@{can\_\-virtual.c}!print_message@{print\_\-message}}
|
|
105 |
\index{print_message@{print\_\-message}!can_virtual.c@{can\_\-virtual.c}}
|
|
106 |
\subsubsection[print\_\-message]{\setlength{\rightskip}{0pt plus 5cm}void print\_\-message (\hyperlink{structMessage}{Message} $\ast$ {\em m})}}
|
|
107 |
\label{can__virtual_8c_6baa544d467cbabaf4bacadc74cc6523}
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
Definition at line 53 of file can\_\-virtual.c.
|
|
113 |
|
|
114 |
References Message::cob\_\-id, Message::data, Message::len, My\-Case, NMT, NODE\_\-GUARD, PDO1rx, PDO1tx, PDO2rx, PDO2tx, PDO3rx, PDO3tx, PDO4rx, PDO4tx, Message::rtr, SDOrx, SDOtx, SYNC, TIME\_\-STAMP, and SHORT\_\-CAN::w.
|
|
115 |
|
|
116 |
\subsection{Variable Documentation}
|
|
117 |
\hypertarget{can__virtual_8c_53fd0e34e8d4d31bf381700a9d8ae72b}{
|
|
118 |
\index{can_virtual.c@{can\_\-virtual.c}!canpipes@{canpipes}}
|
|
119 |
\index{canpipes@{canpipes}!can_virtual.c@{can\_\-virtual.c}}
|
|
120 |
\subsubsection[canpipes]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{structCANPipe}{CANPipe} \hyperlink{can__virtual_8c_53fd0e34e8d4d31bf381700a9d8ae72b}{canpipes}\mbox{[}MAX\_\-NB\_\-CAN\_\-PIPES\mbox{]} = \{\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\{0,\},\}}}
|
|
121 |
\label{can__virtual_8c_53fd0e34e8d4d31bf381700a9d8ae72b}
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
Definition at line 40 of file can\_\-virtual.c. |