![]() |
CANopen Master Protocol Stack
Version 7.00.02
|
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.
Data Fields | |
| uint16_t | uwIndex |
| uint8_t | ubSubIndex |
| uint8_t | ubAttribute |
| uint8_t | ubDataType |
| union { | |
| ComSdoHandler_Fn pfnFunction | |
| void * pvdValue | |
| } | tuValue |
| ComSdoHandler_Fn ComDicEntry_s::pfnFunction |
Pointer to callback function
| void* ComDicEntry_s::pvdValue |
Pointer to variable
| union { ... } ComDicEntry_s::tuValue |
Pointer to the actual value or SDO callback.
| uint8_t ComDicEntry_s::ubAttribute |
The member attribute holds the access attribute defines in the enumeration CoAttr_e in canopen.h, the PDO mapping information and the object search method.
| uint8_t ComDicEntry_s::ubDataType |
The data type may be one of the definitions made in the enumeration CoDT.
| uint8_t ComDicEntry_s::ubSubIndex |
The sub-index is a 8-bit value.
| uint16_t ComDicEntry_s::uwIndex |
The index is a 16 bit value. Possible values (according to CANopen specification) are: