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

◆ EC_API_SLV_PDO_getLength()

uint32_t EC_API_SLV_PDO_getLength ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_Pdo_t pPdo,
uint16_t *  pLength 
)

This function returns the Byte size of a PDO.

Parameters
[in]pHandleDTK handle.
[in]pPdoPDO instance.
[out]pLengthPDO length in bytes.
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// required variables
uint16_t length = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
TPdo* ptRxPdo1600;
// the Call
length = EC_API_SLV_PDO_getLength(S_ecSlvApiHdl, ptRxPdo1600);
uint32_t EC_API_SLV_PDO_getLength(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_Pdo_t *pPdo, uint16_t *pLength)
This function returns the Byte size of a PDO.
Definition ecSlvApi_pdo.c:662
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_PDO_getOffset