|
NNP STM Generic Remote Module git-main
|
#include <applicfg.h>Go to the source code of this file.
Macros | |
| #define | getODentry(OD, wIndex, bSubindex, pDestData, pExpectedSize, pDataType, checkAccess) |
| #define | readLocalDict(OD, wIndex, bSubindex, pDestData, pExpectedSize, pDataType, checkAccess) |
| #define | setODentry(d, wIndex, bSubindex, pSourceData, pExpectedSize, checkAccess) |
| #define | writeLocalDict(d, wIndex, bSubindex, pSourceData, pExpectedSize, checkAccess) |
Typedefs | |
| typedef UNS32(* | valueRangeTest_t) (UNS8 typeValue, void *Value) |
| typedef void(* | storeODSubIndex_t) (CO_Data *d, UNS16 wIndex, UNS8 bSubindex) |
Functions | |
| void | _storeODSubIndex (CO_Data *d, UNS16 wIndex, UNS8 bSubindex) |
| <BRIEF> | |
| UNS8 | accessDictionaryError (UNS16 index, UNS8 subIndex, UNS32 sizeDataDict, UNS32 sizeDataGiven, UNS32 code) |
| UNS32 | _getODentry (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pDestData, UNS32 *pExpectedSize, UNS8 *pDataType, UNS8 checkAccess, UNS8 endianize) |
| _getODentry() Reads an entry from the object dictionary. | |
| UNS32 | _setODentry (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, void *pSourceData, UNS32 *pExpectedSize, UNS8 checkAccess, UNS8 endianize) |
| By this function you can write an entry into the object dictionary. | |
| const indextable * | scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 *errorCode, ODCallback_t **Callback) |
| Scan the index of object dictionary. Used only by setODentry and getODentry. | |
| UNS32 | RegisterSetODentryCallBack (CO_Data *d, UNS16 wIndex, UNS8 bSubindex, ODCallback_t Callback) |
| <BRIEF> | |
Created on: Oct 9, 2024 Author: jenej
Definition in file objacces.h.
| #define getODentry | ( | OD, | |
| wIndex, | |||
| bSubindex, | |||
| pDestData, | |||
| pExpectedSize, | |||
| pDataType, | |||
| checkAccess ) |
Definition at line 32 of file objacces.h.
| #define readLocalDict | ( | OD, | |
| wIndex, | |||
| bSubindex, | |||
| pDestData, | |||
| pExpectedSize, | |||
| pDataType, | |||
| checkAccess ) |
Definition at line 37 of file objacces.h.
| #define setODentry | ( | d, | |
| wIndex, | |||
| bSubindex, | |||
| pSourceData, | |||
| pExpectedSize, | |||
| checkAccess ) |
Definition at line 52 of file objacces.h.
| #define writeLocalDict | ( | d, | |
| wIndex, | |||
| bSubindex, | |||
| pSourceData, | |||
| pExpectedSize, | |||
| checkAccess ) |
Definition at line 57 of file objacces.h.
Definition at line 14 of file objacces.h.
Definition at line 13 of file objacces.h.
| UNS32 _getODentry | ( | CO_Data * | d, |
| UNS16 | wIndex, | ||
| UNS8 | bSubindex, | ||
| void * | pDestData, | ||
| UNS32 * | pExpectedSize, | ||
| UNS8 * | pDataType, | ||
| UNS8 | checkAccess, | ||
| UNS8 | endianize ) |
_getODentry() Reads an entry from the object dictionary.
use getODentry() macro to read from object and endianize use readLocalDict() macro to read from object and not endianize
| *d | Pointer to a CAN object data structure |
| wIndex | The index in the object dictionary where you want to read an entry |
| bSubindex | The subindex of the Index. e.g. mostly subindex 0 is used to tell you how many valid entries you can find in this index. Look at the canopen standard for further information |
| *pDestData | Pointer to the pointer which points to the variable where the value of this object dictionary entry should be copied |
| *pExpectedSize | This function writes the size of the copied value (in Byte) into this variable. |
| *pDataType | Pointer to the type of the data. See objdictdef.h |
| CheckAccess | if other than 0, do not read if the data is Write Only [Not used today. Put always 0]. |
| Endianize | When not 0, data is endianized into network byte order when 0, data is not endianized and copied in machine native endianness |
Definition at line 111 of file objacces.c.
| UNS32 _setODentry | ( | CO_Data * | d, |
| UNS16 | wIndex, | ||
| UNS8 | bSubindex, | ||
| void * | pSourceData, | ||
| UNS32 * | pExpectedSize, | ||
| UNS8 | checkAccess, | ||
| UNS8 | endianize ) |
By this function you can write an entry into the object dictionary.
| *d | Pointer to a CAN object data structure |
| wIndex | The index in the object dictionary where you want to write an entry |
| bSubindex | The subindex of the Index. e.g. mostly subindex 0 is used to tell you how many valid entries you can find in this index. Look at the canopen standard for further information |
| *pSourceData | Pointer to the variable that holds the value that should be copied into the object dictionary |
| *pExpectedSize | The size of the value (in Byte). |
| checkAccess | Flag that indicate if a check rights must be perfomed (0 : no , other than 0 : yes) |
| endianize | When not 0, data is endianized into network byte order when 0, data is not endianized and copied in machine native endianness |
Definition at line 235 of file objacces.c.
| const indextable * scanIndexOD | ( | CO_Data * | d, |
| UNS16 | wIndex, | ||
| UNS32 * | errorCode, | ||
| ODCallback_t ** | Callback ) |
Scan the index of object dictionary. Used only by setODentry and getODentry.
| *d | Pointer to a CAN object data structure |
| wIndex | |
| *errorCode | : OD_SUCCESSFUL if index foundor SDO abort code. (See file def.h) |
| **Callback |
Definition at line 343 of file objacces.c.
Referenced by PDOInit(), and RegisterSetODentryCallBack().
