EtherCAT Slave  1.06.01

◆ EC_API_SLV_getVersionStr()

uint32_t EC_API_SLV_getVersionStr ( uint32_t  bufLen_p,
char *  pBuffer_p,
uint32_t *  pUsedLen_p 
)

Get version string.

Parameters
[in]bufLen_pSize of provided buffer.
[out]pBuffer_pString buffer with version
[out]pUsedLen_pAmount of buffer used
Returns
uint32_t errorcode
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
uint32_t used = 0;
char Version[50] = {0};
// the Call
retVal = EC_API_SLV_getVersionStr(sizeof(Version), Version, &used);
See also
EC_API_SLV_getVersion EC_API_SLV_getVersionId
EC_API_SLV_getVersionStr
uint32_t EC_API_SLV_getVersionStr(uint32_t bufLen_p, char *pBuffer_p, uint32_t *pUsedLen_p)
Get version string.
Definition: ecSlvApiStub.c:180