Versions Compared

Key

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

CONmtGetMode

Description

This function returns the current CANopen NMT state machine mode.

...

The following example shows how to perform operations only in operational mode of the CANopen node AppNode:End of topic


Code Block
languagecpp
    CO_MODE mode;
    :
    mode = CONmtGetMode (&(AppNode.Nmt));
    if (mode == CO_OPERATIONAL) {
        /* perform actions in operational mode */
    }
    :