Object Directory
This section describes the API functions of the CANopen object directory module. These functions are implemented within the source file: co_dir.c/h
The class CO.DIR
is defined within co_dir.h
and is responsible for the object directory handling functions. The following data members are in this class:
Data Member | Type | Description |
---|---|---|
Node | CO_NODE * | Reference to parent CANopen node |
Root | CO_OBJ * | Reference to first object of object directory |
Num | CPU_INT16U | Current number of objects in directory |
Max | CPU_INT16U | Maximum number of objects in directory |
Note: The data within this structure must never be manipulated without the corresponding class member functions. This can lead to unpredictable behavior of the CANopen node.
Attention: The access with the member functions of this class to an object entry must be done with the correct width. There is no casting of the object entry values to the requested value types.