...
The following example shows how to get the node-ID of the CANopen node AppNode:
Code Block | ||
---|---|---|
| ||
CPU_INT08U id;
:
id = CONmtGetNodeId (&(AppNode.Nmt));
if (id == 0) {
/* error during reading the node-ID */
} else {
/* id holds the node ID */
}
: |