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

◆ 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();
EC_API_SLV_SHandle_t * EC_API_SLV_new(void)
This is the function to create a new EtherCAT Slave device instance.
Definition ecSlvApi.c:918
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_delete
Examples
ecSubDeviceCiA402.c.