EtherCAT Slave  1.06.01

◆ EC_API_SLV_setSwVersion()

uint32_t EC_API_SLV_setSwVersion ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
char *  pSoftwareVersion_p 
)

Set device Software Version.

Set device Software Version. Compulsory to use it, required by the Object Dictionary

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pSoftwareVersion_pdevice software 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_setSwVersion(S_ecSlvApiHdl, "1.0");
See also
EC_API_SLV_setHwVersion, EC_API_SLV_getSwVersion
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_setSwVersion
uint32_t EC_API_SLV_setSwVersion(EC_API_SLV_SHandle_t *pEcSlaveApi_p, char *pSoftwareVersion_p)
Set device Software Version.
Definition: ecSlvApi_ParamStub.c:417