EtherCAT Slave
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_PDO_getOffset()

uint16_t EC_API_SLV_PDO_getOffset ( EC_API_SLV_Pdo_t *  pPdo_p)

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

Parameters
[in]pPdo_pThe pointer to the PDO instance.
Returns
uint16_t Returns the PDO offset in Process Image
Example
#include <ecSlvApi.h>
// required variables
uint16_t offset = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
TPdo* ptRxPdo1600;
// the Call
offset = EC_API_SLV_PDO_getOffset(S_ecSlvApiHdl, ptRxPdo1600);
uint16_t EC_API_SLV_PDO_getOffset(EC_API_SLV_Pdo_t *pPdo_p)
This function return the offset of the PDO in the process image in bytes.
Definition ecSlvApi_ProcDataStub.c:168
struct EC_API_SLV_Handle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition ecSlvApi.h:136
See also
EC_API_SLV_PDO_getLength