@@ -12,11 +12,11 @@ Driver supports two commands viz., Read and Write
1212
1313// EEPROM DRIVER Module<br />
1414typedef struct { <br />
15- unsigned int cmd; // Command Input<br />
15+ unsigned int cmd; // Command Input<br />
1616 I2CEMEM_DATA * oData; // I2C Serial EEPROM Data Object<br />
17- void (* init)(void * ); < br />
18- void (* tick)(void * ); <br />
19- }I2CEMEM_DRV; <br />
17+ void (* init)(void * );
18+ void (* tick)(void * ); <br />
19+ }I2CEMEM_DRV; <br />
2020
2121I2C Serial EEPROM data object contains EEPROM address location, data buffer, size
2222of the data buffer and chip select bits for device addressing<br />
@@ -29,16 +29,16 @@ typedef struct { <br/>
2929}I2CEMEM_DATA; <br />
3030
3131
32- * I2C Serial EEPROM read/write operation begins with transmitting control byte first.
32+ * I2C Serial EEPROM read/write operation begins with transmitting control byte first.
3333This control byte contains 8bits as shown below
34-
35-
36- | 1 | 0 | 1 | 0 | A2 | A1 | A0 | R/W |
34+
35+ | 1 | 0 | 1 | 0 | A2 | A1 | A0 | R/W |
36+
3737
38381010 is the code used for I2C Serial EEPROM peripheral and A2,A1,A0 is used for chip select (csel).
3939
4040
41- * After the control byte, address of serial EEPROM is sent for read/write operation
41+ * After the control byte, address of serial EEPROM is sent for read/write operation
4242Small memory I2C EEPROM will use 1byte address and large memory I2C EEPROM will need 2byte addressing.
4343User must select either 1byte memory address or 2byte memory address using
4444i2cEmem.h file.
0 commit comments