EtherCAT SubDevice2.03.00
 
Loading...
Searching...
No Matches

◆ EC_SLV_APP_EEP_read()

bool EC_SLV_APP_EEP_read ( void *  pContext,
void *  pEeprom,
uint32_t *  pLength 
)

Load EEPROM from memory.

Parameters
[in]pContextapplication context
[out]pEepromPointer to eeprom memory address.
[out]pLengthEeprom length.
Returns
bool eeprom loaded correctly or not.
Example
#include <ecSlvApi.h>
// required variables
uint8_t* pEeprom = NULL;;
uint32_t length;
// the Call
pEeprom = (uint8_t*)OSAL_MEMORY_calloc(length, sizeof(uint8_t));
EC_SLV_APP_EEP_read(pEeprom, &length);
bool EC_SLV_APP_EEP_read(void *pContext, void *pEeprom, uint32_t *pLength)
Load EEPROM from memory.
Definition ESL_eeprom.c:273