/home/epimerde/documents/tc11/CanFestival-3/src/objacces.c File Reference

#include "objacces.h"

Include dependency graph for objacces.c:

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)


Detailed Description

Author:
Edouard TISSERANT and Francis DUPIN
Date:
Tue Jun 5 08:55:23 2007

Definition in file objacces.c.


Function Documentation

UNS32 _getODentry ( CO_Data *  d,
UNS16  wIndex,
UNS8  bSubindex,
void *  pDestData,
UNS8 *  pExpectedSize,
UNS8 *  pDataType,
UNS8  checkAccess,
UNS8  endianize 
)

Parameters:
d 
wIndex 
bSubindex 
pDestData 
pExpectedSize 
pDataType 
checkAccess 
endianize 
Returns:

DO NOT USE MSG_ERR because the macro may send a PDO -> infinite loop if it fails.

We allow to fetch a shorter string than expected

Error !

Definition at line 105 of file objacces.c.

References accessDictionaryError(), and ptrTable.

Referenced by getODentry(), and readLocalDict().

Here is the call graph for this function:

UNS32 _setODentry ( CO_Data *  d,
UNS16  wIndex,
UNS8  bSubindex,
void *  pSourceData,
UNS8 *  pExpectedSize,
UNS8  checkAccess,
UNS8  endianize 
)

Parameters:
d 
wIndex 
bSubindex 
pSourceData 
pExpectedSize 
checkAccess 
endianize 
Returns:

Subindex not found

Callbacks

TODO : Store dans NVRAM

Definition at line 260 of file objacces.c.

References accessDictionaryError(), and ptrTable.

Referenced by setODentry(), and writeLocalDict().

Here is the call graph for this function:

void _storeODSubIndex ( UNS16  wIndex,
UNS8  bSubindex 
)

Parameters:
wIndex 
bSubindex 

Definition at line 436 of file objacces.c.

UNS8 accessDictionaryError ( UNS16  index,
UNS8  subIndex,
UNS8  sizeDataDict,
UNS8  sizeDataGiven,
UNS32  code 
)

Parameters:
index 
subIndex 
sizeDataDict 
sizeDataGiven 
code 
Returns:

Definition at line 55 of file objacces.c.

Referenced by _getODentry(), and _setODentry().

UNS32 getODentry ( CO_Data *  d,
UNS16  wIndex,
UNS8  bSubindex,
void *  pDestData,
UNS8 *  pExpectedSize,
UNS8 *  pDataType,
UNS8  checkAccess 
)

Parameters:
d 
wIndex 
bSubindex 
pDestData 
pExpectedSize 
pDataType 
checkAccess 
Returns:

Definition at line 198 of file objacces.c.

References _getODentry().

Referenced by objdictToSDOline(), proceedPDO(), and proceedSYNC().

Here is the call graph for this function:

UNS32 readLocalDict ( CO_Data *  d,
UNS16  wIndex,
UNS8  bSubindex,
void *  pDestData,
UNS8 *  pExpectedSize,
UNS8 *  pDataType,
UNS8  checkAccess 
)

Parameters:
d 
wIndex 
bSubindex 
pDestData 
pExpectedSize 
pDataType 
checkAccess 
Returns:

Definition at line 229 of file objacces.c.

References _getODentry().

Here is the call graph for this function:

UNS32 RegisterSetODentryCallBack ( CO_Data *  d,
UNS16  wIndex,
UNS8  bSubindex,
ODCallback_t  Callback 
)

Parameters:
d 
wIndex 
bSubindex 
Callback 
Returns:

Definition at line 419 of file objacces.c.

References scanIndexOD().

Referenced by heartbeatInit(), and startSYNC().

Here is the call graph for this function:

const indextable* scanIndexOD ( CO_Data *  d,
UNS16  wIndex,
UNS32 *  errorCode,
ODCallback_t **  Callback 
)

Parameters:
d 
wIndex 
errorCode 
Callback 
Returns:

Definition at line 404 of file objacces.c.

Referenced by RegisterSetODentryCallBack().

UNS32 setODentry ( CO_Data *  d,
UNS16  wIndex,
UNS8  bSubindex,
void *  pSourceData,
UNS8 *  pExpectedSize,
UNS8  checkAccess 
)

Parameters:
d 
wIndex 
bSubindex 
pSourceData 
pExpectedSize 
checkAccess 
Returns:

Definition at line 350 of file objacces.c.

References _setODentry().

Referenced by proceedPDO(), and SDOlineToObjdict().

Here is the call graph for this function:

UNS32 writeLocalDict ( CO_Data *  d,
UNS16  wIndex,
UNS8  bSubindex,
void *  pSourceData,
UNS8 *  pExpectedSize,
UNS8  checkAccess 
)

Parameters:
d 
wIndex 
bSubindex 
pSourceData 
pExpectedSize 
checkAccess 
Returns:

Definition at line 378 of file objacces.c.

References _setODentry().

Here is the call graph for this function:


Generated on Tue Jun 5 18:32:07 2007 for CanFestival by  doxygen 1.5.1