C18 LaurTec Library  2.5
Open Source C Library for PIC18 Microcontrollers
LaurTec_c18_libraries_v_2.5/inc/intEEPROM.h File Reference
#include <p18cxxx.h>

Go to the source code of this file.

Functions

char write_Int_EEPROM (unsigned char data, unsigned char address)
unsigned char read_Int_EEPROM (unsigned char address)

Function Documentation

unsigned char read_Int_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 142 of file intEEPROM.c.

char write_Int_EEPROM ( unsigned char  data,
unsigned char  address 
)

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 53 of file intEEPROM.c.

References read_Int_EEPROM().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines