|
EtherCAT Slave
1.04.03
|
|
◆ EC_API_SLV_CoE_getObjectEntry()
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] | index_p | The index number of the object. |
[in] | subIndex_p | The subIndex number of the entry. |
[out] | pObjectEntry_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_PDO_create EC_API_SLV_PDO_createEntry
- Examples
- ESL_cia402Demo.c.
uint32_t EC_API_SLV_CoE_getObjectEntry(EC_API_SLV_SHandle_t *pEcSlaveApi_p, uint16_t index_p, uint8_t subIndex_p, EC_API_SLV_SCoE_ObjEntry_t **pObjectEntry_p)
This function returns object entries from the Object Dictionary.
Definition: ecSlvApi_CoEStub.c:325
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:128
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