CANopen Master Documentation
Version 6.06.04
|
The file com_dicts.c implements the local object dictionary of the CANopen Master protocol stack. The local object dictionary is an array of ComDicEntry_ts elements. By means of ComDictAddList() an object dictionary can be assigned to a logical CANopen network during run-time.
An example for a local object dictionary is given by the file com_dict_master.c inside the template-com directory.
Data Structures | |
struct | ComDicEntry_s |
Typedefs | |
typedef struct ComDicEntry_s | ComDicEntry_ts |
Functions | |
ComStatus_tv | ComDictAddList (uint8_t ubNetV, ComDicEntry_ts *ptsDictListV) |
typedef struct ComDicEntry_s ComDicEntry_ts |
CANopen Master - local object dictionary entry.
The structure ComDicEntry_s describes a single dictionary entry. Each entry is defined by the index, sub-index, access-attribute and data type. The pointer pfnFunction points to a callback function.
ComStatus_tv ComDictAddList | ( | uint8_t | ubNetV, |
ComDicEntry_ts * | ptsDictListV | ||
) |
[in] | ubNetV | CANopen Network channel |
[in] | ptsDictListV | Pointer to dictionary structure |
This function adds an local object dictionary structure to the CANopen network channel defined by ubNetV. If a NULL pointer is passed to ptsDictListV the local object dictionary supports only the objects 1000h, 1001h and 1018h by means of an internal object dictionary structure.