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.c.

Data Structures

struct  EEPROM_24AA64_COMMAND_TYPE
 

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

#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
 

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.