207
|
1 |
\section{examples/Test\-Master\-Slave/Test\-Master\-Slave.c File Reference}
|
|
2 |
\label{TestMasterSlave_8c}\index{examples/TestMasterSlave/TestMasterSlave.c@{examples/TestMasterSlave/TestMasterSlave.c}}
|
|
3 |
{\tt \#include $<$stdio.h$>$}\par
|
|
4 |
{\tt \#include $<$string.h$>$}\par
|
|
5 |
{\tt \#include $<$unistd.h$>$}\par
|
|
6 |
{\tt \#include $<$stdlib.h$>$}\par
|
|
7 |
{\tt \#include $<$signal.h$>$}\par
|
|
8 |
{\tt \#include \char`\"{}canfestival.h\char`\"{}}\par
|
|
9 |
{\tt \#include \char`\"{}Master.h\char`\"{}}\par
|
|
10 |
{\tt \#include \char`\"{}Slave.h\char`\"{}}\par
|
|
11 |
{\tt \#include \char`\"{}Test\-Master\-Slave.h\char`\"{}}\par
|
|
12 |
\subsection*{Functions}
|
|
13 |
\begin{CompactItemize}
|
|
14 |
\item
|
|
15 |
UNS32 {\bf On\-Master\-Map1Update} ({\bf CO\_\-Data} $\ast$d, const {\bf indextable} $\ast$unsused\_\-indextable, UNS8 unsused\_\-b\-Subindex)
|
|
16 |
\item
|
|
17 |
void {\bf catch\_\-signal} (int sig)
|
|
18 |
\item
|
|
19 |
void {\bf help} ()
|
|
20 |
\item
|
|
21 |
void {\bf Init\-Nodes} ({\bf CO\_\-Data} $\ast$d, UNS32 id)
|
|
22 |
\item
|
|
23 |
int {\bf main} (int argc, char $\ast$$\ast$argv)
|
|
24 |
\end{CompactItemize}
|
|
25 |
\subsection*{Variables}
|
|
26 |
\begin{CompactItemize}
|
|
27 |
\item
|
|
28 |
{\bf s\_\-BOARD} {\bf Slave\-Board} = \{\char`\"{}0\char`\"{}, \char`\"{}125K\char`\"{}\}
|
|
29 |
\item
|
|
30 |
{\bf s\_\-BOARD} {\bf Master\-Board} = \{\char`\"{}1\char`\"{}, \char`\"{}125K\char`\"{}\}
|
|
31 |
\end{CompactItemize}
|
|
32 |
|
|
33 |
|
|
34 |
\subsection{Function Documentation}
|
|
35 |
\index{TestMasterSlave.c@{Test\-Master\-Slave.c}!catch_signal@{catch\_\-signal}}
|
|
36 |
\index{catch_signal@{catch\_\-signal}!TestMasterSlave.c@{Test\-Master\-Slave.c}}
|
|
37 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void catch\_\-signal (int {\em sig})}\label{TestMasterSlave_8c_f2dc378d0481adcc49b61efb98493a9b}
|
|
38 |
|
|
39 |
|
|
40 |
\index{TestMasterSlave.c@{Test\-Master\-Slave.c}!help@{help}}
|
|
41 |
\index{help@{help}!TestMasterSlave.c@{Test\-Master\-Slave.c}}
|
|
42 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void help ()}\label{TestMasterSlave_8c_97ee70a8770dc30d06c744b24eb2fcfc}
|
|
43 |
|
|
44 |
|
|
45 |
\index{TestMasterSlave.c@{Test\-Master\-Slave.c}!InitNodes@{InitNodes}}
|
|
46 |
\index{InitNodes@{InitNodes}!TestMasterSlave.c@{Test\-Master\-Slave.c}}
|
|
47 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Init\-Nodes ({\bf CO\_\-Data} $\ast$ {\em d}, UNS32 {\em id})}\label{TestMasterSlave_8c_8a51032f7610fe37c131376e5a392fd5}
|
|
48 |
|
|
49 |
|
|
50 |
\index{TestMasterSlave.c@{Test\-Master\-Slave.c}!main@{main}}
|
|
51 |
\index{main@{main}!TestMasterSlave.c@{Test\-Master\-Slave.c}}
|
|
52 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$$\ast$ {\em argv})}\label{TestMasterSlave_8c_3c04138a5bfe5d72780bb7e82a18e627}
|
|
53 |
|
|
54 |
|
|
55 |
\index{TestMasterSlave.c@{Test\-Master\-Slave.c}!OnMasterMap1Update@{OnMasterMap1Update}}
|
|
56 |
\index{OnMasterMap1Update@{OnMasterMap1Update}!TestMasterSlave.c@{Test\-Master\-Slave.c}}
|
|
57 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}UNS32 On\-Master\-Map1Update ({\bf CO\_\-Data} $\ast$ {\em d}, const {\bf indextable} $\ast$ {\em unsused\_\-indextable}, UNS8 {\em unsused\_\-b\-Subindex})}\label{TestMasterSlave_8c_bd99872d05af9bf63e28d6f010c1b174}
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
\subsection{Variable Documentation}
|
|
63 |
\index{TestMasterSlave.c@{Test\-Master\-Slave.c}!MasterBoard@{MasterBoard}}
|
|
64 |
\index{MasterBoard@{MasterBoard}!TestMasterSlave.c@{Test\-Master\-Slave.c}}
|
|
65 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf s\_\-BOARD} {\bf Master\-Board} = \{\char`\"{}1\char`\"{}, \char`\"{}125K\char`\"{}\}}\label{TestMasterSlave_8c_460b5e3b15bb47df23119998ea0fbd31}
|
|
66 |
|
|
67 |
|
|
68 |
\index{TestMasterSlave.c@{Test\-Master\-Slave.c}!SlaveBoard@{SlaveBoard}}
|
|
69 |
\index{SlaveBoard@{SlaveBoard}!TestMasterSlave.c@{Test\-Master\-Slave.c}}
|
|
70 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf s\_\-BOARD} {\bf Slave\-Board} = \{\char`\"{}0\char`\"{}, \char`\"{}125K\char`\"{}\}}\label{TestMasterSlave_8c_57b2a6d78660d0ee6ca351fb40ffa859}
|
|
71 |
|
|
72 |
|