Sensorian  1.0
C API Reference Guide Library
EEPROM.h File Reference

EEPROM driver header. More...

#include "bcm2835.h"

Go to the source code of this file.

Macros

#define EEPROM_ADDRESS   0x57
 
#define EEPROM_WRITE   0xae
 
#define EEPROM_READ   0xaf
 
#define EEUNLOCK   0x09
 
#define EEPROM_START   0x00
 
#define EEPROM_END   0x7F
 
#define EEPROM_PROTECTED_START   0xF0
 
#define EEPROM_PROTECTED_END   0xF7
 
#define BP0   0x04
 
#define BP1   0x08
 
#define EEPROM_WRITE   0xae
 
#define EEPROM_READ   0xaf
 
#define SRAM_PTR   0x20
 
#define EEPROM_SREG   0xff
 
#define TRUE   1
 
#define FALSE   0
 

Typedefs

typedef enum PROTECTION ProtectionSettings_t
 

Enumerations

enum  PROTECTION { QUARTER = 0x01, HALF = 0x02, ALL = 0x03 }
 

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_ReadPage (char mem_address, char *buffer)
 This function reads a single page from the RTCC EEPROM. More...
 
void EEPROM_WritePage (char mem_address, char *buffer)
 This function writes a single page to the RTCC EEPROM. More...
 

Detailed Description

EEPROM driver header.

Author
D.Qendri
Date
30 May 2015

Definition in file EEPROM.h.

Macro Definition Documentation

#define BP0   0x04

Definition at line 50 of file EEPROM.h.

#define BP1   0x08

Definition at line 51 of file EEPROM.h.

#define EEPROM_ADDRESS   0x57

Definition at line 38 of file EEPROM.h.

#define EEPROM_END   0x7F

Definition at line 45 of file EEPROM.h.

#define EEPROM_PROTECTED_END   0xF7

Definition at line 48 of file EEPROM.h.

#define EEPROM_PROTECTED_START   0xF0

Definition at line 47 of file EEPROM.h.

#define EEPROM_READ   0xaf

Definition at line 56 of file EEPROM.h.

#define EEPROM_READ   0xaf

Definition at line 56 of file EEPROM.h.

#define EEPROM_SREG   0xff

Definition at line 59 of file EEPROM.h.

#define EEPROM_START   0x00

Definition at line 44 of file EEPROM.h.

#define EEPROM_WRITE   0xae

Definition at line 55 of file EEPROM.h.

#define EEPROM_WRITE   0xae

Definition at line 55 of file EEPROM.h.

#define EEUNLOCK   0x09

Definition at line 42 of file EEPROM.h.

#define FALSE   0

Definition at line 70 of file EEPROM.h.

#define SRAM_PTR   0x20

Definition at line 58 of file EEPROM.h.

#define TRUE   1

Definition at line 69 of file EEPROM.h.

Typedef Documentation

ProtectionSettings_t class

Enumeration Type Documentation

enum PROTECTION

ProtectionSettings_t class

Enumerator
QUARTER 

The first quarter of the EEPROM space is protected

HALF 

Half of the EEPROM space is protected

ALL 

All the EEPROM space is protected

Definition at line 64 of file EEPROM.h.