CANopen Slave Documentation
Version 6.16.04
|
The file canopen.h holds all definitions and structures that are necessary for the CANopen protocol stack.
Macros | |
#define | ID_MASK_VALUE ((uint32_t) 0x1FFFFFFF) |
#define | ID_MASK_IS_EXTENDED ((uint32_t) 0x20000000) |
#define | ID_MASK_IS_DISABLED ((uint32_t) 0x80000000) |
#define | SDO_ERR_TOGGLE_BIT ((uint32_t)(0x05030000)) |
#define | SDO_ERR_TIMEOUT ((uint32_t)(0x05040000)) |
#define | SDO_ERR_COMMAND ((uint32_t)(0x05040001)) |
#define | SDO_ERR_BLOCK_SIZE ((uint32_t)(0x05040002)) |
#define | SDO_ERR_BLOCK_SEQUENCE ((uint32_t)(0x05040003)) |
#define | SDO_ERR_BLOCK_CRC ((uint32_t)(0x05040004)) |
#define | SDO_ERR_MEMORY ((uint32_t)(0x05040005)) |
#define | SDO_ERR_ACCESS_UNSUPPORTED ((uint32_t)(0x06010000)) |
#define | SDO_ERR_ACCESS_WO ((uint32_t)(0x06010001)) |
#define | SDO_ERR_ACCESS_RO ((uint32_t)(0x06010002)) |
#define | SDO_ERR_NO_OBJECT ((uint32_t)(0x06020000)) |
#define | SDO_ERR_MAPPING_OBJECT ((uint32_t)(0x06040041)) |
#define | SDO_ERR_MAPPING_LENGTH ((uint32_t)(0x06040042)) |
#define | SDO_ERR_GENERAL_PARAMETER ((uint32_t)(0x06040043)) |
#define | SDO_ERR_GENERAL_DEVICE ((uint32_t)(0x06040047)) |
#define | SDO_ERR_HARDWARE ((uint32_t)(0x06060000)) |
#define | SDO_ERR_DATATYPE ((uint32_t)(0x06070010)) |
#define | SDO_ERR_DATATYPE_HIGH ((uint32_t)(0x06070012)) |
#define | SDO_ERR_DATATYPE_LOW ((uint32_t)(0x06070013)) |
#define | SDO_ERR_NO_SUB_INDEX ((uint32_t)(0x06090011)) |
#define | SDO_ERR_VALUE_RANGE ((uint32_t)(0x06090030)) |
#define | SDO_ERR_VALUE_HIGH ((uint32_t)(0x06090031)) |
#define | SDO_ERR_VALUE_LOW ((uint32_t)(0x06090032)) |
#define | SDO_ERR_VALUE_MIN_MAX ((uint32_t)(0x06090036)) |
#define | SDO_ERR_SDO_CONNECTION ((uint32_t)(0x060A0023)) |
#define | SDO_ERR_GENERAL ((uint32_t)(0x08000000)) |
#define | SDO_ERR_DATA_STORE ((uint32_t)(0x08000020)) |
#define | SDO_ERR_DATA_STORE_LOCAL ((uint32_t)(0x08000021)) |
#define | SDO_ERR_DATA_STORE_STATE ((uint32_t)(0x08000022)) |
#define | SDO_ERR_OBJECT_DICTIONARY ((uint32_t)(0x08000023)) |
#define | SDO_ERR_NO_DATA ((uint32_t)(0x08000024)) |
Enumerations | |
enum | CoATTR { } |
enum | CoDT { CoDT_BOOLEAN = 1 , CoDT_INTEGER8 , CoDT_INTEGER16 , CoDT_INTEGER32 , CoDT_UNSIGNED8 , CoDT_UNSIGNED16 , CoDT_UNSIGNED32 , CoDT_REAL32 , CoDT_VISIBLE_STRING , CoDT_OCTET_STRING , CoDT_UNICODE_STRING , CoDT_TIME_OF_DAY , CoDT_TIME_DIFFERENCE , CoDT_reserved01 , CoDT_DOMAIN , CoDT_INTEGER24 , CoDT_REAL64 , CoDT_INTEGER40 , CoDT_INTEGER48 , CoDT_INTEGER56 , CoDT_INTEGER64 , CoDT_UNSIGNED24 , CoDT_reserved02 , CoDT_UNSIGNED40 , CoDT_UNSIGNED48 , CoDT_UNSIGNED56 , CoDT_UNSIGNED64 } |
enum CoATTR |
Access Attributes for objects in dictionary.
Each object within the object dictionary can have the following access attributes:
The member ubAttribute of the structure CosDicEntry_s is used for that purpose. By this enumeration the possible attributes are defined.
Enumerator | |
---|---|
CoATTR_ACC_WO | object is read-only |
CoATTR_ACC_RW | object is write-only |
CoATTR_ACC_CONST | object supports read-write access |
CoATTR_PDO_MAP | object is constant |
enum CoDT |
Data Type definitions for objects in dictionary.
Each object within the object dictionary has a specific data type. The member ubDataType of the structure CoStruct_DicEntry is used for that purpose. By this enumeration the possible data types are defined.
enum CoErrReg_e |
Error Register values.
enum LssCmd_e |
LSS command specifiers.
enum SdoCmd_e |
Command values for SDO transfer.