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

◆ EC_API_SLV_init()

uint32_t EC_API_SLV_init ( EC_API_SLV_SHandle_t *  pEcSlaveApi_p)

This is the function to initialize the EtherCAT Slave API.

If an instance was created it can be initialized with this function. If there is no error the instance is ok to run.

Parameters
[in]pEcSlaveApi_pAPI instance handle.
Returns
EC_API_EError_t Returns the API error code..
Example
#include <ecSlvApi.h>
// required variables
EC_API_EError_t retVal = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
// the Call
retVal = EC_API_SLV_init(S_ecSlvApiHdl);
uint32_t EC_API_SLV_init(EC_API_SLV_SHandle_t *pEcSlaveApi_p)
This is the function to initialize the EtherCAT Slave API.
Definition ecSlvApiStub.c:739
enum EC_API_EError EC_API_EError_t
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_run
Examples
ecSlvESI.c.