PIC18 LaurTec Library  3.1.2
Open Source C Library for PIC18 Microcontrollers based on C18 - XC8 Compilers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
intEEPROM.c File Reference
#include "intEEPROM.h"

Go to the source code of this file.

Functions

unsigned char write_internal_EEPROM (unsigned char address, unsigned char data)
 
unsigned char read_internal_EEPROM (unsigned char address)
 

Function Documentation

unsigned char read_internal_EEPROM ( 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 intEEPROM.c.

unsigned char write_internal_EEPROM ( 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 afterwards.

Definition at line 48 of file intEEPROM.c.

References read_internal_EEPROM().