1.12.9.2 EEPROM_WordRead Function

C

bool EEPROM_WordRead( uint32_t addr, uint32_t *data )

Summary

Reads one word from a given address in data EEPROM

Description

Reads one word from a given address in data EEPROM into the user buffer

Precondition

None

Parameters

Param Description
addr Address of data EEPROM to be read from
data pointer to user data buffer

Returns

Returns true on success false on error

Example

uint32_t i;
unint32_t readData[4];
uint32_t addr = 0;

for ( i = 0; i < 4; i++ )
{
    result = EEPROM_WordRead( addr, &readData[i] );
    if (result == true)
    {
        addr = eepromAddr + 4;
    }
}