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

◆ EC_API_SLV_CiA402_registerSetDictionary()

void EC_API_SLV_CiA402_registerSetDictionary ( EC_API_SLV_SHandle_t *  pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_CiA402_CBUsrApplSetDict_t  cbFunc_p 
)

Register a function which configures the CiA402 related objects.

Register a function which configures the CiA402 related objects defined on the CiA402 specification. On the one hand, these objects are used to handle the CiA402 State Machine (Status and Control Word Objects) and on the other hand these are used to define the servo drive mode (homing mode, torque, velocity or position profiles) and provide detailed information of the drive.

Parameters
[in]pEcSlaveApi_pEtherCAT DTK instance.
[in]pContext_pcallback context
[in]cbFunc_pCiA402 Object generator function.
Example
#include <ecSlvApi.h>
// required variables
// the Call
uint16_t(* EC_API_SLV_CiA402_CBUsrApplSetDict_t)(void *pContext_p)
Configure CiA402 Object Dictionary.
Definition ecSlvApi.h:844
void EC_API_SLV_CiA402_registerSetDictionary(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_CiA402_CBUsrApplSetDict_t cbFunc_p)
Register a function which configures the CiA402 related objects.
Definition ecSlvApi_CiA402Stub.c:86
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_CiA402_registerSetDictValues