EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_FoE_cbRegisterOpenFileHandler()

uint32_t EC_API_SLV_FoE_cbRegisterOpenFileHandler ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_FoE_CBOpenFileHandler_t  cbFunc,
void *  pContext 
)

This is the function to register FoE open function.

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

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the FoE Open file Handler
[in]pContextopenFileHandler call context
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_FoE_cbRegisterOpenFileHandler(ecSlaveApi, cbFunc, pCtxt);
uint32_t EC_API_SLV_FoE_cbRegisterOpenFileHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_FoE_CBOpenFileHandler_t cbFunc, void *pContext)
This is the function to register FoE open function.
Definition ecSlvApi_FoE.c:53