Sensorian  1.0
C API Reference Guide Library
EEPROM

Functions

void EEPROM_Write (unsigned char mem_address, unsigned char ee_data)
 This function writes a single byte in the I2C EEPROM. More...
 
void EEPROM_WriteProtected (unsigned char mem_address, unsigned char ee_data)
 The function writes to the protected EEPROM space. More...
 
unsigned char EEPROM_Read (unsigned char mem_address)
 The function reads a data byte from the EEPROM. More...
 
void EEPROM_SetBlockProtection (ProtectionSettings_t protSetting)
 This function sets the Block protection settings. More...
 
void EEPROM_WritePage (char mem_address, char *buffer)
 This function writes a single page to the RTCC EEPROM. More...
 
void EEPROM_ReadPage (char mem_address, char *buffer)
 This function reads a single page from the RTCC EEPROM. More...
 

Detailed Description

These functions allow the user to use the 1 Kbit nonvolatile EEPROM memory of the MCP979140.

Function Documentation

unsigned char EEPROM_Read ( unsigned char  mem_address)

The function reads a data byte from the EEPROM.

Parameters
mem_addressAddress 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_addressEEPROM address to read to
bufferPage buffer

Definition at line 102 of file EEPROM.c.

void EEPROM_SetBlockProtection ( ProtectionSettings_t  protSetting)

This function sets the Block protection settings.

Parameters
protSettingEEPROM 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_addressMemory register to write to.
ee_dataByte 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_addressEEPROM address to write to
bufferPage 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_addressMemory register to write to.
ee_dataContent to write on protected EEPROM space.
Returns
none

Definition at line 57 of file EEPROM.c.