doc/doxygen/latex/nmtSlave_8h.tex
author nico
Tue, 05 Jun 2007 18:43:21 +0200
changeset 210 6b5a4c21e061
parent 207 b6572d0336c3
permissions -rw-r--r--
Manual and Documentation finish
\hypertarget{nmtSlave_8h}{
\section{/home/epimerde/documents/tc11/Can\-Festival-3/include/nmt\-Slave.h File Reference}
\label{nmtSlave_8h}\index{/home/epimerde/documents/tc11/CanFestival-3/include/nmtSlave.h@{/home/epimerde/documents/tc11/CanFestival-3/include/nmtSlave.h}}
}
{\tt \#include $<$applicfg.h$>$}\par
{\tt \#include \char`\"{}data.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{nmtSlave_8h_97d175ea168c149c99b01dcde0989743}{proceed\-NMTstate\-Change} (\hyperlink{structstruct__CO__Data}{CO\_\-Data} $\ast$d, \hyperlink{structMessage}{Message} $\ast$m)
\item 
UNS8 \hyperlink{nmtSlave_8h_aced28a97b2c256320dfde3c4b36a7d5}{slave\-Send\-Boot\-Up} (\hyperlink{structstruct__CO__Data}{CO\_\-Data} $\ast$d)
\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{nmtSlave_8h_97d175ea168c149c99b01dcde0989743}{
\index{nmtSlave.h@{nmt\-Slave.h}!proceedNMTstateChange@{proceedNMTstateChange}}
\index{proceedNMTstateChange@{proceedNMTstateChange}!nmtSlave.h@{nmt\-Slave.h}}
\subsubsection[proceedNMTstateChange]{\setlength{\rightskip}{0pt plus 5cm}void proceed\-NMTstate\-Change (\hyperlink{structstruct__CO__Data}{CO\_\-Data} $\ast$ {\em d}, \hyperlink{structMessage}{Message} $\ast$ {\em m})}}
\label{nmtSlave_8h_97d175ea168c149c99b01dcde0989743}


Threat the reception of a NMT message from the master $\ast$m is a pointer to the message received bus\_\-id is hardware dependant return 0 if OK, -1 if the slave is not allowed, by its state, to receive the message 

Definition at line 29 of file nmt\-Slave.c.

References struct\_\-CO\_\-Data::b\-Device\-Node\-Id, struct\_\-s\_\-timer\_\-entry::d, Initialisation, MSG\_\-WAR, NMT\_\-Enter\_\-Pre\-Operational, NMT\_\-Reset\_\-Comunication, NMT\_\-Reset\_\-Node, NMT\_\-Start\_\-Node, NMT\_\-Stop\_\-Node, struct\_\-CO\_\-Data::node\-State, Operational, Pre\_\-operational, set\-State(), and Stopped.\hypertarget{nmtSlave_8h_aced28a97b2c256320dfde3c4b36a7d5}{
\index{nmtSlave.h@{nmt\-Slave.h}!slaveSendBootUp@{slaveSendBootUp}}
\index{slaveSendBootUp@{slaveSendBootUp}!nmtSlave.h@{nmt\-Slave.h}}
\subsubsection[slaveSendBootUp]{\setlength{\rightskip}{0pt plus 5cm}UNS8 slave\-Send\-Boot\-Up (\hyperlink{structstruct__CO__Data}{CO\_\-Data} $\ast$ {\em d})}}
\label{nmtSlave_8h_aced28a97b2c256320dfde3c4b36a7d5}


Transmit the boot-Up frame when the slave is moving from initialization state to pre\_\-operational state. bus\_\-id is hardware dependant return can\-Send(bus\_\-id,\&m) 

Definition at line 76 of file nmt\-Slave.c.

References struct\_\-CO\_\-Data::b\-Device\-Node\-Id, struct\_\-CO\_\-Data::can\-Handle, can\-Send(), Message::cob\_\-id, struct\_\-s\_\-timer\_\-entry::d, Message::data, Message::len, MSG\_\-WAR, NODE\_\-GUARD, NOT\_\-A\_\-REQUEST, Message::rtr, and SHORT\_\-CAN::w.