Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

String Objects

The CANopen stack provides a system object type for managing strings. The strings are assumed to be read only data. The recommended way to allocate this string memory is shown in the following example:

CPU_INT08U DemoString[] = "Hello World!";             /* string memory */

To enable the usage of this string to the CAN network side, the string must be added to the object directory:

  (CPU_INT32U)&DemoString[0]                          /* pointer to string */

The internal behavior of the CANopen stack is shown in section "User Type Objects".

  • No labels