EtherCAT Slave  1.06.01

◆ EC_API_SLV_FoE_cbRegisterWriteFileHandler()

void EC_API_SLV_FoE_cbRegisterWriteFileHandler ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_FoE_CBWriteFileHandler_t  cbFunc_p 
)

This is the function to register FoE write function.

This function registers a function pointer which must be implemented by the user. The user defined function will be called if a file write request is received from the master.

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pContext_pwriteFileHandler call context
[in]cbFunc_pcbFunc Function pointer to the FoE write file
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_FoE_cbRegisterWriteFileHandler(ecSlaveApi, ecSlaveApi, cbFunc);
EC_API_SLV_FoE_cbRegisterWriteFileHandler
void EC_API_SLV_FoE_cbRegisterWriteFileHandler(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_FoE_CBWriteFileHandler_t cbFunc_p)
This is the function to register FoE write function.
Definition: ecSlvApi_FoEStub.c:166