CANopen Bootloader Documentation
Version 4.10.00
Loading...
Searching...
No Matches
CblDicEntry_s Struct Reference

Detailed Description

The structure CblDicEntry_s describes a single dictionary entry. Each entry is defined by the index, sub-index, access-attribute and data type. The pointer 'pActualValue' points to the data of the specified object or a callback function.

+ Collaboration diagram for CblDicEntry_s:

Data Fields

uint16_t uwIndex
 
uint8_t ubSubIndex
 
uint8_t ubAttribute
 
uint8_t ubDataType
 
union { 
 
   SdoHandler_fn   pfnFunction 
 
   void *   pvdValue 
 
tuValue 
 

Field Documentation

◆ pfnFunction

SdoHandler_fn CblDicEntry_s::pfnFunction

Pointer to function

◆ pvdValue

void* CblDicEntry_s::pvdValue

Pointer to value

◆ [union]

union { ... } CblDicEntry_s::tuValue

Pointer to the actual value or SDO callback.

◆ ubAttribute

uint8_t CblDicEntry_s::ubAttribute

The member attribute holds the access attribute defines in the enumeration CoACC, the PDO mapping information and the object search method.

  • Bit 0 .. Bit 3: object access (read/write/const)
  • Bit 4: set to 1 means PDO mapping possible
  • Bit 5: reserved
  • Bit 6: reserved
  • Bit 7: don't check sub-index for searching

◆ ubDataType

uint8_t CblDicEntry_s::ubDataType

The data type may be one of the definitions made in the enumeration CoDT.

◆ ubSubIndex

uint8_t CblDicEntry_s::ubSubIndex

The sub-index is a 8-bit value.

◆ uwIndex

uint16_t CblDicEntry_s::uwIndex

The index is a 16 bit value. Possible values (according to CANopen specification) are:

  • 1000 - 1FFF (DS-301, Communication profile)
  • 2000 - 5FFF (DS-301, vendor specific)
  • 6000 - 9FFF (DS-4xx, device profile)