Versions Compared

Key

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

CONodeInit

Description

This function initializes the internals of the CANopen stack. The specification of the CANopen node, and the CANopen node object itself is given as parameter.

...

The following example shows the external reference to the node specification AppSpec, which is typically allocated within the configuration file co_obj_cfg.c, and the allocation of the CANopen node memory AppNode.


Code Block
languagecpp
extern const CO_NODE_SPEC AppSpec;
             CO_NODE      AppNode;


With these objects, the CANopen node can be initialized and started:


Code Block
languagecpp
    :
    CONodeInit (&AppNode, (CO_NODE_SPEC *)&AppSpec);
    :