EtherCAT Slave  1.06.01

◆ EC_API_SLV_getProductCode()

uint32_t EC_API_SLV_getProductCode ( EC_API_SLV_SHandle_t pEcSlaveApi_p)

Get device product code.

Get device product code. Used by the Object Dictionary

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
Returns
uint32_t Returns the product 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);
See also
EC_API_SLV_setProductCode
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_getProductCode
uint32_t EC_API_SLV_getProductCode(EC_API_SLV_SHandle_t *pEcSlaveApi_p)
Get device product code.
Definition: ecSlvApi_ParamStub.c:781