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

◆ EC_API_SLV_PDO_getOffset()

uint32_t EC_API_SLV_PDO_getOffset ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_Pdo_t pPdo,
uint16_t *  pOffset 
)

This function return the offset of the PDO in the process image in bytes.

Parameters
[in]pHandleDTK handle.
[in]pPdoPDO instance.
[out]pOffsetoffset value in bytes.
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// required variables
uint16_t offset = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
TPdo* ptRxPdo1600;
// the Call
error = EC_API_SLV_PDO_getOffset(S_ecSlvApiHdl, ptRxPdo1600, &offset);
uint32_t EC_API_SLV_PDO_getOffset(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_Pdo_t *pPdo, uint16_t *pOffset)
This function return the offset of the PDO in the process image in bytes.
Definition ecSlvApi_pdo.c:610
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_PDO_getLength