CANopenNode
OD definition objects

Types and functions used only for definition of Object Dictionary. More...

Data Structures

struct  OD_obj_var_t
 Object for single OD variable, used for "VAR" type OD objects. More...
 
struct  OD_obj_array_t
 Object for OD array of variables, used for "ARRAY" type OD objects. More...
 
struct  OD_obj_record_t
 Object for OD sub-elements, used in "RECORD" type OD objects. More...
 
struct  OD_extensionIO_t
 Object pointed by OD_obj_extended_t contains application specified parameters for extended OD object. More...
 
struct  OD_obj_extended_t
 Object for extended type of OD variable, configurable by OD_extensionIO_init() function. More...
 

Enumerations

enum  OD_objectTypes_t {
  ODT_VAR = 0x01, ODT_ARR = 0x02, ODT_REC = 0x03, ODT_EVAR = 0x11,
  ODT_EARR = 0x12, ODT_EREC = 0x13, ODT_TYPE_MASK = 0x0F, ODT_EXTENSION_MASK = 0x10
}
 Types for OD object. More...
 

Detailed Description

Types and functions used only for definition of Object Dictionary.

Enumeration Type Documentation

◆ OD_objectTypes_t

Types for OD object.

Enumerator
ODT_VAR 

This type corresponds to CANopen Object Dictionary object with object code equal to VAR.

OD object is type of OD_obj_var_t and represents single variable of any type (any length), located on sub-index 0. Other sub-indexes are not used.

ODT_ARR 

This type corresponds to CANopen Object Dictionary object with object code equal to ARRAY.

OD object is type of OD_obj_array_t and represents array of variables with the same type, located on sub-indexes above 0. Sub-index 0 is of type uint8_t and usually represents length of the array.

ODT_REC 

This type corresponds to CANopen Object Dictionary object with object code equal to RECORD.

This type of OD object represents structure of the variables. Each variable from the structure can have own type and own attribute. OD object is an array of elements of type OD_obj_var_t. Variable at sub-index 0 is of type uint8_t and usually represents number of sub-elements in the structure.

ODT_EVAR 

Same as ODT_VAR, but extended with OD_obj_extended_t type.

It includes additional pointer to IO extension and PDO flags

ODT_EARR 

Same as ODT_ARR, but extended with OD_obj_extended_t type.

ODT_EREC 

Same as ODT_REC, but extended with OD_obj_extended_t type.

ODT_TYPE_MASK 

Mask for basic type.

ODT_EXTENSION_MASK 

Mask for extension.