EtherCAT Slave  1.06.01

◆ EC_API_SLV_setHwVersion()

uint32_t EC_API_SLV_setHwVersion ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
char *  pHardwareVersion_p 
)

Set device hardware version.

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

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pHardwareVersion_pdevice 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");
See also
EC_API_SLV_setSwVersion, EC_API_SLV_getHwVersion
Examples
ecSlvCiA402.c.
EC_API_SLV_setHwVersion
uint32_t EC_API_SLV_setHwVersion(EC_API_SLV_SHandle_t *pEcSlaveApi_p, char *pHardwareVersion_p)
Set device hardware version.
Definition: ecSlvApi_ParamStub.c:370
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