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

◆ EC_API_SLV_PDO_getEntryDataLength()

uint32_t EC_API_SLV_PDO_getEntryDataLength ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_Pdo_t pPdo,
uint8_t  subIndex,
uint32_t *  pLength 
)

Read PDO entry data length.

Parameters
[in]pHandleDTK handle instance.
[in]pPdoPDO pointer.
[in]subIndexPDO SubIndex.
[out]pLengthNumber of entries.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
uint32_t length = EC_API_SLV_PDO_getEntryDataLength(ptPdo, subIndex);
uint32_t EC_API_SLV_PDO_getEntryDataLength(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_Pdo_t *pPdo, uint8_t subIndex, uint32_t *pLength)
Read PDO entry data length.
Definition ecSlvApi_pdo.c:2053
Examples
ecSubDeviceCiA402.c.