EtherCAT Slave
 
Loading...
Searching...
No Matches

◆ 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);
uint32_t EC_API_SLV_getProductCode(EC_API_SLV_SHandle_t *pEcSlaveApi_p)
Get device product code.
Definition ecSlvApi_ParamStub.c:842
struct EC_API_SLV_Handle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition ecSlvApi.h:136
See also
EC_API_SLV_setProductCode