CANopen Slave Documentation
Version 6.16.04
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 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 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 CANopen specification) are:

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