Embedded Artists Bluetooth QuickStart Kit User Manual page 68

Version 1.0
Table of Contents

Advertisement

Bluetooth QuickStart Kit Version 1.0 - User's Guide
B.9 EEPROM API
B.9.1 eepromPageRead
tS8 eepromPageRead( tU16 addr, tU8* pBuf, tU16 len )
Read data from the eeprom.
Parameters:
[in] addr – the address to read from
[in] pBuf – the read data is stored in this buffer
[in] len – number of bytes to read
Returns:
I2C_CODE_OK – the function completed successfully
I2C_CODE_ERROR – an error occurred
B.9.2 eepromWrite
tS8 eepromWrite( tU16 addr, tU8* pData, tU16 len )
Read data from the eeprom.
Parameters:
[in] addr – the address to write to
[in] pData – the data to write
[in] len – number of bytes to write
Returns:
I2C_CODE_OK – the function completed successfully
I2C_CODE_ERROR – an error occurred
B.9.3 eepromPoll
tS8 eepromPoll( void )
Waits till I2C returns ACK (after BURN cycle)
Returns:
I2C_CODE_OK – the function completed successfully
I2C_CODE_ERROR – an error occurred
Copyright 2004-2005 © Embedded Artists AB
Page 68

Advertisement

Table of Contents
loading

Table of Contents