These functions allow the user to use the 1 Kbit nonvolatile EEPROM memory of the MCP979140.
unsigned char EEPROM_Read |
( |
unsigned char |
mem_address | ) |
|
The function reads a data byte from the EEPROM.
- Parameters
-
mem_address | Address of register. |
- Returns
- reg Register content.
Definition at line 70 of file EEPROM.c.
void EEPROM_ReadPage |
( |
char |
mem_address, |
|
|
char * |
buffer |
|
) |
| |
This function reads a single page from the RTCC EEPROM.
- Parameters
-
mem_address | EEPROM address to read to |
buffer | Page buffer |
Definition at line 102 of file EEPROM.c.
This function sets the Block protection settings.
- Parameters
-
protSetting | EEPROM protection settings |
- Returns
- none
Definition at line 81 of file EEPROM.c.
void EEPROM_Write |
( |
unsigned char |
mem_address, |
|
|
unsigned char |
ee_data |
|
) |
| |
This function writes a single byte in the I2C EEPROM.
- Parameters
-
mem_address | Memory register to write to. |
ee_data | Byte data for register. |
- Returns
- none
Definition at line 45 of file EEPROM.c.
void EEPROM_WritePage |
( |
char |
mem_address, |
|
|
char * |
buffer |
|
) |
| |
This function writes a single page to the RTCC EEPROM.
- Parameters
-
mem_address | EEPROM address to write to |
buffer | Page buffer |
Definition at line 92 of file EEPROM.c.
void EEPROM_WriteProtected |
( |
unsigned char |
mem_address, |
|
|
unsigned char |
ee_data |
|
) |
| |
The function writes to the protected EEPROM space.
- Parameters
-
mem_address | Memory register to write to. |
ee_data | Content to write on protected EEPROM space. |
- Returns
- none
Definition at line 57 of file EEPROM.c.