Reference Application File for Interface to 24AA64 EEPROM through the LTC6804-2 Battery Monitor on the DC2100A PCB.
More...
Go to the source code of this file.
Reference Application File for Interface to 24AA64 EEPROM through the LTC6804-2 Battery Monitor on the DC2100A PCB.
Definition in file 24AA64.c.
|
#define | EEPROM_24AA64_BASE_ADDRESS 0x50 |
|
#define | EEPROM_24AA64_WRITE_BIT 0 |
|
#define | EEPROM_24AA64_READ_BIT 1 |
|
#define | EEPROM_24AA64_BAUD_RATE 400 |
|
#define | EEPROM_24AA64_TWC 5 |
|
void Eeprom_24AA64_Erase |
( |
int8 |
board_num | ) |
|
Erases the full contents of the 24AA64 EEPROM.
- Returns
- void
- Parameters
-
board_num | The logical address for the PCB containing this EEPROM. |
Definition at line 168 of file 24AA64.c.
void Eeprom_24AA64_Read |
( |
int8 |
board_num, |
|
|
int16 |
address, |
|
|
int8 * |
data_ptr, |
|
|
int16 |
num_bytes |
|
) |
| |
Reads a series of bytes to the 24AA64 EEPROM.
- Returns
- void
- Parameters
-
board_num | The logical address for the PCB containing this EEPROM. |
address | The address in the EEPROM. |
data_ptr | Pointer where to store the read data. |
num_bytes | The number of bytes to read. |
Definition at line 141 of file 24AA64.c.
void Eeprom_24AA64_Write |
( |
int8 |
board_num, |
|
|
int16 |
address, |
|
|
int8 * |
data_ptr, |
|
|
int16 |
num_bytes |
|
) |
| |
Writes a series of bytes to the 24AA64 EEPROM.
- Returns
- void
- Parameters
-
board_num | The logical address for the PCB containing this EEPROM. |
address | The address in the EEPROM. |
data_ptr | Pointer to the data to write. |
num_bytes | The number of bytes to write. |
Definition at line 109 of file 24AA64.c.