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

◆ EC_SLV_APP_EEP_getMacAddress()

bool EC_SLV_APP_EEP_getMacAddress ( void *  pMagicKey,
uint8_t *  pMacAddress 
)

Retrieves the MAC address from the EEPROM.

This function reads the MAC address block from EEPROM using block type identification and extracts the 6-byte MAC address from the header structure. The MAC address is copied to the provided buffer if the read operation is successful.

Parameters
[in]pMagicKeyMagic key for EEPROM validation.
[out]pMacAddressPointer to store the 6-byte MAC address.
Returns
bool True if MAC address was read successfully, false otherwise.