|
EtherCAT Slave
1.10.00
|
|
◆ EC_API_SLV_CoE_getObjectEntryByObject()
This function returns object entries from the Object Dictionary.
Get Object Entry from Object Dictionary. It is useful to map it aftewards as a PDO
- Parameters
-
[in] | pEcSlaveApi_p | The pointer to the EtherCAT API instance. |
[in] | pObject_p | SDO object. |
[in] | subIndex_p | The subIndex number of the entry. |
[out] | ppObjectEntry_p | The pointer to object entry instance. |
- Returns
- uint32_t Returns the API error code.
- Example
#include <ecSlvApi.h>
TPdo *ptRxPdo;
- See also
- EC_API_SLV_CoE_getObject EC_API_SLV_CoE_getObjectEntry EC_API_SLV_PDO_create EC_API_SLV_PDO_createEntry
struct EC_API_SLV_SCoE_Object EC_API_SLV_SCoE_Object_t
TSdo describes an Object Dictionary Object.
Definition: ecSlvApi.h:136
uint32_t EC_API_SLV_CoE_getObjectEntryByObject(EC_API_SLV_SHandle_t *pEcSlaveApi_p, EC_API_SLV_SCoE_Object_t *pObject_p, uint8_t subIndex_p, EC_API_SLV_SCoE_ObjEntry_t **ppObjectEntry_p)
This function returns object entries from the Object Dictionary.
Definition: ecSlvApi_CoEStub.c:374
uint32_t EC_API_SLV_PDO_create(EC_API_SLV_SHandle_t *pEcSlaveApi_p, char *pName_p, uint16_t mapIndex_p, EC_API_SLV_SPdo_t **pOutPdo_p)
Creates an empty PDO.
Definition: ecSlvApi_ProcDataStub.c:86
struct EC_API_SLV_SCoE_ObjEntry EC_API_SLV_SCoE_ObjEntry_t
TSdoEntry describes an OBD Object Entry.
Definition: ecSlvApi.h:133
uint32_t EC_API_SLV_PDO_createEntry(EC_API_SLV_SHandle_t *pEcSlaveApi_p, EC_API_SLV_SPdo_t *pPdo_p, char *pName_p, EC_API_SLV_SCoE_ObjEntry_t *pObjectEntry_p)
This function maps an object entry from the Object Dictionary as a PDO.
Definition: ecSlvApi_ProcDataStub.c:270