EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_PDO_get()

uint32_t EC_API_SLV_PDO_get ( EC_API_SLV_SHandle_t pHandle,
uint16_t  index,
EC_API_SLV_Pdo_t **  pOutPdo 
)

Search for PDO and fetch it.

Parameters
[in]pHandleEtherCAT DTK instance.
[in]indexindex number of the PDO
[out]pOutPdopointer to the requested PDO
Returns
uint32_t Returns an error code if the PDO is not found.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
TPdo* ptRxPdo1600;
// the Call
retVal = EC_API_SLV_PDO_get(S_ecSlvApiHdl, 0x1600, &ptRxPdo1600);
uint32_t EC_API_SLV_PDO_get(EC_API_SLV_SHandle_t *pHandle, uint16_t index, EC_API_SLV_Pdo_t **pOutPdo)
Search for PDO and fetch it.
Definition ecSlvApi_pdo.c:552
Definition ecSlvApiInternal.h:331