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

◆ EC_API_SLV_setPDOSize()

uint32_t EC_API_SLV_setPDOSize ( EC_API_SLV_SHandle_t pHandle,
uint32_t  maxPdOutSize,
uint32_t  maxPdInSize 
)

Set ProcessData Size Limits.

Set ProcessData Size Limit. Compulsory to use it, required by the Stack

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]maxPdOutSizeSize of maximum Output Process data memory allocated in Bytes.
[in]maxPdInSizeSize of maximum Input Process data memory allocated in Bytes.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
// the Call
retVal = EC_API_SLV_setPDOSize(S_ecSlvApiHdl, 1024, 1024);
uint32_t EC_API_SLV_setPDOSize(EC_API_SLV_SHandle_t *pHandle, uint32_t maxPdOutSize, uint32_t maxPdInSize)
Set ProcessData Size Limits.
Definition ecSlvApi_param.c:531
Definition ecSlvApiInternal.h:331
Examples
ecSubDeviceCiA402.c.