equal
deleted
inserted
replaced
52 ** |
52 ** |
53 ** @return |
53 ** @return |
54 **/ |
54 **/ |
55 #ifdef DEBUG_WAR_CONSOLE_ON |
55 #ifdef DEBUG_WAR_CONSOLE_ON |
56 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex, |
56 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex, |
57 UNS8 sizeDataDict, UNS8 sizeDataGiven, UNS32 code) |
57 UNS32 sizeDataDict, UNS32 sizeDataGiven, UNS32 code) |
58 { |
58 { |
59 MSG_WAR(0x2B09,"Dictionary index : ", index); |
59 MSG_WAR(0x2B09,"Dictionary index : ", index); |
60 MSG_WAR(0X2B10," subindex : ", subIndex); |
60 MSG_WAR(0X2B10," subindex : ", subIndex); |
61 switch (code) { |
61 switch (code) { |
62 case OD_NO_SUCH_OBJECT: |
62 case OD_NO_SUCH_OBJECT: |
106 **/ |
106 **/ |
107 UNS32 _getODentry( CO_Data* d, |
107 UNS32 _getODentry( CO_Data* d, |
108 UNS16 wIndex, |
108 UNS16 wIndex, |
109 UNS8 bSubindex, |
109 UNS8 bSubindex, |
110 void * pDestData, |
110 void * pDestData, |
111 UNS8 * pExpectedSize, |
111 UNS32 * pExpectedSize, |
112 UNS8 * pDataType, |
112 UNS8 * pDataType, |
113 UNS8 checkAccess, |
113 UNS8 checkAccess, |
114 UNS8 endianize) |
114 UNS8 endianize) |
115 { /* DO NOT USE MSG_ERR because the macro may send a PDO -> infinite |
115 { /* DO NOT USE MSG_ERR because the macro may send a PDO -> infinite |
116 loop if it fails. */ |
116 loop if it fails. */ |
117 UNS32 errorCode; |
117 UNS32 errorCode; |
118 UNS8 szData; |
118 UNS32 szData; |
119 const indextable *ptrTable; |
119 const indextable *ptrTable; |
120 ODCallback_t *Callback; |
120 ODCallback_t *Callback; |
121 |
121 |
122 ptrTable = (*d->scanIndexOD)(wIndex, &errorCode, &Callback); |
122 ptrTable = (*d->scanIndexOD)(wIndex, &errorCode, &Callback); |
123 |
123 |
209 **/ |
209 **/ |
210 UNS32 _setODentry( CO_Data* d, |
210 UNS32 _setODentry( CO_Data* d, |
211 UNS16 wIndex, |
211 UNS16 wIndex, |
212 UNS8 bSubindex, |
212 UNS8 bSubindex, |
213 void * pSourceData, |
213 void * pSourceData, |
214 UNS8 * pExpectedSize, |
214 UNS32 * pExpectedSize, |
215 UNS8 checkAccess, |
215 UNS8 checkAccess, |
216 UNS8 endianize) |
216 UNS8 endianize) |
217 { |
217 { |
218 UNS8 szData; |
218 UNS32 szData; |
219 UNS8 dataType; |
219 UNS8 dataType; |
220 UNS32 errorCode; |
220 UNS32 errorCode; |
221 const indextable *ptrTable; |
221 const indextable *ptrTable; |
222 ODCallback_t *Callback; |
222 ODCallback_t *Callback; |
223 |
223 |