EtherCAT Slave  1.06.01

◆ EC_API_SLV_EEPROM_cbRegisterLoad()

void EC_API_SLV_EEPROM_cbRegisterLoad ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_CBEepromLoad_t  cbFunc_p 
)

Register a function lo load the eeprom content.

If the EEPROM content is stored permanently, then the DTK Stack requires a function to access the content. If nothing is defined, then the EEPROM content is generated dynamically based on the application parameters.

Parameters
[in]pEcSlaveApi_pSlave API Handle Instance
[in]pContext_pLoad EEPROM Callback context
[in]cbFunc_pLoad EEPROM Callback
Example
#include <theHeader.h>
// required variables
// the Call
retVal = EC_API_SLV_EEPROM_cbRegisterLoad(ecSlaveApi, cbFunc);
See also
EC_API_SLV_EEPROM_cbRegisterWrite
Examples
ecSlvCiA402.c.
EC_API_SLV_SHandle_t
struct EC_API_SLV_SHandle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition: ecSlvApi.h:135
EC_API_SLV_EEPROM_cbRegisterLoad
void EC_API_SLV_EEPROM_cbRegisterLoad(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_CBEepromLoad_t cbFunc_p)
Register a function lo load the eeprom content.
Definition: ecSlvApiStub.c:1523
EC_API_SLV_CBEepromLoad_t
bool(* EC_API_SLV_CBEepromLoad_t)(void *pContext_p, void *pEeprom_p, uint32_t *pLength_p)
Load EEPROM from memory.
Definition: ecSlvApi.h:788