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

◆ EC_API_SLV_EEPROM_cbRegisterRead()

uint32_t EC_API_SLV_EEPROM_cbRegisterRead ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_CBEepromRead_t  cbFunc,
void *  pContext 
)

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]pHandleSlave API Handle Instance
[in]cbFuncLoad EEPROM Callback
[in]pContextLoad EEPROM Callback context
Returns
ErrorCode API Error Code
Example
#include <theHeader.h>
// required variables
EC_API_SLV_CBEepromLoad_t cbFunc;
// the Call
retVal = EC_API_SLV_EEPROM_cbRegisterRead(pHandle, cbFunc, pHandle);
uint32_t EC_API_SLV_EEPROM_cbRegisterRead(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_CBEepromRead_t cbFunc, void *pContext)
Register a function lo load the eeprom content.
Definition ecSlvApi.c:2303
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_EEPROM_cbRegisterWrite
Examples
ecSubDeviceCiA402.c.