EtherCAT Slave  1.06.01

◆ EC_API_SLV_setVendorId()

uint32_t EC_API_SLV_setVendorId ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
uint32_t  vendorId_p 
)

Set device vendor ID. Used by the EEPROM and Object Dictionary.

Set a vendor ID. Required for device identification. It is used by the SII interface and the Object Dictionary

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]vendorId_pvendor identification number.
Returns
Returns the API error code EC_API_EError_t.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
// the Call
retVal = EC_API_SLV_setVendorId(S_ecSlvApiHdl, 0x00000569);
See also
EC_API_SLV_setProductCode, EC_API_SLV_setRevisionNumber, EC_API_SLV_setProductName, EC_API_SLV_getVendorId
Examples
ecSlvCiA402.c.
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_setVendorId
uint32_t EC_API_SLV_setVendorId(EC_API_SLV_SHandle_t *pEcSlaveApi_p, uint32_t vendorId_p)
Set device vendor ID. Used by the EEPROM and Object Dictionary.
Definition: ecSlvApi_ParamStub.c:86