Skip to end of metadata
Go to start of metadata

Description

Adds a node to the stack and configures it with the given specifications.

Files

canopen_core.h/canopen_core.c

Prototype


CANOPEN_NODE_HANDLE CANopen_NodeAdd (const CPU_CHAR              *p_name
                                     const CANOPEN_NODE_SPEC     *p_spec
                                     const CANOPEN_EVENT_FNCTS   *p_event_fctns
                                           RTOS_ERR              *p_err)

Arguments

p_name

Pointer to a CAN Bus controller name.

p_spec

Pointer to the node's specifications.

p_event_fncts

Pointer to event functions callback structure.

p_err

Pointer to the variable that will receive one of the following error code(s) from this function:

  • RTOS_ERR_NONE
  • RTOS_ERR_NULL_PTR
  • RTOS_ERR_SEG_OVF

Returned Value

Handle to the added node, if successful.
DEF_NULL, if there was a problem adding the node.

Notes / Warnings

(1) The node is still in INIT state after this function call. To finalize the initialization phase (e.g. profile specific or application actions, etc.), see CANopen_NodeStart().

  • No labels