An implementation of a basic CANopen NMT master.
More...
#include <can/CANOpenNMTMaster.h>
An implementation of a basic CANopen NMT master.
◆ CANOpenNMTMaster()
The constructor.
- Parameters
-
[in] | iIfc | The interface to the CAN bus |
◆ ~CANOpenNMTMaster()
◆ addHeartbeatCallback()
A add new callback for CANopen heartbeats.
- Parameters
-
[in] | iCallback | The callback function. |
- Returns
- An unique ID for the registered function.
◆ removeHeartbeatCallback()
void removeHeartbeatCallback |
( |
uint32 |
pFuncID | ) |
|
Unregister a heartbeat listener.
- Parameters
-
[in] | pFuncID | The ID of the listener function, which should be removed. |
◆ startNode()
void startNode |
( |
uint8 |
iNodeID | ) |
|
Execute a 'Start node' command.
- Parameters
-
[in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be started. |
◆ stopNode()
void stopNode |
( |
uint8 |
iNodeID | ) |
|
Execute a 'Stop node' command.
- Parameters
-
[in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be stopped. |
◆ preOperationalNode()
void preOperationalNode |
( |
uint8 |
iNodeID | ) |
|
Execute a 'Goto pre-operational' command.
- Parameters
-
[in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will go into the pre-operational mode. |
◆ resetNode()
void resetNode |
( |
uint8 |
iNodeID | ) |
|
Execute a 'Reset_node' command.
- Parameters
-
[in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be reset. |
◆ resetCommunication()
void resetCommunication |
( |
uint8 |
iNodeID | ) |
|
Execute a 'Reset_communication' command.
- Parameters
-
[in] | iNodeID | The node ID. If the iNodeID = 0, the whole network will be reset. |
◆ getNodeStatus()
Request the status of a CANopen node.
- Parameters
-
- Returns
- A future object for the CANOpen status.
◆ onDestructFuture()
void onDestructFuture |
( |
uint64 |
requestID | ) |
|
|
protected |
◆ CANOpenNodeStatusFuture
The documentation for this class was generated from the following file: