Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example shows the typical startup of a CANopen node AppNode with the specification AppSpec:


Code Block
languagecpp
    CO_ERR err;
    :
    CONodeInit (&AppNode, (CO_NODE_SPEC *)&AppSpec);
 
    err = CONodeGetErr (&AppNode);
    if (err == CO_ERR_NONE) {
        CONodeStart (&AppNode);
    } else {
 
        /* error handling and diagnostics */
    }
    :