/
CONmtGetNodeId
CONmtGetNodeId
CONmtGetNodeId
Description
This function returns the current CANopen Node-ID of the NMT module.
Prototype
CPU_INT08U CONmtGetNodeId(CO_NMT *nmt);
Parameter | Description |
---|---|
nmt | reference to NMT structure |
Returned Value
>0 The current NMT node ID
=0 An error is detected
Example
The following example shows how to get the node-ID of the CANopen node AppNode:
CPU_INT08U id; : id = CONmtGetNodeId (&(AppNode.Nmt)); if (id == 0) { /* error during reading the node-ID */ } else { /* id holds the node ID */ } :
, multiple selections available,
Related content
CONmtSetNodeId
CONmtSetNodeId
More like this
CONmtGetMode
CONmtGetMode
More like this
CONmtSetMode
CONmtSetMode
More like this
CONmtReset
CONmtReset
More like this
CANopen Node
CANopen Node
More like this
CONodeGetErr
CONodeGetErr
More like this