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

◆ EC_API_SLV_setExplicitDeviceId()

uint32_t EC_API_SLV_setExplicitDeviceId ( EC_API_SLV_SHandle_t pHandle,
uint16_t  deviceId 
)

Set the explicit device Id of EtherCAT.

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]deviceIdexplicit device Id of EtherCAT.
Returns
error code.
Example
#include <ecSlvApi.h>
// the Call
uint32_t EC_API_SLV_setExplicitDeviceId(EC_API_SLV_SHandle_t *pHandle, uint16_t deviceId)
Set the explicit device Id of EtherCAT.
Definition ecSlvApi.c:1819
Examples
EtherCAT_SubDevice_CiA402.c, EtherCAT_SubDevice_Simple.c, and EtherCAT_SubDevice_Webserver.c.