Cell voltages fork (SoC)
Dependencies: CUER_CAN CUER_DS1820 LTC2943 LTC6804 mbed PowerControl
Diff: EEPROM_I2C.h
- Revision:
- 1:51477fe4851b
- Parent:
- 0:0a5f554d2a16
--- a/EEPROM_I2C.h Thu Dec 22 15:11:29 2016 +0000 +++ b/EEPROM_I2C.h Fri Dec 30 16:01:59 2016 +0000 @@ -8,40 +8,42 @@ #define ADDRESS_1 0xAF #define ADDRESS_2 0xAE // TODO check did both addresses work - /** - * Method for writing one byte to the EEPROM - * - * @param start_address the start address on the EEPROM to read from - * @param data_out data to send - */ +/** +* Method for writing one byte to the EEPROM +* +* @param start_address the start address on the EEPROM to read from +* @param data_out data to send +*/ +/* Dont think this will be used void i2c_write(int start_address,char data_out); - - /** - * Method for reading from the EEPROM - * - * @param start_address the start address on the EEPROM to read from - * - */ +*/ +/** +* Method for reading from the EEPROM +* +* @param start_address the start address on the EEPROM to read from +* +*/ +/*Dont think this will be used char i2c_read(int start_address); +*/ +/** +* Method for page writing to the EEPROM +* +* @param start_address the start address on the EEPROM to write to +* @param length the length of data_out +* @param data_out data to send +* +*/ +void i2c_page_write(uint16_t start_address,int length, char data_out[] ); - /** - * Method for page writing to the EEPROM - * - * @param start_address the start address on the EEPROM to write to - * @param length the length of data_out - * @param data_out data to send - * - */ -void i2c_page_write(int start_address,int length, char data_out[] ); - - /** - * Method for page reading from the EEPROM - * - * @param start_address the start address on the EEPROM to read from - * @param length the length of data_in - * @param data_in data to read - * - */ -void i2c_page_read(int start_address,int length, char data_in[]); +/** +* Method for page reading from the EEPROM +* +* @param start_address the start address on the EEPROM to read from +* @param length the length of data_in +* @param data_in data to read +* +*/ +void i2c_page_read(uint16_t start_address,int length, char data_in[]); #endif \ No newline at end of file