Versions Compared

Key

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

...

If necessary, the following example show how to call the blocking receive function for the interface of the CANopen node AppNode:


Code Block
languagecpp
    CO_IF_FRM   frame;
    CPU_INT16S  err;
    :
    err = COIfRead (&(AppNode.If), &frame);
    if (err < 0) {
        /* error in interface layer */
    } else {
        /* frame contains received data */
    }
    :