
nico@207: \section{examples/gene\_\-SYNC\_\-HCS12/appli.c File Reference}
nico@207: \label{appli_8c}\index{examples/gene_SYNC_HCS12/appli.c@{examples/gene\_\-SYNC\_\-HCS12/appli.c}}
nico@207: {\tt \#include $<$stddef.h$>$}\par
nico@207: {\tt \#include $<$asm-m68hc12/portsaccess.h$>$}\par
nico@207: {\tt \#include $<$asm-m68hc12/ports\_\-def.h$>$}\par
nico@207: {\tt \#include $<$asm-m68hc12/ports.h$>$}\par
nico@207: {\tt \#include $<$interrupt.h$>$}\par
nico@207: {\tt \#include \char`\"{}../include/data.h\char`\"{}}\par
nico@207: {\tt \#include $<$applicfg.h$>$}\par
nico@207: {\tt \#include \char`\"{}../include/hcs12/candriver.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/hcs12/can\-Open\-Driver.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/def.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/can.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/objdictdef.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/objacces.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/sdo.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/pdo.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/timer.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/lifegrd.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/sync.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}../include/nmt\-Slave.h\char`\"{}}\par
nico@207: {\tt \#include \char`\"{}objdict.h\char`\"{}}\par
nico@207: \subsection*{Defines}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: \#define {\bf DEBUG\_\-WAR\_\-CONSOLE\_\-ON}
nico@207: \item 
nico@207: \#define {\bf DEBUG\_\-ERR\_\-CONSOLE\_\-ON}
nico@207: \end{CompactItemize}
nico@207: \subsection*{Enumerations}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: enum {\bf E\_\-Can\-Baudrate} \{ {\bf CAN\_\-BAUDRATE\_\-250K}, 
nico@207: {\bf CAN\_\-BAUDRATE\_\-500K}, 
nico@207: {\bf CAN\_\-BAUDRATE\_\-1M}
nico@207:  \}
nico@207: \end{CompactItemize}
nico@207: \subsection*{Functions}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: void {\bf init\-Canopencapteur} (void)
nico@207: \item 
nico@207: void {\bf init\-Sensor} (void)
nico@207: \item 
nico@207: void {\bf init\-Port\-B} (void)
nico@207: \item 
nico@207: void {\bf init\-Port\-H} (void)
nico@207: \item 
nico@207: void {\bf gene\_\-SYNC\_\-heartbeat\-Error} (UNS8 heartbeat\-ID)
nico@207: \item 
nico@207: void {\bf gene\_\-SYNC\_\-initialisation} ()
nico@207: \item 
nico@207: void {\bf gene\_\-SYNC\_\-pre\-Operational} ()
nico@207: \item 
nico@207: void {\bf gene\_\-SYNC\_\-operational} ()
nico@207: \item 
nico@207: void {\bf gene\_\-SYNC\_\-stopped} ()
nico@207: \item 
nico@207: UNS8 {\bf main} (void)
nico@207: \end{CompactItemize}
nico@207: \subsection*{Variables}
nico@207: \begin{CompactItemize}
nico@207: \item 
nico@207: const {\bf can\-Bus\-Time} {\bf CAN\_\-Baudrates} [$\,$]
nico@207: \end{CompactItemize}
nico@207: 
nico@207: 
nico@207: \subsection{Define Documentation}
nico@207: \index{appli.c@{appli.c}!DEBUG_ERR_CONSOLE_ON@{DEBUG\_\-ERR\_\-CONSOLE\_\-ON}}
nico@207: \index{DEBUG_ERR_CONSOLE_ON@{DEBUG\_\-ERR\_\-CONSOLE\_\-ON}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DEBUG\_\-ERR\_\-CONSOLE\_\-ON}\label{appli_8c_bb416887a32f7e4333e095356774f07f}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!DEBUG_WAR_CONSOLE_ON@{DEBUG\_\-WAR\_\-CONSOLE\_\-ON}}
nico@207: \index{DEBUG_WAR_CONSOLE_ON@{DEBUG\_\-WAR\_\-CONSOLE\_\-ON}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DEBUG\_\-WAR\_\-CONSOLE\_\-ON}\label{appli_8c_4f52c00ab0d519e2965ebaa533975904}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: \subsection{Enumeration Type Documentation}
nico@207: \index{appli.c@{appli.c}!E_CanBaudrate@{E\_\-CanBaudrate}}
nico@207: \index{E_CanBaudrate@{E\_\-CanBaudrate}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf E\_\-Can\-Baudrate}}\label{appli_8c_a5385c49943465978358d459b4fc430f}
nico@207: 
nico@207: 
nico@207: \begin{Desc}
nico@207: \item[Enumerator: ]\par
nico@207: \begin{description}
nico@207: \index{CAN_BAUDRATE_250K@{CAN\_\-BAUDRATE\_\-250K}!appli.c@{appli.c}}\index{appli.c@{appli.c}!CAN_BAUDRATE_250K@{CAN\_\-BAUDRATE\_\-250K}}\item[{\em 
nico@207: CAN\_\-BAUDRATE\_\-250K\label{appli_8c_a5385c49943465978358d459b4fc430f8d90575842d76640697deb1398f7023c}
nico@207: }]\index{CAN_BAUDRATE_500K@{CAN\_\-BAUDRATE\_\-500K}!appli.c@{appli.c}}\index{appli.c@{appli.c}!CAN_BAUDRATE_500K@{CAN\_\-BAUDRATE\_\-500K}}\item[{\em 
nico@207: CAN\_\-BAUDRATE\_\-500K\label{appli_8c_a5385c49943465978358d459b4fc430f07239165beed5e840aed12e7f46af89b}
nico@207: }]\index{CAN_BAUDRATE_1M@{CAN\_\-BAUDRATE\_\-1M}!appli.c@{appli.c}}\index{appli.c@{appli.c}!CAN_BAUDRATE_1M@{CAN\_\-BAUDRATE\_\-1M}}\item[{\em 
nico@207: CAN\_\-BAUDRATE\_\-1M\label{appli_8c_a5385c49943465978358d459b4fc430ff84d248d0fb707925b35c9ec18624809}
nico@207: }]\end{description}
nico@207: \end{Desc}
nico@207: 
nico@207: 
nico@207: 
nico@207: \subsection{Function Documentation}
nico@207: \index{appli.c@{appli.c}!gene_SYNC_heartbeatError@{gene\_\-SYNC\_\-heartbeatError}}
nico@207: \index{gene_SYNC_heartbeatError@{gene\_\-SYNC\_\-heartbeatError}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-heartbeat\-Error (UNS8 {\em heartbeat\-ID})}\label{appli_8c_07f58b5c2d6a07142f3e6e695798646b}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!gene_SYNC_initialisation@{gene\_\-SYNC\_\-initialisation}}
nico@207: \index{gene_SYNC_initialisation@{gene\_\-SYNC\_\-initialisation}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-initialisation (void)}\label{appli_8c_5249682c125c7e4ad9583bf63c20b5fa}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!gene_SYNC_operational@{gene\_\-SYNC\_\-operational}}
nico@207: \index{gene_SYNC_operational@{gene\_\-SYNC\_\-operational}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-operational (void)}\label{appli_8c_688e52d5ec8da35ad5c61b4337df495d}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!gene_SYNC_preOperational@{gene\_\-SYNC\_\-preOperational}}
nico@207: \index{gene_SYNC_preOperational@{gene\_\-SYNC\_\-preOperational}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-pre\-Operational (void)}\label{appli_8c_ccd49c1b2614c38aeac93733ede6cd91}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!gene_SYNC_stopped@{gene\_\-SYNC\_\-stopped}}
nico@207: \index{gene_SYNC_stopped@{gene\_\-SYNC\_\-stopped}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void gene\_\-SYNC\_\-stopped (void)}\label{appli_8c_00e6a6d0f2186f329263023a7f1de155}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!initCanopencapteur@{initCanopencapteur}}
nico@207: \index{initCanopencapteur@{initCanopencapteur}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Canopencapteur (void)}\label{appli_8c_8d772d897083e5a5c5f41878cfea50b8}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!initPortB@{initPortB}}
nico@207: \index{initPortB@{initPortB}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Port\-B (void)}\label{appli_8c_c17a18fa3b7965bf6e850effaba7179a}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!initPortH@{initPortH}}
nico@207: \index{initPortH@{initPortH}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Port\-H (void)}\label{appli_8c_b7c33a91e5101b8d7371482fcfd6111d}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!initSensor@{initSensor}}
nico@207: \index{initSensor@{initSensor}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void init\-Sensor (void)}\label{appli_8c_ff8c2bab7ede63d3529f62b4fa3aca8c}
nico@207: 
nico@207: 
nico@207: \index{appli.c@{appli.c}!main@{main}}
nico@207: \index{main@{main}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}UNS8 main (void)}\label{appli_8c_ef83014be811ae964a5ef7f0af7b46a2}
nico@207: 
nico@207: 
nico@207: 
nico@207: 
nico@207: \subsection{Variable Documentation}
nico@207: \index{appli.c@{appli.c}!CAN_Baudrates@{CAN\_\-Baudrates}}
nico@207: \index{CAN_Baudrates@{CAN\_\-Baudrates}!appli.c@{appli.c}}
nico@207: \subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf can\-Bus\-Time} {\bf CAN\_\-Baudrates}[$\,$]}\label{appli_8c_43fd1d8fc333eddd19554acb6cc2baf8}
nico@207: 
nico@207: 




