nico@207: \hypertarget{nmtSlave_8h}{ nico@207: \section{/home/epimerde/documents/tc11/Can\-Festival-3/include/nmt\-Slave.h File Reference} nico@207: \label{nmtSlave_8h}\index{/home/epimerde/documents/tc11/CanFestival-3/include/nmtSlave.h@{/home/epimerde/documents/tc11/CanFestival-3/include/nmtSlave.h}} nico@207: } nico@207: {\tt \#include $<$applicfg.h$>$}\par nico@207: {\tt \#include \char`\"{}data.h\char`\"{}}\par nico@207: \subsection*{Functions} nico@207: \begin{CompactItemize} nico@207: \item nico@207: void \hyperlink{nmtSlave_8h_97d175ea168c149c99b01dcde0989743}{proceed\-NMTstate\-Change} (\hyperlink{structstruct__CO__Data}{CO\_\-Data} $\ast$d, \hyperlink{structMessage}{Message} $\ast$m) nico@207: \item nico@207: UNS8 \hyperlink{nmtSlave_8h_aced28a97b2c256320dfde3c4b36a7d5}{slave\-Send\-Boot\-Up} (\hyperlink{structstruct__CO__Data}{CO\_\-Data} $\ast$d) nico@207: \end{CompactItemize} nico@207: nico@207: nico@207: \subsection{Function Documentation} nico@207: \hypertarget{nmtSlave_8h_97d175ea168c149c99b01dcde0989743}{ nico@207: \index{nmtSlave.h@{nmt\-Slave.h}!proceedNMTstateChange@{proceedNMTstateChange}} nico@207: \index{proceedNMTstateChange@{proceedNMTstateChange}!nmtSlave.h@{nmt\-Slave.h}} nico@207: \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})}} nico@207: \label{nmtSlave_8h_97d175ea168c149c99b01dcde0989743} nico@207: nico@207: nico@207: 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 nico@207: nico@207: Definition at line 29 of file nmt\-Slave.c. nico@207: nico@207: 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}{ nico@207: \index{nmtSlave.h@{nmt\-Slave.h}!slaveSendBootUp@{slaveSendBootUp}} nico@207: \index{slaveSendBootUp@{slaveSendBootUp}!nmtSlave.h@{nmt\-Slave.h}} nico@207: \subsubsection[slaveSendBootUp]{\setlength{\rightskip}{0pt plus 5cm}UNS8 slave\-Send\-Boot\-Up (\hyperlink{structstruct__CO__Data}{CO\_\-Data} $\ast$ {\em d})}} nico@207: \label{nmtSlave_8h_aced28a97b2c256320dfde3c4b36a7d5} nico@207: nico@207: nico@207: 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) nico@207: nico@207: Definition at line 76 of file nmt\-Slave.c. nico@207: nico@207: 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.