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 | ||
---|---|---|
| ||
extern const CO_NODE_SPEC AppSpec;
CO_NODE AppNode; |
With these objects, the CANopen node can be initialized and started:End of topic
Code Block | ||
---|---|---|
| ||
:
CONodeInit (&AppNode, (CO_NODE_SPEC *)&AppSpec);
: |