CANopen Slave Documentation
Version 7.00.00
Loading...
Searching...
No Matches
CosDicEntry_s Struct Reference

Detailed Description

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

+ Collaboration diagram for CosDicEntry_s:

Data Fields

uint16_t uwIndex
 
uint8_t ubSubIndex
 
uint8_t ubAttribute
 
uint8_t ubDataType
 
union { 
 
tuValue 
 

Field Documentation

◆ [union]

union { ... } CosDicEntry_s::tuValue

Pointer to the actual value or SDO callback.

◆ ubAttribute

uint8_t CosDicEntry_s::ubAttribute

The member attribute holds the access attribute defines in the enumeration CoAttr_e, 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 CosDicEntry_s::ubDataType

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

◆ ubSubIndex

uint8_t CosDicEntry_s::ubSubIndex

The sub-index is a 8-bit value.

◆ uwIndex

uint16_t CosDicEntry_s::uwIndex

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

  • 1000h - 1FFFh (CiA 301, CiA 1301, communication profile)
  • 2000h - 5FFFh (CiA 301, CiA 1301, manufacturer specific)
  • 6000h - 9FFFh (CiA 4xx, device profile, application profile)