|
MIRA
|
An implementation of a basic CANopen NMT master. More...
#include <can/CANOpenNMTMaster.h>
Public Member Functions | |
Constructors and destructor | |
| CANOpenNMTMaster (CANInterfacePtr iIfc) | |
| The constructor. More... | |
| virtual | ~CANOpenNMTMaster () |
| The destructor. More... | |
NMT callbacks | |
| uint32 | addHeartbeatCallback (CANOpenHeartbeat iCallback) |
| A add new callback for CANopen heartbeats. More... | |
| void | removeHeartbeatCallback (uint32 pFuncID) |
| Unregister a heartbeat listener. More... | |
CANOpen NMT commands | |
| void | startNode (uint8 iNodeID) |
| Execute a 'Start node' command. More... | |
| void | stopNode (uint8 iNodeID) |
| Execute a 'Stop node' command. More... | |
| void | preOperationalNode (uint8 iNodeID) |
| Execute a 'Goto pre-operational' command. More... | |
| void | resetNode (uint8 iNodeID) |
| Execute a 'Reset_node' command. More... | |
| void | resetCommunication (uint8 iNodeID) |
| Execute a 'Reset_communication' command. More... | |
| CANOpenNodeStatusFuture | getNodeStatus (uint8 iNodeID) |
| Request the status of a CANopen node. More... | |
Protected Member Functions | |
Internal methods | |
| void | onDestructFuture (uint64 requestID) |
Friends | |
| class | CANOpenNodeStatusFuture |
An implementation of a basic CANopen NMT master.
| CANOpenNMTMaster | ( | CANInterfacePtr | iIfc | ) |
The constructor.
| [in] | iIfc | The interface to the CAN bus |
|
virtual |
The destructor.
| uint32 addHeartbeatCallback | ( | CANOpenHeartbeat | iCallback | ) |
A add new callback for CANopen heartbeats.
| [in] | iCallback | The callback function. |
| void removeHeartbeatCallback | ( | uint32 | pFuncID | ) |
Unregister a heartbeat listener.
| [in] | pFuncID | The ID of the listener function, which should be removed. |
| void startNode | ( | uint8 | iNodeID | ) |
Execute a 'Start node' command.
| [in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be started. |
| void stopNode | ( | uint8 | iNodeID | ) |
Execute a 'Stop node' command.
| [in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be stopped. |
| void preOperationalNode | ( | uint8 | iNodeID | ) |
Execute a 'Goto pre-operational' command.
| [in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will go into the pre-operational mode. |
| void resetNode | ( | uint8 | iNodeID | ) |
Execute a 'Reset_node' command.
| [in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be reset. |
| void resetCommunication | ( | uint8 | iNodeID | ) |
Execute a 'Reset_communication' command.
| [in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be reset. |
| CANOpenNodeStatusFuture getNodeStatus | ( | uint8 | iNodeID | ) |
Request the status of a CANopen node.
| [in] | iNodeId | The node ID. |
|
protected |
|
friend |
1.8.14