EtherCAT Slave  1.06.01

◆ EC_API_SLV_new()

EC_API_SLV_SHandle_t* EC_API_SLV_new ( void  )

This is the function to create a new EtherCAT Slave device instance.

For all EtherCAT Slave functions in the API there must be a device object. This object (or pointer to it) will be created by this function.

Returns
EC_API_SLV_SHandle_t A pointer to the newly created instance.
Example
#include <ecSlvApi.h>
// required variables
EC_API_SLV_SHandle_t *pEcSlave = NULL;
// the Call
pEcSlave = EC_API_SLV_new();
See also
EC_API_SLV_delete
Examples
ecSlvCiA402.c, and ecSlvESI.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_new
EC_API_SLV_SHandle_t * EC_API_SLV_new(void)
This is the function to create a new EtherCAT Slave device instance.
Definition: ecSlvApiStub.c:536