CANopen Master Documentation
Version 6.06.04
|
The file canopen.h holds all definitions and structures that are necessary 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_FLAG_EXTENDED ((uint32_t) 0x20000000) |
#define | ID_FLAG_NO_RTR ((uint32_t) 0x40000000) |
#define | ID_FLAG_DISABLED ((uint32_t) 0x80000000) |
#define | ID_MASK_VALUE ((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 0x05030000 |
#define | SDO_ERR_TIMEOUT 0x05040000 |
#define | SDO_ERR_COMMAND 0x05040001 |
#define | SDO_ERR_BLOCK_SIZE 0x05040002 |
#define | SDO_ERR_BLOCK_SEQUENCE 0x05040003 |
#define | SDO_ERR_BLOCK_CRC 0x05040004 |
#define | SDO_ERR_MEMORY 0x05040005 |
#define | SDO_ERR_ACCESS_UNSUPPORTED 0x06010000 |
#define | SDO_ERR_ACCESS_WO 0x06010001 |
#define | SDO_ERR_ACCESS_RO 0x06010002 |
#define | SDO_ERR_NO_OBJECT 0x06020000 |
#define | SDO_ERR_MAPPING_OBJECT 0x06040041 |
#define | SDO_ERR_MAPPING_LENGTH 0x06040042 |
#define | SDO_ERR_GENERAL_PARAMETER 0x06040043 |
#define | SDO_ERR_GENERAL_DEVICE 0x06040047 |
#define | SDO_ERR_HARDWARE 0x06060000 |
#define | SDO_ERR_DATATYPE 0x06070010 |
#define | SDO_ERR_DATATYPE_HIGH 0x06070012 |
#define | SDO_ERR_DATATYPE_LOW 0x06070013 |
#define | SDO_ERR_NO_SUB_INDEX 0x06090011 |
#define | SDO_ERR_VALUE_RANGE 0x06090030 |
#define | SDO_ERR_VALUE_HIGH 0x06090031 |
#define | SDO_ERR_VALUE_LOW 0x06090032 |
#define | SDO_ERR_VALUE_MIN_MAX 0x06090036 |
#define | SDO_ERR_SDO_CONNECTION 0x060A0023 |
#define | SDO_ERR_GENERAL 0x08000000 |
#define | SDO_ERR_DATA_STORE 0x08000020 |
#define | SDO_ERR_DATA_STORE_LOCAL 0x08000021 |
#define | SDO_ERR_DATA_STORE_STATE 0x08000022 |
#define | SDO_ERR_OBJECT_DICTIONARY 0x08000023 |
#define | SDO_ERR_NO_DATA 0x08000024 |
Enumerations | |
enum | UsdoAbort_e { } |
enum | CoAttr_e { eCO_ATTR_ACC_RO = 0x01 , eCO_ATTR_ACC_WO = 0x02 , eCO_ATTR_ACC_RW = 0x03 , eCO_ATTR_ACC_CONST = 0x05 , eCO_ATTR_PDO_MAP = 0x10 , eCO_ATTR_RES_1 = 0x20 , eCO_ATTR_RES_2 = 0x40 , eCO_ATTR_FUNCTION = 0x80 } |
enum | CoDataType_e { eCO_DT_BOOLEAN = 1 , eCO_DT_INTEGER8 = 2 , eCO_DT_INTEGER16 = 3 , eCO_DT_INTEGER32 = 4 , eCO_DT_UNSIGNED8 = 5 , eCO_DT_UNSIGNED16 = 6 , eCO_DT_UNSIGNED32 = 7 , eCO_DT_REAL32 = 8 , eCO_DT_VISIBLE_STRING = 9 , eCO_DT_OCTET_STRING = 10 , eCO_DT_UNICODE_STRING = 11 , eCO_DT_TIME_OF_DAY = 12 , eCO_DT_TIME_DIFFERENCE = 13 , eCO_DT_DOMAIN = 15 , eCO_DT_REAL64 = 17 , eCO_DT_INTEGER64 = 21 , eCO_DT_UNSIGNED64 = 27 } |
enum CoAttr_e |
Access Attributes for objects in dictionary.
Each object within the object dictionary can have the following access attributes:
The member ubAttribute of the structure ComDicEntry_s is used for that purpose. This enumeration defines possible attribute values.
enum CoDataType_e |
Data Type definitions for objects in dictionary.
Each object within the object dictionary has a specific data type. By this enumeration the possible data types are defined, which can be used in the SDO server.
enum CoErrReg_e |
Error Register values.
enum SdoCmd_e |
Command values for SDO transfer.
enum UsdoAbort_e |
USDO abort codes.
The enumeration defines USDO abort codes.
enum UsdoCommand_e |