TMPM4G9  V1.0.0.0
i2c_eeprom.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __I2C_EEPROM_H
17 #define __I2C_EEPROM_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_sample_def.h"
27 
37 /*------------------------------------------------------------------------------*/
38 /* Macro Definition */
39 /*------------------------------------------------------------------------------*/
45 /* no define */
46  /* End of group I2C_EEPROM_Private_define */
50 
51 /*------------------------------------------------------------------------------*/
52 /* Enumerated Type Definition */
53 /*------------------------------------------------------------------------------*/
59 /* no define */
60  /* End of group I2C_EEPROM_Private_define */
64 
65 /*------------------------------------------------------------------------------*/
66 /* Structure Definition */
67 /*------------------------------------------------------------------------------*/
73 /* no define */
74  /* End of group I2C_EEPROM_Private_typedef */
78 
79 
80 /*------------------------------------------------------------------------------*/
81 /* Functions */
82 /*------------------------------------------------------------------------------*/
88 TXZ_Result EEPROM_i2c_ReadByte(int32_t address, uint8_t *p_data);
89 TXZ_Result EEPROM_i2c_WriteByte(int32_t address, uint8_t data);
90 int32_t EEPROM_i2c_ReadData(int32_t address, uint8_t *p_data, int32_t length);
91 int32_t EEPROM_i2c_WritePage(int32_t address, uint8_t *p_data, int32_t length);
93 int32_t EEPROM_i2c_IsDeviceReady(void);
94  /* End of group I2C_EEPROM_Exported_functions */ /* End of group I2C_EEPROM */
101  /* End of group Example */
105 
106 #ifdef __cplusplus
107 }
108 #endif /* __cplusplus */
109 #endif /* I2C_EEPROM_H */
TXZ_Result
Definition: txz_driver_def.h:43
int32_t EEPROM_i2c_ReadData(int32_t address, uint8_t *p_data, int32_t length)
EEPROM SEQUENCIAL READ.
Definition: i2c_eeprom.c:276
int32_t EEPROM_i2c_WritePage(int32_t address, uint8_t *p_data, int32_t length)
EEPROM PAGE WRITE.
Definition: i2c_eeprom.c:320
TXZ_Result EEPROM_i2c_ReadByte(int32_t address, uint8_t *p_data)
EEPROM BYTE READ.
Definition: i2c_eeprom.c:174
TXZ_Result EEPROM_i2c_WriteByte(int32_t address, uint8_t data)
EEPROM BYTE WRITE.
Definition: i2c_eeprom.c:230
TXZ_Result EEPROM_i2c_WriteProtection(void)
EEPROM_i2c_WriteProtection.
Definition: i2c_eeprom.c:355
int32_t EEPROM_i2c_IsDeviceReady(void)
EEPROM_i2c_IsDeviceReady.
Definition: i2c_eeprom.c:370
TXZ_Result EEPROM_i2c_init(void)
Initializing of I2C Driver.
Definition: i2c_eeprom.c:146