207
|
1 |
\section{examples/gene\_\-SYNC\_\-HCS12/appli.c File Reference}
|
|
2 |
\label{appli_8c}\index{examples/gene_SYNC_HCS12/appli.c@{examples/gene\_\-SYNC\_\-HCS12/appli.c}}
|
|
3 |
{\tt \#include $<$stddef.h$>$}\par
|
|
4 |
{\tt \#include $<$asm-m68hc12/portsaccess.h$>$}\par
|
|
5 |
{\tt \#include $<$asm-m68hc12/ports\_\-def.h$>$}\par
|
|
6 |
{\tt \#include $<$asm-m68hc12/ports.h$>$}\par
|
|
7 |
{\tt \#include $<$interrupt.h$>$}\par
|
|
8 |
{\tt \#include \char`\"{}../include/data.h\char`\"{}}\par
|
|
9 |
{\tt \#include $<$applicfg.h$>$}\par
|
|
10 |
{\tt \#include \char`\"{}../include/hcs12/candriver.h\char`\"{}}\par
|
|
11 |
{\tt \#include \char`\"{}../include/hcs12/can\-Open\-Driver.h\char`\"{}}\par
|
|
12 |
{\tt \#include \char`\"{}../include/def.h\char`\"{}}\par
|
|
13 |
{\tt \#include \char`\"{}../include/can.h\char`\"{}}\par
|
|
14 |
{\tt \#include \char`\"{}../include/objdictdef.h\char`\"{}}\par
|
|
15 |
{\tt \#include \char`\"{}../include/objacces.h\char`\"{}}\par
|
|
16 |
{\tt \#include \char`\"{}../include/sdo.h\char`\"{}}\par
|
|
17 |
{\tt \#include \char`\"{}../include/pdo.h\char`\"{}}\par
|
|
18 |
{\tt \#include \char`\"{}../include/timer.h\char`\"{}}\par
|
|
19 |
{\tt \#include \char`\"{}../include/lifegrd.h\char`\"{}}\par
|
|
20 |
{\tt \#include \char`\"{}../include/sync.h\char`\"{}}\par
|
|
21 |
{\tt \#include \char`\"{}../include/nmt\-Slave.h\char`\"{}}\par
|
|
22 |
{\tt \#include \char`\"{}objdict.h\char`\"{}}\par
|
|
23 |
\subsection*{Defines}
|
|
24 |
\begin{CompactItemize}
|
|
25 |
\item
|
|
26 |
\#define {\bf DEBUG\_\-WAR\_\-CONSOLE\_\-ON}
|
|
27 |
\item
|
|
28 |
\#define {\bf DEBUG\_\-ERR\_\-CONSOLE\_\-ON}
|
|
29 |
\end{CompactItemize}
|
|
30 |
\subsection*{Enumerations}
|
|
31 |
\begin{CompactItemize}
|
|
32 |
\item
|
|
33 |
enum {\bf E\_\-Can\-Baudrate} \{ {\bf CAN\_\-BAUDRATE\_\-250K},
|
|
34 |
{\bf CAN\_\-BAUDRATE\_\-500K},
|
|
35 |
{\bf CAN\_\-BAUDRATE\_\-1M}
|
|
36 |
\}
|
|
37 |
\end{CompactItemize}
|
|
38 |
\subsection*{Functions}
|
|
39 |
\begin{CompactItemize}
|
|
40 |
\item
|
|
41 |
void {\bf init\-Canopencapteur} (void)
|
|
42 |
\item
|
|
43 |
void {\bf init\-Sensor} (void)
|
|
44 |
\item
|
|
45 |
void {\bf init\-Port\-B} (void)
|
|
46 |
\item
|
|
47 |
void {\bf init\-Port\-H} (void)
|
|
48 |
\item
|
|
49 |
void {\bf gene\_\-SYNC\_\-heartbeat\-Error} (UNS8 heartbeat\-ID)
|
|
50 |
\item
|
|
51 |
void {\bf gene\_\-SYNC\_\-initialisation} ()
|
|
52 |
\item
|
|
53 |
void {\bf gene\_\-SYNC\_\-pre\-Operational} ()
|
|
54 |
\item
|
|
55 |
void {\bf gene\_\-SYNC\_\-operational} ()
|
|
56 |
\item
|
|
57 |
void {\bf gene\_\-SYNC\_\-stopped} ()
|
|
58 |
\item
|
|
59 |
UNS8 {\bf main} (void)
|
|
60 |
\end{CompactItemize}
|
|
61 |
\subsection*{Variables}
|
|
62 |
\begin{CompactItemize}
|
|
63 |
\item
|
|
64 |
const {\bf can\-Bus\-Time} {\bf CAN\_\-Baudrates} [$\,$]
|
|
65 |
\end{CompactItemize}
|
|
66 |
|
|
67 |
|
|
68 |
\subsection{Define Documentation}
|
|
69 |
\index{appli.c@{appli.c}!DEBUG_ERR_CONSOLE_ON@{DEBUG\_\-ERR\_\-CONSOLE\_\-ON}}
|
|
70 |
\index{DEBUG_ERR_CONSOLE_ON@{DEBUG\_\-ERR\_\-CONSOLE\_\-ON}!appli.c@{appli.c}}
|
|
71 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DEBUG\_\-ERR\_\-CONSOLE\_\-ON}\label{appli_8c_bb416887a32f7e4333e095356774f07f}
|
|
72 |
|
|
73 |
|
|
74 |
\index{appli.c@{appli.c}!DEBUG_WAR_CONSOLE_ON@{DEBUG\_\-WAR\_\-CONSOLE\_\-ON}}
|
|
75 |
\index{DEBUG_WAR_CONSOLE_ON@{DEBUG\_\-WAR\_\-CONSOLE\_\-ON}!appli.c@{appli.c}}
|
|
76 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DEBUG\_\-WAR\_\-CONSOLE\_\-ON}\label{appli_8c_4f52c00ab0d519e2965ebaa533975904}
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
\subsection{Enumeration Type Documentation}
|
|
82 |
\index{appli.c@{appli.c}!E_CanBaudrate@{E\_\-CanBaudrate}}
|
|
83 |
\index{E_CanBaudrate@{E\_\-CanBaudrate}!appli.c@{appli.c}}
|
|
84 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf E\_\-Can\-Baudrate}}\label{appli_8c_a5385c49943465978358d459b4fc430f}
|
|
85 |
|
|
86 |
|
|
87 |
\begin{Desc}
|
|
88 |
\item[Enumerator: ]\par
|
|
89 |
\begin{description}
|
|
90 |
\index{CAN_BAUDRATE_250K@{CAN\_\-BAUDRATE\_\-250K}!appli.c@{appli.c}}\index{appli.c@{appli.c}!CAN_BAUDRATE_250K@{CAN\_\-BAUDRATE\_\-250K}}\item[{\em
|
|
91 |
CAN\_\-BAUDRATE\_\-250K\label{appli_8c_a5385c49943465978358d459b4fc430f8d90575842d76640697deb1398f7023c}
|
|
92 |
}]\index{CAN_BAUDRATE_500K@{CAN\_\-BAUDRATE\_\-500K}!appli.c@{appli.c}}\index{appli.c@{appli.c}!CAN_BAUDRATE_500K@{CAN\_\-BAUDRATE\_\-500K}}\item[{\em
|
|
93 |
CAN\_\-BAUDRATE\_\-500K\label{appli_8c_a5385c49943465978358d459b4fc430f07239165beed5e840aed12e7f46af89b}
|
|
94 |
}]\index{CAN_BAUDRATE_1M@{CAN\_\-BAUDRATE\_\-1M}!appli.c@{appli.c}}\index{appli.c@{appli.c}!CAN_BAUDRATE_1M@{CAN\_\-BAUDRATE\_\-1M}}\item[{\em
|
|
95 |
CAN\_\-BAUDRATE\_\-1M\label{appli_8c_a5385c49943465978358d459b4fc430ff84d248d0fb707925b35c9ec18624809}
|
|
96 |
}]\end{description}
|
|
97 |
\end{Desc}
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
\subsection{Function Documentation}
|
|
102 |
\index{appli.c@{appli.c}!gene_SYNC_heartbeatError@{gene\_\-SYNC\_\-heartbeatError}}
|
|
103 |
\index{gene_SYNC_heartbeatError@{gene\_\-SYNC\_\-heartbeatError}!appli.c@{appli.c}}
|
|
104 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-heartbeat\-Error (UNS8 {\em heartbeat\-ID})}\label{appli_8c_07f58b5c2d6a07142f3e6e695798646b}
|
|
105 |
|
|
106 |
|
|
107 |
\index{appli.c@{appli.c}!gene_SYNC_initialisation@{gene\_\-SYNC\_\-initialisation}}
|
|
108 |
\index{gene_SYNC_initialisation@{gene\_\-SYNC\_\-initialisation}!appli.c@{appli.c}}
|
|
109 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-initialisation (void)}\label{appli_8c_5249682c125c7e4ad9583bf63c20b5fa}
|
|
110 |
|
|
111 |
|
|
112 |
\index{appli.c@{appli.c}!gene_SYNC_operational@{gene\_\-SYNC\_\-operational}}
|
|
113 |
\index{gene_SYNC_operational@{gene\_\-SYNC\_\-operational}!appli.c@{appli.c}}
|
|
114 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-operational (void)}\label{appli_8c_688e52d5ec8da35ad5c61b4337df495d}
|
|
115 |
|
|
116 |
|
|
117 |
\index{appli.c@{appli.c}!gene_SYNC_preOperational@{gene\_\-SYNC\_\-preOperational}}
|
|
118 |
\index{gene_SYNC_preOperational@{gene\_\-SYNC\_\-preOperational}!appli.c@{appli.c}}
|
|
119 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-pre\-Operational (void)}\label{appli_8c_ccd49c1b2614c38aeac93733ede6cd91}
|
|
120 |
|
|
121 |
|
|
122 |
\index{appli.c@{appli.c}!gene_SYNC_stopped@{gene\_\-SYNC\_\-stopped}}
|
|
123 |
\index{gene_SYNC_stopped@{gene\_\-SYNC\_\-stopped}!appli.c@{appli.c}}
|
|
124 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-stopped (void)}\label{appli_8c_00e6a6d0f2186f329263023a7f1de155}
|
|
125 |
|
|
126 |
|
|
127 |
\index{appli.c@{appli.c}!initCanopencapteur@{initCanopencapteur}}
|
|
128 |
\index{initCanopencapteur@{initCanopencapteur}!appli.c@{appli.c}}
|
|
129 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Canopencapteur (void)}\label{appli_8c_8d772d897083e5a5c5f41878cfea50b8}
|
|
130 |
|
|
131 |
|
|
132 |
\index{appli.c@{appli.c}!initPortB@{initPortB}}
|
|
133 |
\index{initPortB@{initPortB}!appli.c@{appli.c}}
|
|
134 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Port\-B (void)}\label{appli_8c_c17a18fa3b7965bf6e850effaba7179a}
|
|
135 |
|
|
136 |
|
|
137 |
\index{appli.c@{appli.c}!initPortH@{initPortH}}
|
|
138 |
\index{initPortH@{initPortH}!appli.c@{appli.c}}
|
|
139 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Port\-H (void)}\label{appli_8c_b7c33a91e5101b8d7371482fcfd6111d}
|
|
140 |
|
|
141 |
|
|
142 |
\index{appli.c@{appli.c}!initSensor@{initSensor}}
|
|
143 |
\index{initSensor@{initSensor}!appli.c@{appli.c}}
|
|
144 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Sensor (void)}\label{appli_8c_ff8c2bab7ede63d3529f62b4fa3aca8c}
|
|
145 |
|
|
146 |
|
|
147 |
\index{appli.c@{appli.c}!main@{main}}
|
|
148 |
\index{main@{main}!appli.c@{appli.c}}
|
|
149 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}UNS8 main (void)}\label{appli_8c_ef83014be811ae964a5ef7f0af7b46a2}
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
|
154 |
\subsection{Variable Documentation}
|
|
155 |
\index{appli.c@{appli.c}!CAN_Baudrates@{CAN\_\-Baudrates}}
|
|
156 |
\index{CAN_Baudrates@{CAN\_\-Baudrates}!appli.c@{appli.c}}
|
|
157 |
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf can\-Bus\-Time} {\bf CAN\_\-Baudrates}[$\,$]}\label{appli_8c_43fd1d8fc333eddd19554acb6cc2baf8}
|
|
158 |
|
|
159 |
|