DC2100A  1.2.0
Bi-Directional Cell Balancer Using the LTC3300-1 and the LTC6804-2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

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.

Detailed Description

Reference Application File for Interface to 24AA64 EEPROM through the LTC6804-2 Battery Monitor on the DC2100A PCB.

Definition in file 24AA64.h.

Functions

void Eeprom_24AA64_Write (int8 board_num, int16 address, int8 *data_ptr, int16 num_bytes)
 Writes a series of bytes to the 24AA64 EEPROM. More...
 
void Eeprom_24AA64_Read (int8 board_num, int16 address, int8 *data_ptr, int16 num_bytes)
 Reads a series of bytes to the 24AA64 EEPROM. More...
 
void Eeprom_24AA64_Erase (int8 board_num)
 Erases the full contents of the 24AA64 EEPROM. More...
 

Macros

24AA64 EEPROM Properties

EEPROM capacity and page size from datasheet Description on page 1

#define EEPROM_24AA64_SIZE   8192
 Number of bytes in the EEPROM. More...
 
#define EEPROM_24AA64_PAGE_SIZE   32
 Number of bytes that can be operated on at a time. More...
 

Function Documentation

void Eeprom_24AA64_Erase ( int8  board_num)

Erases the full contents of the 24AA64 EEPROM.

Returns
void
Parameters
board_numThe 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_numThe logical address for the PCB containing this EEPROM.
addressThe address in the EEPROM.
data_ptrPointer where to store the read data.
num_bytesThe 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_numThe logical address for the PCB containing this EEPROM.
addressThe address in the EEPROM.
data_ptrPointer to the data to write.
num_bytesThe number of bytes to write.

Definition at line 109 of file 24AA64.c.

Macro Definition Documentation

#define EEPROM_24AA64_PAGE_SIZE   32

Number of bytes that can be operated on at a time.

Definition at line 80 of file 24AA64.h.

#define EEPROM_24AA64_SIZE   8192

Number of bytes in the EEPROM.

Definition at line 79 of file 24AA64.h.