EtherCAT Slave  1.04.01

◆ EC_API_SLV_CoE_getObjectType()

uint32_t EC_API_SLV_CoE_getObjectType ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
EC_API_SLV_SCoE_Object_t pObject_p,
uint8_t *  pType_p 
)

This function returns the type flag of the object.

Returns the type flag of the object, VAR_TYPE, ARRAY_TYPE or RECORD_TYPE

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pObject_ppointer to the Object instance.
[out]pType_pObject type flag.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
uint8_t type = 0;
i32uErr_l = EC_API_SLV_CoE_getObjectType(ecSlaveApi, ptObject, &type);
See also
EC_API_SLV_CoE_getObject EC_API_SLV_CoE_getObjectData EC_API_SLV_CoE_setObjectEntryData
EC_API_SLV_CoE_getObjectType
uint32_t EC_API_SLV_CoE_getObjectType(EC_API_SLV_SHandle_t *pEcSlaveApi_p, EC_API_SLV_SCoE_Object_t *pObject_p, uint8_t *pType_p)
This function returns the type flag of the object.
Definition: ecSlvApi_CoEStub.c:277