Versions Compared

Key

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

...

The following example writes the value to the hypothetical application specific object entry "[1234:56]" within the object directory of the CANopen node AppNode.


Code Block
    CPU_INT16S  err;
    CPU_INT08U  buffer[10];
    :
    err = CODirRdBuffer (&(AppNode.Dir), CO_DEV(0x1234, 0x56), buffer, 10);
    if (err != CO_ERR_NONE) {
        /* object [1234:56] is missing or error during writing */
    } else {
        /* value holds the content of object [1234:56] */
    }
    :