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".
End of topic