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 | ||
---|---|---|
| ||
CO_MODE mode;
:
mode = CONmtGetMode (&(AppNode.Nmt));
if (mode == CO_OPERATIONAL) {
/* perform actions in operational mode */
}
: |