LTlib LaurTec Library  4.0.1
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
module_EEPROM.c File Reference
#include "module_EEPROM.h"

Go to the source code of this file.

Functions

unsigned char EEPROM_write_byte (unsigned char address, unsigned char data)
 
unsigned char EEPROM_read_byte (unsigned char address)
 

Function Documentation

unsigned char EEPROM_read_byte ( unsigned char  address)

This function reads a byte from the internal EEPROM.

Parameters
addressAddress where the byte must be read [min: 0, max: 255]
Returns
data Value read from the internal EEPROM.

Definition at line 146 of file module_EEPROM.c.

unsigned char EEPROM_write_byte ( unsigned char  address,
unsigned char  data 
)

This function writes a byte inside the internal EEPROM.

Parameters
dataByte to write [min: 0, max: 255]
addressAddress where the byte must be written [min: 0, max: 255]
Returns
status 1: The byte has been properly written 0: The byte has not been properly written
Warning
During the writing process the Interrupts are disabled. The old status is restored afterward.

Definition at line 48 of file module_EEPROM.c.

References read_internal_EEPROM.