EtherCAT Slave  1.06.01

◆ EC_API_SLV_delete()

uint32_t EC_API_SLV_delete ( EC_API_SLV_SHandle_t pEcSlaveApi_p)

This is the function to delete a created adapter.

If an instance was created it can be deleted with this function. The memory which was allocated by the adapter will be freed.

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
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_delete(S_ecSlvApiHdl);
See also
EC_API_SLV_new
Examples
ecSlvCiA402.c, and ecSlvESI.c.
EC_API_EError_t
enum EC_API_EError EC_API_EError_t
EC_API_SLV_delete
uint32_t EC_API_SLV_delete(EC_API_SLV_SHandle_t *pEcSlaveApi_p)
This is the function to delete a created adapter.
Definition: ecSlvApiStub.c:628
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