equal
deleted
inserted
replaced
38 /* #define DEBUG_ERR_CONSOLE_ON */ |
38 /* #define DEBUG_ERR_CONSOLE_ON */ |
39 |
39 |
40 |
40 |
41 #include "data.h" |
41 #include "data.h" |
42 |
42 |
43 #ifdef DEBUG_WAR_CONSOLE_ON |
43 //We need the function implementation for linking |
|
44 //Only a placeholder with a define isnt enough! |
44 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex, |
45 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex, |
45 UNS32 sizeDataDict, UNS32 sizeDataGiven, UNS32 code) |
46 UNS32 sizeDataDict, UNS32 sizeDataGiven, UNS32 code) |
46 { |
47 { |
|
48 #ifdef DEBUG_WAR_CONSOLE_ON |
47 MSG_WAR(0x2B09,"Dictionary index : ", index); |
49 MSG_WAR(0x2B09,"Dictionary index : ", index); |
48 MSG_WAR(0X2B10," subindex : ", subIndex); |
50 MSG_WAR(0X2B10," subindex : ", subIndex); |
49 switch (code) { |
51 switch (code) { |
50 case OD_NO_SUCH_OBJECT: |
52 case OD_NO_SUCH_OBJECT: |
51 MSG_WAR(0x2B11,"Index not found ", index); |
53 MSG_WAR(0x2B11,"Index not found ", index); |
70 MSG_WAR(0x2B18,"Value range error : value too high. SDOabort : ", code); |
72 MSG_WAR(0x2B18,"Value range error : value too high. SDOabort : ", code); |
71 break; |
73 break; |
72 default : |
74 default : |
73 MSG_WAR(0x2B20, "Unknown error code : ", code); |
75 MSG_WAR(0x2B20, "Unknown error code : ", code); |
74 } |
76 } |
|
77 #endif |
|
78 |
75 return 0; |
79 return 0; |
76 } |
80 } |
77 #else |
|
78 #define accessDictionaryError(index, subIndex, sizeDataDict, sizeDataGiven, code) |
|
79 #endif |
|
80 |
81 |
81 UNS32 _getODentry( CO_Data* d, |
82 UNS32 _getODentry( CO_Data* d, |
82 UNS16 wIndex, |
83 UNS16 wIndex, |
83 UNS8 bSubindex, |
84 UNS8 bSubindex, |
84 void * pDestData, |
85 void * pDestData, |