nico@207: nico@207:
nico@207:#include "objacces.h"
nico@210: Include dependency graph for objacces.c:
nico@207: Go to the source code of this file.
Functions | |
UNS8 | accessDictionaryError (UNS16 index, UNS8 subIndex, UNS8 sizeDataDict, UNS8 sizeDataGiven, UNS32 code) |
UNS32 | _getODentry (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pDestData, UNS8 *pExpectedSize, UNS8 *pDataType, UNS8 checkAccess, UNS8 endianize) |
UNS32 | getODentry (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pDestData, UNS8 *pExpectedSize, UNS8 *pDataType, UNS8 checkAccess) |
UNS32 | readLocalDict (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pDestData, UNS8 *pExpectedSize, UNS8 *pDataType, UNS8 checkAccess) |
UNS32 | _setODentry (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pSourceData, UNS8 *pExpectedSize, UNS8 checkAccess, UNS8 endianize) |
UNS32 | setODentry (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pSourceData, UNS8 *pExpectedSize, UNS8 checkAccess) |
UNS32 | writeLocalDict (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pSourceData, UNS8 *pExpectedSize, UNS8 checkAccess) |
const indextable * | scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 *errorCode, ODCallback_t **Callback) |
UNS32 | RegisterSetODentryCallBack (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, ODCallback_t Callback) |
void | _storeODSubIndex (UNS16 wIndex, UNS8 bSubindex) |
nico@210: Definition in file objacces.c.
UNS32 _getODentry | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex, | nico@207:|
nico@207: | nico@207: | void * | nico@207:pDestData, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pExpectedSize, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pDataType, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:checkAccess, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:endianize | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
bSubindex | ||
pDestData | ||
pExpectedSize | ||
pDataType | ||
checkAccess | ||
endianize |
nico@210: DO NOT USE MSG_ERR because the macro may send a PDO -> infinite loop if it fails.
nico@210: We allow to fetch a shorter string than expected
nico@210: Error ! nico@210:
nico@210: Definition at line 105 of file objacces.c. nico@210:
nico@210: References accessDictionaryError(), and ptrTable. nico@210:
nico@210: Referenced by getODentry(), and readLocalDict(). nico@210:
nico@210: Here is the call graph for this function:
UNS32 _setODentry | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex, | nico@207:|
nico@207: | nico@207: | void * | nico@207:pSourceData, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pExpectedSize, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:checkAccess, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:endianize | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
bSubindex | ||
pSourceData | ||
pExpectedSize | ||
checkAccess | ||
endianize |
nico@210: Subindex not found
nico@210: Callbacks
nico@210: TODO : Store dans NVRAM nico@210:
nico@210: Definition at line 260 of file objacces.c. nico@210:
nico@210: References accessDictionaryError(), and ptrTable. nico@210:
nico@210: Referenced by setODentry(), and writeLocalDict(). nico@210:
nico@210: Here is the call graph for this function:
void _storeODSubIndex | nico@207:( | nico@207:UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
wIndex | ||
bSubindex |
nico@210: Definition at line 436 of file objacces.c. nico@207:
UNS8 accessDictionaryError | nico@207:( | nico@207:UNS16 | nico@207:index, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:subIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:sizeDataDict, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:sizeDataGiven, | nico@207:|
nico@207: | nico@207: | UNS32 | nico@207:code | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
index | ||
subIndex | ||
sizeDataDict | ||
sizeDataGiven | ||
code |
nico@210: Definition at line 55 of file objacces.c. nico@210:
nico@210: Referenced by _getODentry(), and _setODentry(). nico@207:
UNS32 getODentry | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex, | nico@207:|
nico@207: | nico@207: | void * | nico@207:pDestData, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pExpectedSize, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pDataType, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:checkAccess | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
bSubindex | ||
pDestData | ||
pExpectedSize | ||
pDataType | ||
checkAccess |
nico@210: Definition at line 198 of file objacces.c. nico@210:
nico@210: References _getODentry(). nico@210:
nico@210: Referenced by objdictToSDOline(), proceedPDO(), and proceedSYNC(). nico@210:
nico@210: Here is the call graph for this function:
UNS32 readLocalDict | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex, | nico@207:|
nico@207: | nico@207: | void * | nico@207:pDestData, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pExpectedSize, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pDataType, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:checkAccess | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
bSubindex | ||
pDestData | ||
pExpectedSize | ||
pDataType | ||
checkAccess |
nico@210: Definition at line 229 of file objacces.c. nico@210:
nico@210: References _getODentry(). nico@210:
nico@210: Here is the call graph for this function:
UNS32 RegisterSetODentryCallBack | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex, | nico@207:|
nico@207: | nico@207: | ODCallback_t | nico@207:Callback | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
bSubindex | ||
Callback |
nico@210: Definition at line 419 of file objacces.c. nico@210:
nico@210: References scanIndexOD(). nico@210:
nico@210: Referenced by heartbeatInit(), and startSYNC(). nico@210:
nico@210: Here is the call graph for this function:
const indextable* scanIndexOD | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS32 * | nico@207:errorCode, | nico@207:|
nico@207: | nico@207: | ODCallback_t ** | nico@207:Callback | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
errorCode | ||
Callback |
nico@210: Definition at line 404 of file objacces.c. nico@210:
nico@210: Referenced by RegisterSetODentryCallBack(). nico@207:
UNS32 setODentry | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex, | nico@207:|
nico@207: | nico@207: | void * | nico@207:pSourceData, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pExpectedSize, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:checkAccess | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
bSubindex | ||
pSourceData | ||
pExpectedSize | ||
checkAccess |
nico@210: Definition at line 350 of file objacces.c. nico@210:
nico@210: References _setODentry(). nico@210:
nico@210: Referenced by proceedPDO(), and SDOlineToObjdict(). nico@210:
nico@210: Here is the call graph for this function:
UNS32 writeLocalDict | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS16 | nico@207:wIndex, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:bSubindex, | nico@207:|
nico@207: | nico@207: | void * | nico@207:pSourceData, | nico@207:|
nico@207: | nico@207: | UNS8 * | nico@207:pExpectedSize, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:checkAccess | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
wIndex | ||
bSubindex | ||
pSourceData | ||
pExpectedSize | ||
checkAccess |
nico@210: Definition at line 378 of file objacces.c. nico@210:
nico@210: References _setODentry(). nico@210:
nico@210: Here is the call graph for this function:
nico@210: