12#include "canfestival.h"
34 MSG_WAR(0x3501,
"Send_NMT cs : ", cs);
35 MSG_WAR(0x3502,
" to node : ", Node_ID);
38 m.
rtr = NOT_A_REQUEST;
43 return canSend(d->canHandle, &m);
63 UNS16 tmp = nodeId | (NODE_GUARD << 7);
68 MSG_WAR(0x3503,
"Send_NODE_GUARD to node : ", nodeId);
70 return canSend(d->canHandle, &m);
88 d->NMTable[nodeId] = Unknown_state;
93 for (i = 0 ; i < NMT_MAX_NODE_ID ; i++) {
94 d->NMTable[i] = Unknown_state;
#define UNS8
Unsigned int8 representation in CANFest.
#define UNS16
Unsigned int16 representation in CANFest.
#define MSG_WAR(num, str, val)
Definition of MSG_WAR.
UNS8 masterSendNMTstateChange(CO_Data *d, UNS8 Node_ID, UNS8 cs)
Transmit a NMT message on the network to the slave whose nodeId is node ID.
void masterRequestNodeState(CO_Data *d, UNS8 nodeId)
Ask the state of the slave node whose nodeId is node Id.
UNS8 masterSendNMTnodeguard(CO_Data *d, UNS8 nodeId)
Transmit a NodeGuard message on the network to the slave whose nodeId is node ID.
This structure contains all necessary informations to define a CANOpen node.