207
|
1 |
\section{examples/Test\-Master\-Slave/Master.c File Reference}
|
|
2 |
\label{Master_8c}\index{examples/TestMasterSlave/Master.c@{examples/TestMasterSlave/Master.c}}
|
|
3 |
{\tt \#include \char`\"{}Master.h\char`\"{}}\par
|
|
4 |
{\tt \#include \char`\"{}Slave.h\char`\"{}}\par
|
|
5 |
{\tt \#include \char`\"{}Test\-Master\-Slave.h\char`\"{}}\par
|
|
6 |
\subsection*{Functions}
|
|
7 |
\begin{CompactItemize}
|
|
8 |
\item
|
|
9 |
void {\bf Test\-Master\_\-heartbeat\-Error} (UNS8 heartbeat\-ID)
|
|
10 |
\item
|
|
11 |
void {\bf Test\-Master\_\-initialisation} ()
|
|
12 |
\item
|
|
13 |
static void {\bf Configure\-Slave\-Node} ({\bf CO\_\-Data} $\ast$d, UNS8 node\-Id)
|
|
14 |
\item
|
|
15 |
static void {\bf Check\-SDOAnd\-Continue} ({\bf CO\_\-Data} $\ast$d, UNS8 node\-Id)
|
|
16 |
\item
|
|
17 |
void {\bf Test\-Master\_\-pre\-Operational} ()
|
|
18 |
\item
|
|
19 |
void {\bf Test\-Master\_\-operational} ()
|
|
20 |
\item
|
|
21 |
void {\bf Test\-Master\_\-stopped} ()
|
|
22 |
\item
|
|
23 |
void {\bf Test\-Master\_\-post\_\-sync} ()
|
|
24 |
\item
|
|
25 |
void {\bf Test\-Master\_\-post\_\-TPDO} ()
|
|
26 |
\end{CompactItemize}
|
|
27 |
\subsection*{Variables}
|
|
28 |
\begin{CompactItemize}
|
|
29 |
\item
|
|
30 |
static {\bf init\_\-step} = 0
|
|
31 |
\item
|
|
32 |
char {\bf query\_\-result} = 0
|
|
33 |
\item
|
|
34 |
char {\bf waiting\_\-answer} = 0
|
|
35 |
\end{CompactItemize}
|
|
36 |
|
|
37 |
|
|
38 |
\subsection{Function Documentation}
|
|
39 |
\index{Master.c@{Master.c}!CheckSDOAndContinue@{CheckSDOAndContinue}}
|
|
40 |
\index{CheckSDOAndContinue@{CheckSDOAndContinue}!Master.c@{Master.c}}
|
|
41 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void Check\-SDOAnd\-Continue ({\bf CO\_\-Data} $\ast$ {\em d}, UNS8 {\em node\-Id})\hspace{0.3cm}{\tt [static]}}\label{Master_8c_030d780d48bec13bd56374f0c4be26b6}
|
|
42 |
|
|
43 |
|
|
44 |
\index{Master.c@{Master.c}!ConfigureSlaveNode@{ConfigureSlaveNode}}
|
|
45 |
\index{ConfigureSlaveNode@{ConfigureSlaveNode}!Master.c@{Master.c}}
|
|
46 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void Configure\-Slave\-Node ({\bf CO\_\-Data} $\ast$ {\em d}, UNS8 {\em node\-Id})\hspace{0.3cm}{\tt [static]}}\label{Master_8c_89903ebdfe78bc9cc97e0d142da9b820}
|
|
47 |
|
|
48 |
|
|
49 |
\index{Master.c@{Master.c}!TestMaster_heartbeatError@{TestMaster\_\-heartbeatError}}
|
|
50 |
\index{TestMaster_heartbeatError@{TestMaster\_\-heartbeatError}!Master.c@{Master.c}}
|
|
51 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Test\-Master\_\-heartbeat\-Error (UNS8 {\em heartbeat\-ID})}\label{Master_8c_47eb45e75b4db150fb465fcf171ef4b4}
|
|
52 |
|
|
53 |
|
|
54 |
\index{Master.c@{Master.c}!TestMaster_initialisation@{TestMaster\_\-initialisation}}
|
|
55 |
\index{TestMaster_initialisation@{TestMaster\_\-initialisation}!Master.c@{Master.c}}
|
|
56 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Test\-Master\_\-initialisation (void)}\label{Master_8c_e08dfb379eebaa62524fac5bba2196d5}
|
|
57 |
|
|
58 |
|
|
59 |
\index{Master.c@{Master.c}!TestMaster_operational@{TestMaster\_\-operational}}
|
|
60 |
\index{TestMaster_operational@{TestMaster\_\-operational}!Master.c@{Master.c}}
|
|
61 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Test\-Master\_\-operational (void)}\label{Master_8c_81c297f2b4b9676e906286bf46541fc1}
|
|
62 |
|
|
63 |
|
|
64 |
\index{Master.c@{Master.c}!TestMaster_post_sync@{TestMaster\_\-post\_\-sync}}
|
|
65 |
\index{TestMaster_post_sync@{TestMaster\_\-post\_\-sync}!Master.c@{Master.c}}
|
|
66 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Test\-Master\_\-post\_\-sync (void)}\label{Master_8c_9a8f72cab7f649481ca84ab2222dd179}
|
|
67 |
|
|
68 |
|
|
69 |
\index{Master.c@{Master.c}!TestMaster_post_TPDO@{TestMaster\_\-post\_\-TPDO}}
|
|
70 |
\index{TestMaster_post_TPDO@{TestMaster\_\-post\_\-TPDO}!Master.c@{Master.c}}
|
|
71 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Test\-Master\_\-post\_\-TPDO (void)}\label{Master_8c_5e466aa03eae00c269cf20359a7ee074}
|
|
72 |
|
|
73 |
|
|
74 |
\index{Master.c@{Master.c}!TestMaster_preOperational@{TestMaster\_\-preOperational}}
|
|
75 |
\index{TestMaster_preOperational@{TestMaster\_\-preOperational}!Master.c@{Master.c}}
|
|
76 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Test\-Master\_\-pre\-Operational (void)}\label{Master_8c_8fe2bae5bb407a3a71ee5fa5ea5d617f}
|
|
77 |
|
|
78 |
|
|
79 |
\index{Master.c@{Master.c}!TestMaster_stopped@{TestMaster\_\-stopped}}
|
|
80 |
\index{TestMaster_stopped@{TestMaster\_\-stopped}!Master.c@{Master.c}}
|
|
81 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Test\-Master\_\-stopped (void)}\label{Master_8c_897d573cafc13ac80abbc207c0ee41b0}
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
\subsection{Variable Documentation}
|
|
87 |
\index{Master.c@{Master.c}!init_step@{init\_\-step}}
|
|
88 |
\index{init_step@{init\_\-step}!Master.c@{Master.c}}
|
|
89 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf init\_\-step} = 0\hspace{0.3cm}{\tt [static]}}\label{Master_8c_ef9c66a2e9f5ef9f6475282320a1ebe9}
|
|
90 |
|
|
91 |
|
|
92 |
\index{Master.c@{Master.c}!query_result@{query\_\-result}}
|
|
93 |
\index{query_result@{query\_\-result}!Master.c@{Master.c}}
|
|
94 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char {\bf query\_\-result} = 0}\label{Master_8c_14755b0ad32c861583eb69c946f3d9aa}
|
|
95 |
|
|
96 |
|
|
97 |
\index{Master.c@{Master.c}!waiting_answer@{waiting\_\-answer}}
|
|
98 |
\index{waiting_answer@{waiting\_\-answer}!Master.c@{Master.c}}
|
|
99 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char {\bf waiting\_\-answer} = 0}\label{Master_8c_5ac78804c899f5179534e6f75346f23c}
|
|
100 |
|
|
101 |
|