CANopen Master Documentation
Version 6.06.04
Loading...
Searching...
No Matches
com_dict.h File Reference

Detailed Description

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.

+ Include dependency graph for com_dict.h:

Data Structures

struct  ComDicEntry_s
 

Typedefs

typedef struct ComDicEntry_s ComDicEntry_ts
 

Functions

ComStatus_tv ComDictAddList (uint8_t ubNetV, ComDicEntry_ts *ptsDictListV)
 

Typedef Documentation

◆ ComDicEntry_ts

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.

Function Documentation

◆ ComDictAddList()

ComStatus_tv ComDictAddList ( uint8_t  ubNetV,
ComDicEntry_ts ptsDictListV 
)
Parameters
[in]ubNetVCANopen Network channel
[in]ptsDictListVPointer to dictionary structure
Returns
Value of enumeration ComErr_e

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.