![]() |
Mini51 BSP
V3.02.002
The Board Support Package for Mini51 Series
|
MINI51 series 24LC64 EEPROM library header file. More...
Go to the source code of this file.
Macros | |
#define | EEPROM_READ_ADDR 0xA1 /* Address of slave for read */ |
#define | EEPROM_WRITE_ADDR 0xA0 /* Address of slave for write */ |
Functions | |
void | EEPROM_Init (void) |
Open I2C interface to access EEPROM. More... | |
void | EEPROM_Write (uint32_t u32Addr, uint8_t u8Data) |
Write data to EEPROM. More... | |
uint8_t | EEPROM_Read (uint32_t u32Addr) |
Read data from EEPROM. More... | |
uint8_t | EEPROM_SequentialRead (uint32_t u32Addr, uint8_t *pu8Buf, uint32_t u32Size) |
Read data from EEPROM using sequential read method. More... | |
void | EEPROM_PageWrite (uint32_t u32Addr, uint8_t *pu8Buf) |
Write page data to EEPROM. More... | |
MINI51 series 24LC64 EEPROM library header file.
MINI51 series 24LC64 EEPROM library source file.
Definition in file eeprom_24lc64.c.
#define EEPROM_READ_ADDR 0xA1 /* Address of slave for read */ |
Definition at line 17 of file eeprom_24lc64.c.
#define EEPROM_WRITE_ADDR 0xA0 /* Address of slave for write */ |
Definition at line 18 of file eeprom_24lc64.c.
void EEPROM_Init | ( | void | ) |
Open I2C interface to access EEPROM.
None |
Definition at line 25 of file eeprom_24lc64.c.
void EEPROM_PageWrite | ( | uint32_t | u32Addr, |
uint8_t * | pu8Buf | ||
) |
Write page data to EEPROM.
u32Addr | Address for reading |
pu8Buf | The pointer of buffer that data will be written. |
Definition at line 396 of file eeprom_24lc64.c.
uint8_t EEPROM_Read | ( | uint32_t | u32Addr | ) |
Read data from EEPROM.
u32Addr | Address for reading |
Definition at line 137 of file eeprom_24lc64.c.
uint8_t EEPROM_SequentialRead | ( | uint32_t | u32Addr, |
uint8_t * | pu8Buf, | ||
uint32_t | u32Size | ||
) |
Read data from EEPROM using sequential read method.
u32Addr | Address for reading |
pu8Buf | The pointer of buffer that data will be put. |
u32Size | Read size |
Definition at line 269 of file eeprom_24lc64.c.
void EEPROM_Write | ( | uint32_t | u32Addr, |
uint8_t | u8Data | ||
) |
Write data to EEPROM.
u32Addr | Address for writing |
u8Data | Data for writing |
Definition at line 37 of file eeprom_24lc64.c.