EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_getProductCode()

uint32_t EC_API_SLV_getProductCode ( EC_API_SLV_SHandle_t pHandle,
uint32_t *  pProductCode 
)

Get device product code.

Get device product code. Used by the Object Dictionary

Parameters
[in]pHandleEtherCAT API instance.
[out]pProductCodeProduct code.
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
uint32_t productCode = 0;
// the Call
productCode = EC_API_SLV_getProductCode(S_ecSlvApiHdl);
uint32_t EC_API_SLV_getProductCode(EC_API_SLV_SHandle_t *pHandle, uint32_t *pProductCode)
Get device product code.
Definition ecSlvApi_param.c:921
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_setProductCode
Examples
EtherCAT_SubDevice_CiA402.c, EtherCAT_SubDevice_Simple.c, and EtherCAT_SubDevice_Webserver.c.