Go to the documentation of this file.
19 #ifndef CanOpenStructsH
20 #define CanOpenStructsH
23 #define DIRECTION_RECEIVE 0
24 #define DIRECTION_TRANSMIT 1
28 #define RECEIVE_PDO_MAPPING_STARTADRESS 0x1600
29 #define RECEIVE_PDO_MAPPING_MAXADRESS 0x17FF
30 #define TRANSMIT_PDO_MAPPING_STARTADRESS 0x1A00
31 #define TRANSMIT_PDO_MAPPING_MAXADRESS 0x1BFF
33 #define MAX_SDO_BUFFERSIZE 246
39 #define USER_AT_HOST 16
40 #define CMDCODE_GET_CONFIGURATION 15
41 #define CMDCODE_SDO_UPDOWNLOAD 74
42 #define CMDCODE_Node_Diag 66
43 #define CMD_NMT_Module_Protocol 96
46 #define CMD_NMT_START_REMOTE_NODE 1
47 #define CMD_NMT_STOP_REMOTE_NODE 2
48 #define CMD_NMT_ENTER_PREOPERATIONAL 128
49 #define CMD_NMT_RESET_NODE 129
50 #define CMD_NMT_RESET_COMMUNICATION 130
52 #define TASK_TFC_READ 1
53 #define TASK_TFC_WRITE 2
54 #define RESPONSE_CODE_GET_CONFIGURATION 15
56 #define DATA_DIRECTION_MASK 0x30
57 #define DIRECTION_INPUT 0x10
58 #define DIRECTION_OUTPUT 0x20
61 #define ERRCODE_NOERROR 0
62 #define ERRCODE_INVALID_NODEID -2
63 #define ERRCODE_INVALID_PDOID -3
64 #define ERRCODE_PDOSND_FAIL -4
65 #define ERRCODE_INVALID_MAPID -5
66 #define ERRCODE_INVALID_RLTYPE -6
67 #define ERRCODE_PDORCV_FAIL -7