NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
NMT Master
Collaboration diagram for NMT Master:

Functions

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.
 
UNS8 masterSendNMTnodeguard (CO_Data *d, UNS8 nodeId)
 Transmit a NodeGuard 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.
 

Detailed Description

Function Documentation

◆ masterRequestNodeState()

void masterRequestNodeState ( CO_Data * d,
UNS8 nodeId )

Ask the state of the slave node whose nodeId is node Id.

To ask states of all nodes on the network (NMT broadcast), nodeId must be equal to 0

Parameters
*dPointer to a CAN object data structure
nodeIdId of the slave node

Definition at line 81 of file nmtMaster.c.

Here is the call graph for this function:

◆ masterSendNMTnodeguard()

UNS8 masterSendNMTnodeguard ( CO_Data * d,
UNS8 nodeId )

Transmit a NodeGuard message on the network to the slave whose nodeId is node ID.

Parameters
*dPointer to a CAN object data structure
nodeIdId of the slave node
Returns
  • 0 is returned if the NodeGuard message was send.
  • 1 is returned if an error occurs.

Definition at line 58 of file nmtMaster.c.

Referenced by masterRequestNodeState().

Here is the caller graph for this function:

◆ masterSendNMTstateChange()

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.

Parameters
*dPointer to a CAN object data structure
nodeIdId of the slave node
csThe order of state changement



Returns
errorcode
  • 0 if the NMT message was send
  • 1 if an error occurs

Definition at line 30 of file nmtMaster.c.