Sensorian
1.0
C API Reference Guide Library
|
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... | |
typedef enum PROTECTION ProtectionSettings_t |
ProtectionSettings_t class
enum PROTECTION |