EtherCAT Slave  1.06.01

◆ EC_API_SLV_setPDOSize()

uint32_t EC_API_SLV_setPDOSize ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
uint32_t  maxPdOutSize_p,
uint32_t  maxPdInSize_p 
)

Set ProcessData Size Limits.

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

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]maxPdOutSize_pSize of maximum Output Process data memory allocated.
[in]maxPdInSize_pSize of maximum Input Process data memory allocated.
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);
Examples
ecSlvCiA402.c.
EC_API_SLV_SHandle_t
struct EC_API_SLV_SHandle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition: ecSlvApi.h:135
EC_API_SLV_setPDOSize
uint32_t EC_API_SLV_setPDOSize(EC_API_SLV_SHandle_t *pEcSlaveApi_p, uint32_t maxPdOutSize_p, uint32_t maxPdInSize_p)
Set ProcessData Size Limits.
Definition: ecSlvApi_ParamStub.c:463