EtherCAT Slave  1.06.01

◆ EC_API_SLV_setSerialNumber()

uint32_t EC_API_SLV_setSerialNumber ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
uint32_t  serialNumber_p 
)

Set default serial number.

Set a default serial number for the device. (ESC recommendation is to use boar HW serial)

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]serialNumber_pproduct serial number.
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_setSerialNumber(S_ecSlvApiHdl, 0x00000000);
See also
EC_API_SLV_getSerialNumber
Examples
ecSlvCiA402.c.
EC_API_SLV_setSerialNumber
uint32_t EC_API_SLV_setSerialNumber(EC_API_SLV_SHandle_t *pEcSlaveApi_p, uint32_t serialNumber_p)
Set default serial number.
Definition: ecSlvApi_ParamStub.c:229
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