CANopen Slave Documentation
Version 7.00.00
|
The file canopen.h
holds common definitions and structures required for the CANopen protocol stack.
Macros | |
#define | ID_BASE_EMCY 0x080 |
#define | ID_BASE_SDO_TX 0x580 |
#define | ID_BASE_SDO_RX 0x600 |
#define | ID_BASE_NMT_ERR 0x700 |
#define | ID_MASK_IS_EXTENDED ((uint32_t) 0x20000000) |
#define | ID_MASK_NO_RTR ((uint32_t) 0x40000000) |
#define | ID_MASK_IS_DISABLED ((uint32_t) 0x80000000) |
#define | ID_MASK_STANDARD_FRAME ((uint32_t) 0x000007FF) |
#define | ID_MASK_EXTENDED_FRAME ((uint32_t) 0x1FFFFFFF) |
#define | NODE_ID_MIN ((uint8_t) 1) |
#define | NODE_ID_MAX ((uint8_t) 127) |
#define | NODE_ID_INVALID ((uint8_t) 255) |
#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)) |
#define NODE_ID_INVALID ((uint8_t) 255) |
Value for an invalid node-ID.
#define NODE_ID_MAX ((uint8_t) 127) |
Maximum value for valid node-ID.
#define NODE_ID_MIN ((uint8_t) 1) |
Minimum value for valid node-ID.
enum CoAttr_e |
Each object within the object dictionary can have the following access attributes.
Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|
function | reserved | not in FD | not in CC | reserved | hidden | write | read |
The member CosDicEntry_ts::ubAttribute is used for this purpose.
enum CoDT_e |
Each object within the object dictionary has a specific data type. By this enumeration the possible data types are defined.
enum CoErrReg_e |
Error Register (object 1001h) values
enum LssCmd_e |
LSS service command specifier
enum SdoCmd_e |
Command values for SDO transfer
Command values for USDO transfer
enum UsdoAbort_e |
The enumeration defines USDO abort codes.
enum UsdoCommand_e |