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

◆ EC_API_SLV_setHwVersion()

uint32_t EC_API_SLV_setHwVersion ( EC_API_SLV_SHandle_t pHandle,
char *  pHardwareVersion 
)

Set device hardware version.

Set device hardware version. Compulsory to use it, required by the Object Dictionary

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]pHardwareVersiondevice hardware version.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
// the Call
retVal = EC_API_SLV_setHwVersion(S_ecSlvApiHdl, "1.0");
uint32_t EC_API_SLV_setHwVersion(EC_API_SLV_SHandle_t *pHandle, char *pHardwareVersion)
Set device hardware version.
Definition ecSlvApi_param.c:396
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_setSwVersion, EC_API_SLV_getHwVersion
Examples
ecSubDeviceCiA402.c.